NYCPHP Meetup

NYPHP.org

[nycphp-talk] Passing info entered into HTML FORMS into SESSION variables.

David Krings ramons at gmx.net
Sun Nov 18 15:58:17 EST 2007


> <?php
>        $t = $row['data']; $u = $row['result']; $v = $row['note'];
> 
>        $_SESSION['data']   = $t;  $_SESSION['result'] = $u; 
> $_SESSION['note']   = $v;
> 
>        echo(' data = ' .$t. ' result = ' .$u. ' note = ' .$v. "<BR>"); ?>
> 
> 

Did you anywhere start a session? You need a session_start() in order to work 
with sessions. I recommend starting the session before you do anything else.

David



More information about the talk mailing list