Joined: Oct 11, 2008 Find all post by ah-t
Total Posts: 8
0.03 posts per day
Total Words: 0
Posted: Mon Oct 27, 2008 3:04 am Post subject: php: enabling a readonly text field?
how to enable a textfield in code, also how to disable a button? Here is the code: while(list($first,$last,$middle,$address,$idnum,$course,$telno,$cellno,$emailadd,$gpa,$position,$sy)= mysql_fetch_row($result2)){echo "
Information Result
Name:
...whenver i pressed the "Edit" button after querying, all the textfield while be editable and the "save " button will be enabled too?Pls help
Joined: Jun 07, 2007 Find all post by Austio
Total Posts: 3
0.00 posts per day
Total Words: 0
Posted: Mon Oct 27, 2008 3:23 am Post subject: php: enabling a readonly text field?
PHP is a server side language and can't change content after it's been outputted to the user. To disable a text field with javascript use the disabled property of an element. Here's an example:This will disable the form input after the page loads.I hope this helps.
Posted: Mon Oct 27, 2008 3:33 am Post subject: php: enabling a readonly text field?
I dont know what it is with all these people saying "php cant do this, php cant do that" php can do anything. And what you are trying to is possible too. I will write you an example real quick?>there that works. your just gonna have to costumize it for your form...Hope it helped...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
Invision-Graphics Support Forums - Forum Sitemap - Spambots
All times are GMT - 5 Hours
Today: 7,140
Yesterday: 28,992
Total Hits: 35,499,421
Page Rendered in: 0.15s - Total Queries: 9 - MySQL DB: 26.7 mb's - Pages served in past 5 minutes: 137