khuti
10-13-2006, 08:43 AM
hey guys, im hoping sumbody here can help me,..
ive looked over the code sooo many times know and its buggin me lol!.. i really cant see the problem.. im hoping sumelse can..
heres sum of the code:
<?
session_start();
if($_POST['submit']){
header("Location: quote2.php");
}
if($_POST['calc']){
$hosting = $_POST['hosting'];
if($hosting == "yes"){
$total = $total + 20;
$_SESSION['hosting'] = $hosting;
}
else{
$_SESSION['hosting'] = $hosting;
}
}
?>
now effectly shouldnt i be able to pull that session out on the same page or anyother page after calc has been clicked?.. this is only part of the code, ive done some checks the math all works so hosting does equal yes when its supposed to so the form is working but when i try to use the session variable it just seems to be blank, ive even tried to display it on the same page using echo(); if you can see something im missing please let me know.
o yea we have done many of other sites using the same web host company and ive never had a problem with session so i would think the settings are ok. though i will double check that.
ive looked over the code sooo many times know and its buggin me lol!.. i really cant see the problem.. im hoping sumelse can..
heres sum of the code:
<?
session_start();
if($_POST['submit']){
header("Location: quote2.php");
}
if($_POST['calc']){
$hosting = $_POST['hosting'];
if($hosting == "yes"){
$total = $total + 20;
$_SESSION['hosting'] = $hosting;
}
else{
$_SESSION['hosting'] = $hosting;
}
}
?>
now effectly shouldnt i be able to pull that session out on the same page or anyother page after calc has been clicked?.. this is only part of the code, ive done some checks the math all works so hosting does equal yes when its supposed to so the form is working but when i try to use the session variable it just seems to be blank, ive even tried to display it on the same page using echo(); if you can see something im missing please let me know.
o yea we have done many of other sites using the same web host company and ive never had a problem with session so i would think the settings are ok. though i will double check that.