Date: 12/26/99
- Next message: Shawn Patton: "Re: [PHPLIB] Sesssion problems (?)"
- Previous message: Josh Martel: "[PHPLIB] Sesssion problems (?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
On page one I have many links that pass different values for the variable
"$table" to the page address.php3 ...like so:
<?
$sess->purl("address.php3").$sess->padd_query(array("table"=>"employees","unset_table"=>"true"))?>
On address.php3 I check the value of $table and register it... like so:
if (ereg("^(employees|clients|suppliers)$", $table))
{
if ($unset_table) { $sess->unregister("table"); unset($unset_table);}
if (!$sess->is_registered($table)) { $table=$table;
$sess->register("table"); }
}
else
{
echo "wrong parameter passed to addresses";
exit;
}
I have two questions:
First, as you can see from the above script I also pass along the
variable $unset_table. I use this variable to unregister
the $table variable. This seams to work... but I thought that
I might have to page_close() after $sess->unregister("table")
and page_open() again before $sess->register("table") ( instead at just
the begining and end of the page ). Am I unregistering and re-unregistering
in the correct way?
Secondly, I might have asked this before...but is there a better
way ( more secure ) to pass the $table variable (which has a differerent
value with each link on page one ) to address.php3? Please give a short
example.
Thanks
Bob
P.S. Happy New Year!!!!
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com?sr=mc.mk.mcm.tag001
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Shawn Patton: "Re: [PHPLIB] Sesssion problems (?)"
- Previous message: Josh Martel: "[PHPLIB] Sesssion problems (?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

