Re: session variables across several pages

From: Date: Wed, 15 May 2002 15:27:50 +0000
Subject: Re: session variables across several pages
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-19196@lists.php.net to get a copy of this message
I believe you.. I added
                $HTTP_SESSION_VARS['e_address'] = $e_address;
in my process form code and it's still not updating the var. snippit from select_class.php where I have reference to $e_address:
    session_register("e_address");
...
        switch($doAction) {
            case "Save Information":
    // save data in cookies
                $HTTP_SESSION_VARS['e_address'] = $e_address;
die($e_address); ...
    <form name='myForm' method='POST' action='select_class.php' enctype='multipart/form-data'>
      <tr>
        <td><p><b>Employer Address:</b></p></td>
        <td colspan=3>
          <input type=text name=e_address maxlength=100 size=60
                value="<? echo($e_address); ?>">
        </td>
      </tr>
          <input type='submit' name='doAction' value='Save Information'>
... entering any new data does not replace the old data as the die($e_address) shows. Whatsupwiththat??? On Wednesday, May 15, 2002, at 09:57 AM, matt stewart wrote:
You need to look up $HTTP_SESSION_VARS['name'] - that's how to change the variables when they are already set...... i think most people have this problem when they first use sessions! Terry Romine
Web Developer JumpInteractive.com

« previous php.db (#19196) next »