April 20th, 2000, 10:51 PM
after much problems with cookies,
i get into another problem in which i
really need some help ! please !
i refer a variable this way :
$mypage = $SCRIPT_NAME;
then in view_item.php3 i can make a href to
that page, no problem...
when i do a submit on that form with action=$PHP_SELF $page has lost its value.
what am i doing wrong ???
i really need help ! (
April 21st, 2000, 02:54 AM
more specific detail :
when i post a form with PHP_SELF,
i lose all the HTTP_GET_VARS.
how can i keep the HTTP_GET_VARS
without using a cookie ???
i hope now it's easier to help me :-)
April 21st, 2000, 11:09 AM
You have to specifically pass any variables you want to keep. That doesn't happen automagically even if POSTing to the same page.
You can do this with a form like this:
print "<input type=hidden name='$key' value='$value'>";
If you don't want to pass ALL the GET variables you'll have to specifically declare each one in a hidden input field.