2. $_POST[testmultiple][2] (Will give you position 3 of the select.)
Or: $list = implode($_POST[testmultiple]);
Will give you the values selected in $list in a comma seperated list.
3. print_r($_REQUEST)
On Tue, 2002-12-17 at 12:38, Jay Thayer wrote:
I have a php page, with a form I am attempting to submit.
<form method="Post" action="">
<input type="hidden" name="Test" value="Test Value">
<input type="submit" value="Submit" name="SubmitTest">
<form>
In submitTest.php, I simply put
<?php
print $Test;
?>
Yet, I continually get the browser message:
"Notice: Undefined variable: Test in ...\submittest.php on Line 2
1. Any reason that I can not pass the variable to the submit page? I am
using an Apache Web Server on Windows XP. I am simplying attempting to pass
a variable from one page to another, so I can update my database. This is
just a simple test that is failing.
2. If I have a <select name="testmultiple" multiple> HTML tag, how can I
reference the x# of variables that are selected in that form value in the
submittest page? I would want to get every option that is selected in the
page.
3. Is there a variable so that I can see everything that is passed from the
form, some debug variable I could "print()" to see everything that was
passed from the form?
Anyone have an idea?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-- Adam Voigt ([EMAIL PROTECTED]) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc |
signature.asc
Description: This is a digitally signed message part