Please help me with this session control before drinking
Posted: Tue Dec 04, 2007 5:42 pm
feyd | Please use
On Page 2 I have session_start(); in the head tags and this in the body
I tried everything and cannot get the thing to work. PLEASE HELP before I kill my computer.
Nick
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
For the life of me I cannot get this variable to parse to another page. I am trying to parse variables using sessions for a four page application and it isn't working. No matter what I try or do.
[b]On Page 1 (which is a redirector that works fine)[/b]Code: Select all
session_start();
session_register ('loan2');
$loan2 = $_POST[loan];
if ($loan2 =="equity")
{
header('Location: http://www.banksbid.com/equity1.php');
}Code: Select all
<?
print $HTTP_SESSION_VARS["loan2"]; print $loan2;
if (!isset($loan2)) {
print "crap" ; }
?>Nick
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]