NYCPHP Meetup

NYPHP.org

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

Michael Southwell michael.southwell at nyphp.com
Sun Nov 18 16:02:44 EST 2007


PaulCheung wrote:
>        $t = $row['data']; $u = $row['result']; $v = $row['note'];

How are you populating the $row array?  I would have expected this to be:
     $t = $_POST['data'];
Doing it this way you should have no problem. And by the way, you don't 
need the $t etc variables unless you are using them elsewhere. That 
would make it this:
     $_SESSION['data'] = $_POST['data'];

-- 
=================
Michael Southwell
Vice President, Education
NYPHP TRAINING:  http://nyphp.com/Training/Indepth



More information about the talk mailing list