| | |
error checking for radio button and check boxes
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2008
Posts: 13
Reputation:
Solved Threads: 0
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?
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?
![]() |
Other Threads in the PHP Forum
- Previous Thread: variable values
- Next Thread: show data from database in a marquee
| Thread Tools | Search this Thread |
.htaccess action ajax apache api array auto beginner binary bounce broken cakephp checkbox class cms code cron curl database date display dynamic echo email error errorlog file files folder form format forms function functions google href htaccess html image include insert integration interactive ip java javascript joomla limit link login loop mail malfunctioning masterthesis menu mlm mod_rewrite multiple mysql nodes oop paypal pdf php popup problem query radio ram random recursion reference regex remote return script search server sessions sms soap source space sql syntax system table tutorial unset update upload url validation validator variable video web websitecontactform xml youtube





