Re: [PHP-WIN] Checkbox problem

2002-08-21 Thread Ignatius Reilly
One form will always post the same set of POST variables (sometimes a partial set, as when a checkbox is not checked, the variable is not passed) So the best way is to add hidden fields to your form, and manipulate then in javascript, like in this example (several submit buttons, corresponding

RE: [PHP-WIN] Checkbox problem

2002-08-21 Thread Rich Gray
Can you not give the buttons different names and test $_POST['buttonname'] in the next script? e.g. 1.php === 2.php if (isset($_POST['delete'])) { // Do deletes } if (isset($_POST['amend'])) { // Do amends } etc etc -Original Message- From: Kit Kerbel [mailto:[EMAIL PROTEC

RE: [PHP-WIN] Checkbox problem

2002-08-21 Thread Ross Fleming
You sound a little confused as to how php works... Specifically the line onclick="" This is ALWAYS going to be executed, and before the user even clicks this button. When the user visits the page, php will set this session variable to "true" (incidently as a rule of thumb, use =1 instead of ="t