943,948 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 980
  • PHP RSS
May 14th, 2008
0

error checking for radio button and check boxes

Expand Post »
Hi,
I've come across a sample of error checking for check boxes:
$retail_checked = (isset($_POST['retail']) and $_POST['retail'] == "on");
where the $_POST[] == "on" , where this apply in
<input type="checkbox" value="1" name="retail" $retail >1 ?
How does the $retail store the value 1 there, does it pass the value 1 to the $retail in the
<input /> ? and then I can check it using isset $_POST?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
trient is offline Offline
13 posts
since Apr 2008
May 16th, 2008
0

Re: error checking for radio button and check boxes

what is the error?
what was u trying to do?
Reputation Points: 11
Solved Threads: 7
Junior Poster in Training
amigura is offline Offline
71 posts
since Jan 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: variable values
Next Thread in PHP Forum Timeline: show data from database in a marquee





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC