Re: Submitting a Form
| From: | Joseph W. Goff | Date: | Tue, 17 Dec 2002 17:43:49 +0000 |
| Subject: | Re: Submitting a Form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128586@lists.php.net to get a copy of this message | ||
Your error reporting is set to E_ALL. If you change it to E_ALL & ~E_NOTICE
you will not get the notice messages anymore.
Also, if you are not getting the value, try $_POST['Test'] instead.
----- Original Message -----
From: "Jay Thayer" <jaythayer@yahoo.com>
To: <php-general@lists.php.net>
Sent: Tuesday, December 17, 2002 11:38 AM
Subject: [PHP] Submitting a Form
> I have a php page, with a form I am attempting to submit.
> <form method="Post" action="submitTest.php">
> <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
>