RE: [PHP] Validation and session variables
| From: | Stuart Felenstein | Date: | Thu, 28 Oct 2004 09:08:01 +0000 |
| Subject: | RE: [PHP] Validation and session variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200528@lists.php.net to get a copy of this message | ||
--- Graham Cossey <graham@cossey.plus.com> wrote:
> I think we need to know what happens when this
> function returns the user to
> the script upon finding an error. Are all the form
> field values passed back?
Doesn't seem that they are. I tripped an error on
page1 , had an echo set for the first session
variable. The page popped back with my errors, but no
session variable. But! maybe that is tied into what I
said towards the end of my last thread.
All page1 has is:
<input name="ListingName" type="text" id="ListingName"
maxlength="20" />
The session variable isn't posted until page2:
$_SESSION['f1a'] = $_POST['ListingName'];
> Does it do anything at all with the session? Does it
> pass the SID?
It's passing the SID yes. SID number remains
consistent. I am not checking the /tmp file though.
I'll assume at this point it's at 0kb
>
> Are you saying that page1 always fails validation
> even if you enter all the
> form fields correctly?
No not at all. Validaton works fine.
Stuart