marjan_m
11
Junior Poster
Recommended Answers
Jump to PostThis simply wouldn't work because this is how your source would look like.
<input type= "text" name ="ch1" disabled='true' disabled='false'/>
Jump to Post<input type= "text" name ="ch1" <?php if(!S_GET['e'] == 3) {echo "disabled=\"disabled\"";} ?>">
Jump to PostIf it is disabled by default and on certain condition, you want to enable it, you have to use javascript.
Jump to PostAs far as I know, once you have printed a html element, you can't change it (unless you use javascript). Even almostbob's code decides whether to enable or disable the textbox at runtime.
All 14 Replies
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
almostbob
866
Retired: passive income ROCKS
marjan_m
11
Junior Poster
marjan_m
11
Junior Poster
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
marjan_m
11
Junior Poster
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
marjan_m
11
Junior Poster
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
marjan_m
11
Junior Poster
marjan_m
11
Junior Poster
nav33n
472
Purple hazed!
Team Colleague
Featured Poster
Ariel Divine
0
Newbie Poster
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.