Sponsor Advertisement
Link Directory
Want Exposure? Looking for one way Backlinks? Get Text Link Advertising for $1.00.
FREE Classified Ads
Post your free classified ads at Classifieds Depo.

php: enabling a readonly text field?


Post new topic   Reply to topic  Invision-Graphics Forum Index –» Programming –» Print Topic
View previous topic –» View next topic
...whenver i pressed the "Edit" button after querying, all the textfield while be editable and the "save " button will be enabled too?Pls help
Level 1 User

ah-t
Level 1 User
Occupation:
Location: US

Offline
Joined: Oct 11, 2008
Find all post by ah-t
Total Posts: 8
0.03 posts per day
Total Words: 0
PostPosted: 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:
Reply with quote
View user's profile Send private message MSN Messenger
Back to top
Sponsor Advertising
Level 1 User

Bah9000
Level 1 User
Occupation:


Offline
Joined: Jun 13, 2006
Find all post by Bah9000
Total Posts: 1
0.00 posts per day
Total Words: 0
PostPosted: Mon Oct 27, 2008 3:13 am  Post subject: php: enabling a readonly text field?
you want to use javascript for this, php cant disable AND enable form fields.
Reply with quote
View user's profile Send private message
Back to top
Level 1 User

Austio
Level 1 User
Occupation:


Offline
Joined: Jun 07, 2007
Find all post by Austio
Total Posts: 3
0.00 posts per day
Total Words: 0
PostPosted: 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.
Reply with quote
View user's profile Send private message
Back to top
Level 1 User

A6-Intruder
Level 1 User
Occupation:


Offline
Joined: Feb 01, 2008
Find all post by A6-Intruder
Total Posts: 5
0.01 posts per day
Total Words: 0
PostPosted: 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?>
value="" name="text">
there that works. your just gonna have to costumize it for your form...Hope it helped...
Reply with quote
View user's profile Send private message
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Invision-Graphics Forum Index -> Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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
 


Click Here to Advertise
Affordable Hosting! http://www.invision-graphics.com/images/banners/468X60_VISIONHOSTING.gif
 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