To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm



On 04 November 2004 10:56, Stuart Felenstein wrote:

> --- Reinhart Viane <[EMAIL PROTECTED]> wrote:
> 
> > Suppose Richard means:
> > 
> > If (isset($_POST['ListingName'])) {
> > $_SESSION['f1a'] = $_POST['ListingName'];
> > }
> 
> 
> Right, I've tried all three variations , none of
> which, I'm sorry to report, have helped.
> 
> The variable is alive with any of the code including
> the one I had originally.  It seems to do a reset
> though when it's redirected.  I've even tried:
> 
> Page3:
> 
> if (count($LurkerIndustry) > 5) {
> $_SESSION['arrayerr'] = "you have selected too many industries";
> $_SESSION['f1a'] = $_POST['ListingName'];
> header ("Location: TestMulti2.php");
> exit;
> }

Well, that's even worse -- because page3 can *never* be reached as the
result of submitting a form, its $_POST[] will *always* be empty -- so this
assignment is also bound to set $_SESSION['f1a'] to NULL.

You seem to have a very hazy view of the flow of your data from one script
to the next.  I really do recommend sitting down with a printout of your
code and a balnk sheet of paper and a pen, and manually working through as
if you were the PHP processor, and recording all the data flows and setting
and unsetting of variables.  It can be a real eye-opener about where values
are going and being used, and can really help solidify your understanding of
the data flow both within scripts and from one script to the next.  Many's
the time I've had a lightbulb moment as I've recorded values flowing into a
place I'd have sworn they couldn't get (or not into a place they should!).
It's tedious and long-winded, but the reward can absolutely be worth it.

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to