error checking for radio button and check boxes

Reply

Join Date: Apr 2008
Posts: 13
Reputation: trient is an unknown quantity at this point 
Solved Threads: 0
trient trient is offline Offline
Newbie Poster

error checking for radio button and check boxes

 
0
  #1
May 14th, 2008
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?
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 71
Reputation: amigura is an unknown quantity at this point 
Solved Threads: 7
amigura's Avatar
amigura amigura is offline Offline
Junior Poster in Training

Re: error checking for radio button and check boxes

 
0
  #2
May 16th, 2008
what is the error?
what was u trying to do?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC