Design in Motion Webdesign wrote:

John Taylor-Johnston <> wrote:

I cannot find button2 in phpinfo() when I click it. I was hoping to
a $_POST["button2"] value.
What am I doing wrong?

<input type="button" name="button2" id="button2" value="Print Mode"

I really wanted to use a button to pass a different condition than a
<input type="submit">

Use a different value or name on the <input type="submit"/> button. Don't use JavaScript to trigger the form like that. Its not necessary and will bite you in the ass if ypu get a visitor who browses without JavaScript, which can include security aware users, blind users, etc

PHP General Mailing List (
To unsubscribe, visit:

Try $_POST['button2']

Best regards.

$_POST['button2'] does not exist. I'm using radio to get aorund it for now. A button would have been cleaner.

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to