| | |
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 |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue phpmyadmin problem query radio random recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube





