i've got two problems with a simple e-shop that i've written the code for
i think they may boil down to being the same problem but i'm not sure:
1st up:
simple login:
just takes a user id as input, checks against the db and forwards to the correct page if it exists
works for firefox but not for IE - if you press Enter to submit the form (if you click the login-submit button it works as in firefox)
2nd:
shopping basket:
the fundamental part that isnt working is the creation of a session variable which is called later in the page
code as below:
as with the login it works fine in FF but not in IE.
I will keep putting debug echos in to try and find where it's going wrong, but kind of desperate to solve this, i've been testing throughout dev in FF unaware there could be any incompatibilities like these
any suggestions will be gratefully appreciated
i think they may boil down to being the same problem but i'm not sure:
1st up:
simple login:
just takes a user id as input, checks against the db and forwards to the correct page if it exists
works for firefox but not for IE - if you press Enter to submit the form (if you click the login-submit button it works as in firefox)
2nd:
shopping basket:
the fundamental part that isnt working is the creation of a session variable which is called later in the page
code as below:
PHP:
$result = mysql_query($query);
$thisorder = mysql_insert_id();
}
if ((!isset($_SESSION['order'])) || ($_SESSION['order'] == NULL))
{
$_SESSION['order'] = $thisorder;
}
I will keep putting debug echos in to try and find where it's going wrong, but kind of desperate to solve this, i've been testing throughout dev in FF unaware there could be any incompatibilities like these
any suggestions will be gratefully appreciated