PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Nov 13, 2018 4:18 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Feb 26, 2011 5:50 pm 
Offline
Forum Newbie

Joined: Wed Aug 22, 2007 3:12 am
Posts: 19
I have a form with a radio button and some checkboxes. The checkboxes are initially set to "disabled", but are enabled with a Javascript function when the radio button is clicked. The form reloads the page and if the checkboxes are enabled when it's submitted, they are set to "enabled" and any selected boxes are set to "checked" (using PHP). The source code shows the proper "enabled" and "checked" status and the checkmarks show correctly, but the checkboxes act disabled. Of course, clicking the radio button enables them again, so it's not a huge problem, but it's totally mystifying to me. What could be going wrong?


Top
 Profile  
 
PostPosted: Sat Feb 26, 2011 7:03 pm 
Offline
Moderator
User avatar

Joined: Mon Nov 03, 2003 7:13 pm
Posts: 5978
Location: Odessa, Ukraine
post your code


Top
 Profile  
 
PostPosted: Sat Feb 26, 2011 8:37 pm 
Offline
Forum Newbie

Joined: Wed Aug 22, 2007 3:12 am
Posts: 19
Never mind!! I just discovered my stupid mistake. I was changing it from "disabled='disabled'" to "disabled='enabled'" when I should have been eliminating it entirely. Duhh!!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group