Re: Sessions Variables and refresh pages

From: Date: Tue, 02 Oct 2001 16:06:28 +0000
Subject: Re: Sessions Variables and refresh pages
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69604@lists.php.net to get a copy of this message
Ok. First i have a result-select-page displaying the id's of my items and other values. id1(link) ------ item 1 bla bla bla id2(link) ------ item 2 bla bla bla when the user selects an id link appears the accesscontrol page: <?php session_start(); if (!isset($uid2)) { ?> ... <form method="get" action="<?=$REQUEST_URI?>"> <td><input type="text" name="uid2" maxlength="10"></td> <input type="password" name="pwd2" maxlength="10"></td> <input type="submit" name="submit" value="Log In"></td> ...... session_register("uid2"); session_register("pwd2"); this script checks the user/password against a database if data is right... it shows the detail for the item the user selected in detail.php session_start(); $user = $HTTP_SESSION_VARS['uid2']; $cod = strstr($REQUEST_URI,"="); $cod = substr($cod,1); and i do a select from another table... i need to reload this page in order to show the results, otherwise, the page is in blank. If i check the page source in my browser options, the source says: data missing... you need to reload.. bla bla bla.... I hope this explanation helps. Karina

« previous php.general (#69604) next »