RE: [PHP] Re: newbie:restricting users to change data in a textarea

From: Date: Tue, 18 Mar 2003 10:49:10 +0000
Subject: RE: [PHP] Re: newbie:restricting users to change data in a textarea
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140102@lists.php.net to get a copy of this message
Guys thanks for your help on this matter. Luckily this is all I need. It is on an internal lan and won't be available to the public although it does raise an interesting discussion. I would have been lost without you blokes. Thanks a million Mirco Ellis -----Original Message----- From: Coert Metz [mailto:coert@metzonline.nl] Sent: Tuesday, March 18, 2003 12:30 To: php-general@lists.php.net Subject: [PHP] Re: newbie:restricting users to change data in a textarea You can put READONLY in your TEXTAREA tag Coert Metz Mirco Ellis wrote: > Hi all, > > I have a app that enables the user to call data out of a mysql database into > textareas. They can then edit the data and update the database. There is one > field that I whant to stop them from changing. This field I also use in my > sql query when updating the table,ie. where variable='$variable'. So what I > did was simply this: > > "<tr>\n"; > print "\t<td>$variable</td>\n"; > print "</tr>\n"; > > instead of: > > print "<textarea name=variable rows=1 > > cols=10>".stripslashes($row['variable'])."</textarea><br>"; > > This definately stopped them from editing it but also disabled the mysql > query from working. Can anyone just give me a couple of ideas how I can make > this work. > > Thanks > Mirco > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#140102) next »