RE: [PHP] Need to maintain the integrity of the checkbox

From: Date: Thu, 29 Jul 2004 16:42:00 +0000
Subject: RE: [PHP] Need to maintain the integrity of the checkbox
Groups: php.general 
Request: Send a blank email to php-general+get-192206@lists.php.net to get a copy of this message
[snip] [snip] So the <?=$_POST['wbc_Event']?> would go in the value or name field of the checkbox? [/snip] No, just value="" [/snip] I should have been more descriptive. When you click the SUBMIT button the values entered will appear in the $_POST array A small example page1.php (the form page) <?php /* no php code needed */ ?> <html> <head><title>POST Test</title></head> <body> <form action="page2.php" method="POST"> <input type="text" name="thisVar" value=""><br> <input type="text" name="thatVar" value=""><br> <input type="submit" name="action" value="SUBMIT FORM"><br> </form> </body> </html> page2.php (the processing page) <?php /* here are the post array variables we have spoken about */ echo $_POST['thisVar'] . "<br>"; echo $_POST['thatVar'] . "<br>"; ?>

« previous php.general (#192206) next »