 |
Account Login
|
 |
 |
Latest Articles
|
 |
 |
IRC Channel
|
 |
 |
Associates
|
 |
 |
Associates
|
 |
|
 |
|
 |
|
 |
02-17-2008, 04:52 PM
|
#1 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 28
Thanks: 9
|
refresh, clear (dont know)????
ive got some php code created by a friend for me, it basically goes through 5 stages where the user can select different options(stage1: daytime events, stage2: evening events, stage3: hotels, stage4: quote). The 4th stage is where I am having problems. When they get to the quote it is working fine, the quote is correct and everything looks good, but if the user navigates away from the page to another page on the site, then comes back to go through the stages again, when the user gets to the quote stage again it still has their previous quote there, making it an incorrect quote.
Is it easy to clear the the quote after each time the user goes off the page.
Hope this makes sense,
Can anyone help?
Cheers
|
|
|
|
02-17-2008, 05:27 PM
|
#2 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
It makes hardly any sense until your post the script my friend. Until then, there is little we can do for you.
Hopefully, if I read it like I should, you're working with cases.
__________________
"Life is a bitch, take that bitch on a ride"
|
|
|
02-17-2008, 05:32 PM
|
#3 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 28
Thanks: 9
|
its reall long winded, but have alook here to see if what im taling about makes sense,
Bristol Stag Weekends
if it doesnt i will post it
dontthink it is using cases, like i say id dint write it, but it looks like its using if/else statements
anyway let me know if get what im asking
cheers
|
|
|
|
02-17-2008, 06:20 PM
|
#4 (permalink)
|
|
The Acquainted
Join Date: Nov 2007
Posts: 154
Thanks: 31
|
I just took a cursory look at the site, but I think I know what you're getting at. Are you using a session to store the data at all between pages (or on the last page in case the user leaves)? It won't help if they close the browser window, but a session is the best way to save state between pages.
__________________
I reject your reality, and substitute my own.
|
|
|
|
02-17-2008, 08:07 PM
|
#5 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 28
Thanks: 9
|
the problem is that the data is saved when moving away from that page, the data is saved between each stage but the data is stored from their previous qoute. I need it to clear the previous quote
|
|
|
|
02-17-2008, 08:40 PM
|
#6 (permalink)
|
|
The Wanderer
Join Date: Jan 2008
Posts: 14
Thanks: 2
|
Just unset the session.
|
|
|
|
02-17-2008, 08:42 PM
|
#7 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 28
Thanks: 9
|
how do i do that, sorry i am a complete beginner, someone else wrote the code for me but are unattainable at the moment
|
|
|
|
02-17-2008, 08:47 PM
|
#8 (permalink)
|
|
The Acquainted
Join Date: Nov 2007
Posts: 154
Thanks: 31
|
bmathers> You've got one of three choices. - Get the original developer to revise / fix the code.
- Post the relevant section of code for us to review and make suggestions on.
- Request someone on the forum to do the same, possibly at a price. I'm usually available for small jobs like this.
__________________
I reject your reality, and substitute my own.
|
|
|
|
02-17-2008, 09:01 PM
|
#9 (permalink)
|
|
The Wanderer
Join Date: Jan 2008
Posts: 14
Thanks: 2
|
Use this code
PHP Code:
session_destroy($_SESSION['<<session_name>>']); unset($_SESSION['<<session_name>>']);
and voila, the session is no more.
Just remember to put the session name in the right place.
|
|
|
|
02-17-2008, 09:39 PM
|
#10 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 28
Thanks: 9
|
Quote:
Originally Posted by owenj2o
Use this code
PHP Code:
session_destroy($_SESSION['<<session_name>>']);
unset($_SESSION['<<session_name>>']);
and voila, the session is no more.
Just remember to put the session name in the right place.
|
so where in the code would i include this? or are you saying it wouldnt work SOCK??
|
|
|
|
02-17-2008, 09:28 PM
|
#11 (permalink)
|
|
The Acquainted
Join Date: Nov 2007
Posts: 154
Thanks: 31
|
FYI, session_destroy() does not take an argument.
__________________
I reject your reality, and substitute my own.
|
|
|
|
02-17-2008, 09:38 PM
|
#12 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 28
Thanks: 9
|
PHP Code:
<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Leeds Stag Weekends</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="style3.css"/>
<style type="text/css">
<!--
.style2 {color: #000000}
-->
</style>
<script language="JavaScript">
<!--
function spawnWindow(URL,Name,features) { window.open(URL,Name,features);}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<link rel="stylesheet" href="windowfiles/dhtmlwindow.css" type="text/css" />
<script type="text/javascript" src="windowfiles/dhtmlwindow.js"></script>
<style type="text/css">
<!--
.style14 {font-size: 18px}
.style15 {color: #FFFFFF}
.style16 {
font-size: 1.4em;
color: #FFFFFF;
}
.style18 {
color: #c40000;
font-weight: bold;
}
.style19 {
color: #C40000;
font-weight: bold;
}
-->
</style>
</head>
<body>
<script type="text/javascript">
function get_pop(fld) {
var googlewin=dhtmlwindow.open("googlebox", "iframe", "message.php?fld=M_"+fld, "Information", "width=600px,height=350px,resize=1,scrolling=1,center=1", "recal")
}
</script>
<div id="content"> <div align="center"><img src="images/NottsStagHeader.gif" width="970" height="185" /></div>
<h2 align="center" class="style16">Leeds Stag Tailor Made Packages</h2>
<div id="main-text">
<table width="935" align="left">
<td width="141" valign="top"><p> </p>
<p>
</p>
<p>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="141" height="41" align="bottom">
<param name="movie" value="flash/LeedsStagPackages.swf" />
<param name="quality" value="high" />
<embed src="flash/LeedsStagPackages.swf" width="141" height="41" align="bottom" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>
</p>
<p> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="141" height="41">
<param name="movie" value="flash/LeedsGallery.swf" />
<param name="quality" value="high" />
<embed src="flash/LeedsGallery.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="141" height="41"></embed>
</object>
</p>
<p> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="141" height="41">
<param name="movie" value="flash/LeedsAbout.swf" />
<param name="quality" value="high" />
<embed src="flash/LeedsAbout.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="141" height="41"></embed>
</object>
</p>
<p>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="141" height="41">
<param name="movie" value="flash/contactus.swf" />
<param name="quality" value="high" />
<embed src="flash/contactus.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="141" height="41"></embed>
</object>
</p> <p>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="141" height="41">
<param name="movie" value="flash/BristolStagTailor2.swf" />
<param name="quality" value="high" />
<embed src="flash/BristolStagTailor2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="141" height="41"></embed>
</object>
</p><p>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="141" height="41">
<param name="movie" value="flash/NottinghamStagTailor2.swf" />
<param name="quality" value="high" />
<embed src="flash/NottinghamStagTailor2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="141" height="41"></embed>
</object>
</p>
<p> <span class="style2">
</span> </p></td>
<td align="left" valign="top">
<table width="775" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><?
$page = "tailormade";
if ($_REQUEST['cmd'] == "start") { unset($_SESSION); session_destroy; }
if ($_POST['step'] == 2) {
/* echo '<br /><br /><img src="images/new2.jpg" alt="Hen Nights with Planet Red Events" /><br /><br /><br /><br />
<br /><br /><img src="images/partytime.jpg" alt="Party Time with Planet Red Events" /><br /><br /><br /><br />
<br /><br /><img src="images/new1.jpg" alt="Party Nights with Planet Red Events" /><br /><br /><br /><br />
<br /><br /><img src="images/nightclub.jpg" alt="Nightclub Entry with Planet Red Events" />';*/
} elseif (!isset($_POST['step']) OR $_POST['step'] == 1) {
/* echo '<div style="height: 70px;"></div><img src="images/newside4.jpg" alt="Party Time" />
<div style="height: 250px;"></div><img src="images/hilton.jpg" alt="Corporate Events" />
<div style="height: 225px;"></div><img src="images/newside2.jpg" alt="Hen Weekends" />
<div style="height: 275px;"></div><img src="images/jeeps.jpg" alt="Stag Weekends" />
<div style="height: 180px;"></div><img src="images/tank.jpg" alt="Tank Driving with Planet Red Events" />
<div style="height: 220px;"></div><img src="images/limo.jpg" alt="Crazy Limo" />
<div style="height: 200px;"></div><img src="images/rally.jpg" alt="Rally Driving" />';*/
}
if ($_POST['cmd'] == "unset") {
if ($_POST['step'] == 4) {
unset($_SESSION['accom']);
unset($_SESSION['nights']);
} elseif ($_POST['step'] == 2) {
unset($_SESSION['Mexican_Party']);
unset($_SESSION['Italian_Party']);
unset($_SESSION['South_America_Meal']);
unset($_SESSION['Tiger_Tiger']);
unset($_SESSION['Comedy_Club']);
unset($_SESSION['Gentlemens_Club']);
unset($_SESSION['HIFI_Night']);
unset($_SESSION['Nightclub_TicketsL']);
} elseif ($_POST['step'] == 1) {
unset($_SESSION['Paintball_100L']);
unset($_SESSION['Quad_TrekingL']);
unset($_SESSION['Indoor_Karting_EndurancL']);
unset($_SESSION['Off_Road_KartingL']);
unset($_SESSION['Archery']);
unset($_SESSION['Air_Rifle_Shooting']);
unset($_SESSION['Cimbing_Wall']);
}
}
?>
</td>
<td width="10"></td>
<?
foreach($_POST as $v => $k) {
$code = substr($v, 0, 2);
$value = str_replace("C_", "", $v);
if ($code == "C_") {
if ($value == "step") { }
elseif ($value == "name") { }
elseif ($value == "submit") { }
elseif ($value == "cmd") { }
else {
$_SESSION[$value] = $k;
}
}
}
if ($_POST['step'] == 7) {
$error = "";
if ($_POST['name'] == "") { $error .= "You forgot to enter your name.<br />"; }
if ($_POST['email'] == "") { $error .= "You forgot to enter your email address.<br />"; }
if ($_POST['cemail'] == "") { $error .= "You forgot to confirm your email address.<br />"; }
if ($_POST['cemail'] != $_POST['email']) { $error .= "Your email addresses do not match.<br />"; }
if ($_POST['telephone'] == "") { $error .= "You forgot to enter your telephone number.<br />"; }
if ($_POST['city'] == "") { $error .= "You forgot to enter your chosen city.<br />"; }
if ($error != "") { $_POST['step'] = 6; }
}
if ($_POST['step'] == 7) {
$to = "planetredevents@btconnect.com";
$subject = "Planet Red Enquiry";
$message = '<div style="font-family:tahoma, arial, verdana; size:10pt; color:black;">
Name: <b>' . $_POST['name'] . '</b><br />
E-Mail: <b><a href="mailto:' . $_POST['email'] . '">' . $_POST['email'] . '</a></b><br />
Phone: <b>' . $_POST['telephone'] . '</b><br />
Mobile: <b>' . $_POST['mobile'] . '</b><br />
Chosen City: <b>' . $_POST['city'] . '</b><br />
Party Size: <b>' . $_POST['group'] . '</b><br />
Start Date: <b>' . $_POST['start'] . '</b><br />
Quote: <br /><b><table width="550" class="plainsmall" cellspacing="2" cellpadding="2">';
$total = 0;
foreach($_SESSION as $v => $k) {
if ($v == "accom") { } elseif ($v == "nights") { } else {
$message .= '
<tr>
<td align="right" width="50%" bgcolor="#F3F3F3">' . str_replace("_", " ", $v) . '</td>
<td align="center" width="50%" bgcolor="#F3F3F3">£' . number_format($k, 2) . '</td>
</tr> ';
$total += $k;
} }
$total += ($_SESSION['accom'] * $_SESSION['nights']);
$message .= '
<tr>
<td align="right" width="50%" bgcolor="#F3F3F3">Accommodation (' . $_SESSION['nights'] . ' nights) </td>
<td align="center" width="50%" bgcolor="#F3F3F3">£' . number_format(($_SESSION['accom'] * $_SESSION['nights']), 2) . '</td>
</tr>
<tr>
<td align="right" width="50%" bgcolor="#F3F3F3">Total Per Person</td>
<td align="center" width="50%" bgcolor="#F3F3F3">£' . number_format($total, 2) . '</td>
</tr>
</table>
</center></b><br />';
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "To: Planet Red Events <info@planetredevents.co.uk>\r\n";
$headers .= "From: Planet Red Events <info@planetredevents.co.uk>\r\n";
mail($to, $subject, $message, $headers);
echo "<table border='0' width='775'><tr><td> </td></tr><tr><td>";
echo "<h1>Thank you for your valued enquiry a member of our staff will contact you shortly.</h1>";
echo "</td></tr></table>";
} elseif ($_POST['step'] == 6) {
?> <form method="post" action="">
<input type="hidden" name="step" value="7" /><input type="hidden" name="accom" value="<? echo $_POST['accom']; ?>" /><input type="hidden" name="nights" value="<? echo $_POST['nights']; ?>" />
<table border="0" width="775" cellspacing="4" cellpadding="4" style="background:#000000;">
<tr>
<td align="center"><font style="font-size:8pt; color: #BE0028;"> Step 1 <br /> Daytime Activities </font></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><font style="font-size:8pt; color: #BE0028;"> Step 2 <br /> Evening Activities </b></font></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><font style="font-size:8pt; color: #BE0028;"> Step 3 <br /> Accommodation </font></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><font style="font-size:8pt; color: #BE0028;"> Step 4 <br /> Your Quotation </font></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><font style="font-size:8pt; color: #BE0028;"><b> Step 5 <br /> Your Details </b></font></td>
</tr>
</table>
</center>
<br />
<span class="style15">Please complete the following details and we will contact you with the availability before you confirm your booking.</span> <br />
<font color="red">* Required Field</font><br />
<?
if ($error != "") { echo '<br /><font color="red"><center>' . $error . '</center></font>'; }
?>
<table width="775" class="plainsmall" cellspacing="2" cellpadding="2">
<tr>
<td align="right" bgcolor="#F3F3F3"> Your Name <font color="red">*</font> </td>
<td align="center" bgcolor="#F3F3F3">:</td>
<td align="left" bgcolor="#F3F3F3"> <input type="text" name="name" value="<? echo $_POST['name']; ?>" /> </td>
</tr>
<tr>
<td align="right" bgcolor="#F3F3F3"> E-Mail <font color="red">*</font></td>
<td align="center" bgcolor="#F3F3F3">:</td>
<td align="left" bgcolor="#F3F3F3"> <input type="text" name="email" value="<? echo $_POST['email']; ?>" /> </td>
</tr>
<tr>
<td align="right" bgcolor="#F3F3F3"> Confirm E-Mail <font color="red">*</font></td>
<td align="center" bgcolor="#F3F3F3">:</td>
<td align="left" bgcolor="#F3F3F3"> <input type="text" name="cemail" value="<? echo $_POST['cemail']; ?>" /> </td>
</tr>
<tr>
<td align="right" bgcolor="#F3F3F3"> Telephone <font color="red">*</font> </td>
<td align="center" bgcolor="#F3F3F3">:</td>
<td align="left" bgcolor="#F3F3F3"> <input type="text" name="telephone" value="<? echo $_POST['telephone']; ?>" /> </td>
</tr>
<tr>
<td align="right" bgcolor="#F3F3F3"> Mobile </td>
<td align="center" bgcolor="#F3F3F3">:</td>
<td align="left" bgcolor="#F3F3F3"> <input type="text" name="mobile" value="<? echo $_POST['mobile']; ?>" /> </td>
</tr>
<tr>
<td align="right" bgcolor="#F3F3F3"> Chosen City <font color="red">*</font></td>
<td align="center" bgcolor="#F3F3F3">:</td>
<td align="left" bgcolor="#F3F3F3"> <input type="text" name="city" value="<? echo $_POST['city']; ?>" /> </td>
</tr>
<tr>
<td align="right" bgcolor="#F3F3F3"> Start Date </td>
<td align="center" bgcolor="#F3F3F3">:</td>
<td align="left" bgcolor="#F3F3F3"> <input type="text" name="start" value="<? echo $_POST['start']; ?>" /> </td>
</tr>
<tr>
<td align="right" bgcolor="#F3F3F3"> Group Size </td>
<td align="center" bgcolor="#F3F3F3">:</td>
<td align="left" bgcolor="#F3F3F3"> <input type="text" name="group" value="<? echo $_POST['group']; ?>" /> </td>
</tr>
</table>
<table width="775" cellspacing="0" cellpadding="0">
<tr>
<td align="left"><input type="submit" value="SEND YOUR DETAILS" /></td></form><form method="post" action="">
<td align="right"><input type="submit" value="BACK" /></td><input type="hidden" name="cmd" value="unset" /><input type="hidden" name="step" value="5" />
</tr>
</table>
</center>
</form>
<?
} elseif ($_POST['step'] == 5) {
?>
<input type="hidden" name="step" value="6" />
<table width="775" border="0" cellspacing="4" cellpadding="4" style="background:#000000;">
<tr>
<td align="center"><font style="font-size:8pt; color: #BE0028;"> Step 1 <br /> Daytime Activities </font></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><font style="font-size:8pt; color: #BE0028;"> Step 2 <br /> Evening Activities </b></font></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><font style="font-size:8pt; color: #BE0028;"> Step 3 <br /> Accommodation </font></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><font style="font-size:8pt; color: #BE0028;"><b> Step 4 <br /> Your Quotation </b></font></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><font style="font-size:8pt; color: #ffffff;"> Step 5 <br /> Your Details </font></td>
</tr>
</table>
</center>
<br />
<span class="style15">Below is a quotation based on the activities and accommodation you have chosen. Just click next to confirm your choices and allow us to check availability, then you can decide if you would like to go ahead with your booking.</span>
<form method="post" action="">
<input type="hidden" name="step" value="4" />
<table width="775" cellspacing="0" cellpadding="0">
<tr>
<td height="26" align="left"><input type="hidden" name="cmd" value="unset" /><input type="submit" value="BACK" /> </td>
</form><form method="post" action="">
<td align="right"><input type="submit" value="NEXT" /></td><input type="hidden" name="step" value="6" />
</tr>
</table>
<table width="775" class="plainsmall" cellspacing="2" cellpadding="2">
<?
$total = 0;
foreach($_SESSION as $v => $k) {
if ($v == "accom") { } elseif ($v == "nights") { } else {
?>
<tr>
<td align="right" width="50%" bgcolor="#F3F3F3"><? echo str_replace("_", " ", $v); ?> </td>
<td align="center" width="50%" bgcolor="#F3F3F3">£<? echo number_format($k, 2); $total += $k; ?> </td>
</tr>
<?
}
}
?>
<tr>
<td align="right" width="50%" bgcolor="#F3F3F3">Accommodation (<? echo $_SESSION['nights']; ?> nights) </td>
<td align="center" width="50%" bgcolor="#F3F3F3">£<? echo number_format(($_SESSION['accom'] * $_SESSION['nights']), 2); $total += ($_SESSION['accom'] * $_SESSION['nights']); ?> </td>
</tr>
<tr>
<td align="right" width="50%" bgcolor="#F3F3F3">Total Per Person</td>
<td align="center" width="50%" bgcolor="#F3F3F3">£<? echo number_format($total, 2); ?> </td>
</tr>
</table>
</center>
<?
} elseif ($_POST['step'] == 4) {
?>
<input type="hidden" name="step" value="5" />
<table width="775" border="0" height="48" cellpadding="4" cellspacing="4" style="background:#000000;">
<tr>
<td align="center"><font style="font-size:8pt; color: #BE0028;"> Step 1 <br /> Daytime Activities </font></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><font style="font-size:8pt; color: #BE0028;"> Step 2 <br /> Evening Activities </b></font></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><font style="font-size:8pt; color: #BE0028;"><b> Step 3 <br /> Accommodation </b></font></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><span style="color: #FFFFFF"><font style="font-size:8pt; color: grey;"> Step 4 <br />
Your Quotation </font></span></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><span style="color: #FFFFFF"><font style="font-size:8pt; color: grey;"> Step 5 <br />
Your Details </font></span></td>
</tr>
</table>
</center>
<br />
<span class="style15">Now choose the number of nights you would like to stay along with your accommodation and click NEXT. If you do not require accommodation just add NONE in the number of nights section and click NEXT.</span><br />
<br />
<form method="post" action="">
<input type="hidden" name="step" value="2" />
<table width="775" cellspacing="0" cellpadding="0">
<tr>
<td align="left"><input type="hidden" name="cmd" value="unset" /><input type="submit" value="BACK" /></td></form><form method="post" action="">
<td align="right"><input type="submit" value="NEXT" /></td><input type="hidden" name="step" value="5" />
</tr>
</table><br />
<table width="775" class="plainsmall" cellspacing="2" cellpadding="2">
<tr>
<td align="right" bgcolor="#000000" colspan="2"><span class="style15"> Choose the number of nights you want to stay: </span></td>
<td align="center" bgcolor="#000000" colspan="2"><select name="C_nights">
<option value="0" <? if ($_SESSION['nights'] == 0) { echo 'selected'; } ?>>None </option>
<option value="1" <? if ($_SESSION['nights'] == 1) { echo 'selected'; } ?>>1 night </option>
<option value="2" <? if ($_SESSION['nights'] == 2) { echo 'selected'; } ?>>2 nights </option>
<option value="3" <? if ($_SESSION['nights'] == 3) { echo 'selected'; } ?>>3 nights </option>
<option value="4" <? if ($_SESSION['nights'] == 4) { echo 'selected'; } ?>>4 nights </option>
<option value="5" <? if ($_SESSION['nights'] == 5) { echo 'selected'; } ?>>5 nights </option>
<option value="6" <? if ($_SESSION['nights'] == 6) { echo 'selected'; } ?>>6 nights </option>
<option value="7" <? if ($_SESSION['nights'] == 7) { echo 'selected'; } ?>>7 nights </option></select> </td>
</tr>
<tr>
<td align="center" width="110"> <span class="style18">Accommodation </span></td>
<td align="center" width="360"> <span class="style18">Description </span></td>
<td align="center" width="65"> <span class="style18">Price (p/p p/n) </span></td>
<td align="center" width="15"> <span class="style18">Add </span></td>
</tr>
<tr>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">Standard Hotel <br />
</p></td>
<td align="justify" bgcolor="#F3F3F3"> <p class="style2">Your hotel will be 2 or 3 star, most have en-suite facilities, tea and coffee trays in each room and a guest bar. Breakfast will be included. Great value for money. Located within 2 miles of the city centre. </p></td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£35.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="15"> <input type="radio" name="C_accom" value="35" <? if ($_SESSION['accom'] == 40) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">Superior Hotel <br />
</p></td>
<td align="justify" bgcolor="#F3F3F3"> <p class="style2">Our superior 3 star hotels are situated in and around central Leeds with tea and coffee, en suite facilities and a bar. A full English or Continental breakfast is included. </p></td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£50.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="15"> <input type="radio" name="C_accom" value="50" <? if ($_SESSION['accom'] == 50) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">Luxury Hotel <br />
</p></td>
<td align="justify" bgcolor="#F3F3F3"> <p class="style2">Spend your evening in a luxury 4 star centrally located hotel with leisure facilities including a gym, pool, Jacuzzi, steam room and sauna. Beauty treatments are available at an additional cost. All rooms are en suite with a full English breakfast and guest bar facilities. </p></td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£60.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="15"> <input type="radio" name="C_accom" value="60" <? if ($_SESSION['accom'] == 55) { echo 'checked'; } ?> /> </td>
</tr>
</table>
</center>
</form>
<?
} elseif ($_POST['step'] == 2) {
?>
<input type="hidden" name="step" value="4" />
<table width="775" cellpadding="4" cellspacing="4" border="0" style="background:#000000;">
<tr>
<td align="center"><font style="font-size:8pt; color: #BE0028;"> Step 1 <br /> Daytime Activities </font></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><font style="font-size:8pt; color: #BE0028;"><b> Step 2 <br /> Evening Activities </b></font></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><span style="color: #FFFFFF"><font style="font-size:8pt; color: grey;"> Step 3 <br />
Accommodation </font></span></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><span style="color: #FFFFFF"><font style="font-size:8pt; color: grey;"> Step 4 <br />
Your Quotation </font></span></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><span style="color: #FFFFFF"><font style="font-size:8pt; color: grey;"> Step 5 <br />
Your Details </font></span></td>
</tr>
</table>
</center>
<br />
<span class="style15">Now add on your evening entertainment choices and click NEXT. <br />
Please note that unless otherwise specified drinks are not included in any of our evening packages.</span>
<form method="post" name="form3" action="">
<input type="hidden" name="step" value="1" />
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="left"><input type="hidden" name="cmd" value="unset" />
<input type="submit" value="BACK" /></td></form><form method="post" name="form1" action="">
<td align="right"><input type="submit" value="NEXT" /></td><input type="hidden" name="step" value="4" />
</tr>
</table>
<table width="775" border="0" cellpadding="2" cellspacing="2">
<tr>
<td align="center" width="110"> </td>
<td align="center" width="110"> <span class="style18">Activity </span></td>
<td align="center" width="360"> <span class="style18">Description </span></td>
<td align="center" width="65"> <span class="style18">Price (p/p) </span></td>
<td align="center" width="15"> <span class="style18">Add </span></td>
</tr>
<tr>
<td align="left" bgcolor="#F3F3F3">Mexican Party Meal & Club</td>
<td align="left" bgcolor="#F3F3F3"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Mexican_Party');">More Info </span> </td>
<td align="justify" bgcolor="#F3F3F3"><p class="style2">Enjoy a Mexican banquet at this lively centrally located bar and club </p> </td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£28.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="15"> <input type="checkbox" name="C_Mexican_Party" value="28" <? if (isset($_SESSION['Mexican_Party'])) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td align="left" bgcolor="#F3F3F3">Italian Party Meal & Club </td>
<td align="left" bgcolor="#F3F3F3"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Italian_Party');">More Info</span></td>
<td align="justify" bgcolor="#F3F3F3"><p class="style2">A taste of Italy with an Italian banquet <span class="style2">welcome drink and entry into the club afterwards </span><strong></strong></p> </td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£28.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="15"> <input type="checkbox" name="C_Italian_Party" value="28" <? if (isset($_SESSION['Italian_Party'])) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td align="left" bgcolor="#F3F3F3">South American Meal </td>
<td align="left" bgcolor="#F3F3F3"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('South_America_Meal');">More Info </span></td>
<td align="justify" bgcolor="#F3F3F3"><p class="style2">A wonderful Latin American party venue with mouth watering traditional recipes. </p> </td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£26.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="15"> <input type="checkbox" name="C_South_America_Meal" value="26" <? if (isset($_SESSION['South_America_Meal'])) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td align="left" bgcolor="#F3F3F3">Tiger Tiger </td>
<td align="left" bgcolor="#F3F3F3"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Tiger_Tiger');">More Info <br />
</span></td>
<td align="justify" bgcolor="#F3F3F3"> <p class="style2">Enjoy a 3 course meal with a bottle of lager and free entry into the club afterwards </p>
</td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£35.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="15"> <input type="checkbox" name="C_Tiger_Tiger" value="35" <? if (isset($_SESSION['Tiger_Tiger'])) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td align="left" bgcolor="#F3F3F3">Comedy Club </td>
<td align="left" bgcolor="#F3F3F3"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Comedy_Club');">More Info<br />
</span></td>
<td align="justify" bgcolor="#F3F3F3"> <p class="style2">Laugh like you've never laughed before.</p></td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£30.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="15"> <input type="checkbox" name="C_Comedy_Club" value="30" <? if (isset($_SESSION['Comedy_Club'])) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td align="left" bgcolor="#F3F3F3">Gentlemens Club </td>
<td align="left" bgcolor="#F3F3F3"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Gentlemans_Club');">More Info <br />
</span></td>
<td align="justify" bgcolor="#F3F3F3"> <p class="style2">Let the beautiful ladies entertain you one of Leeds 's best lap dancing venues. </p>
</td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£19.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="15"> <input type="checkbox" name="C_Gentlemans_Club" value="19" <? if (isset($_SESSION['Gentlemans_Club'])) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td align="left" bgcolor="#F3F3F3">Hi Fi Comedy Night </td>
<td align="left" bgcolor="#F3F3F3"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('HIFI_Night');">More Info </span></td>
<td align="justify" bgcolor="#F3F3F3"> <p class="style2"><strong>A fantastic night full of entertainment, food</strong><strong> and dancing </strong> </p> </td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£35.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="15"> <input type="checkbox" name="C_HIFI_Night" value="35" <? if (isset($_SESSION['HIFI_Night'])) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td align="left" bgcolor="#F3F3F3">Nightclub Tickets </td>
<td align="left" bgcolor="#F3F3F3"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Nightclub_TicketsL');">More Info <br />
</span></td>
<td align="justify" bgcolor="#F3F3F3"> <p class="style2">Q jump entry into a top Leeds nightclub </p></td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£10.00</p></td>
<td align="center" bgcolor="#F3F3F3" width="15"> <input type="checkbox" name="C_Nightclub_Tickets" value="10" <? if (isset($_SESSION['Nightclub_TicketsL'])) { echo 'checked'; } ?> /> </td>
</tr>
</table>
<tr>
<td align="center">
<tr>
<td> </td>
<td><input type="submit" value="NEXT" name="bottomnext" onClick="form1.submit();" /></form>
<td> or </td>
<td><form method="post" name="form2" action=""><input type="hidden" name="step" value="1" /><input type="submit" value="BACK" /></form></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td></td>
<td> </td>
<td></td>
<td> </td>
</tr>
</tr>
</center>
<?
} else {
?>
<form method="post" action="">
<input type="hidden" name="step" value="2" />
<table width="775" border="0" cellpadding="4" cellspacing="4" style="background:#000000;">
<tr>
<td align="center"><font style="font-size:8pt; color: #BE0028;"><b> Step 1 <br /> Daytime Activities </b></font></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><span style="color: #FFFFFF"><font style="font-size:8pt; color: grey;"> Step 2 <br />
Evening Activities </font></span></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><span style="color: #FFFFFF"><font style="font-size:8pt; color: grey;"> Step 3 <br />
Accommodation </font></span></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><span style="color: #FFFFFF"><font style="font-size:8pt; color: grey;"> Step 4 <br />
Your Quotation </font></span></td>
<td align="center" valign="middle"><font style="font-size:8pt; color: #BE0028;"> > </font></td>
<td align="center"><span style="color: #FFFFFF"><font style="font-size:8pt; color: grey;"> Step 5 <br />
Your Details </font></span></td>
</tr>
</table>
<div align="justify"><br>
<span class="style15">Just follow this easy step by step guide and create your own <span class="style19">Stag weekend</span> to suit your groups individual requirements. Simply choose your daytime activities, <strong>(from the list below)</strong>, your evening entertainment choices and add on any accommodation you require along with the number of nights stay for an instant quotation. </span> </div>
<table width="775" border="0" class="plainsmall" cellspacing="2" cellpadding="2">
<tr>
<td colspan="4" align="center"> <input type="submit" name="submit" value="NEXT STEP" /> </td>
</tr>
<tr>
<td align="center" width="137"><span class="style18">Activity</span></td>
<td align="center" width="88"> </td>
<td align="center" width="416"> <span class="style18">Description </span></td>
<td align="center" width="62"> <span class="style18">Price (p/p) </span></td>
<td align="center" width="40"> <span class="style18">Add </span></td>
</tr>
<tr>
<td align="left" bgcolor="#F3F3F3"><p class="style2">Paintball 100 </p></td>
<td align="left" bgcolor="#F3F3F3"><span style="color:#000099; text-decoration:underline;cursor:help; text-align:left;" onclick="return get_pop('Paintball_100L');">More Info </span></td>
<td align="justify" bgcolor="#F3F3F3"> <p class="style2">Its all about working as a team, take your brief, accept your mission, load your gun and head to the field</p></td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£20.00</p></td>
<td align="center" bgcolor="#F3F3F3" width="40"> <input type="checkbox" name="C_Paintball_100" value="20" <? if (isset($_SESSION['Paintball_100L'])) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td align="left" bgcolor="#F3F3F3"><p class="style2">Quad Treking </p></td>
<td align="left" bgcolor="#F3F3F3"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Quad_TrekingL');">More Info </span></td>
<td align="justify" bgcolor="#F3F3F3"><p class="style2">Take the quads through an exciting woodland trekking Circuit. </p> </td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£40.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="40"> <input type="checkbox" name="C_Quad Treking" value="40" <? if (isset($_SESSION['Quad_TrekingL'])) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td align="left" bgcolor="#F3F3F3"><p class="style2">Indoor Karting Endurance </p></td>
<td align="left" bgcolor="#F3F3F3"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Indoor_Karting_EndurancL');">More Info </span></td>
<td align="justify" bgcolor="#F3F3F3"><p class="style2">Gear up race fans its time to put your foot down!! </p></td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£45.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="40"> <input type="checkbox" name="C_Indoor_Karting_Enduranc" value="45" <? if (isset($_SESSION['Indoor_Karting_EndurancL'])) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td align="left" bgcolor="#F3F3F3"><p class="style2">Off Road Karting</p></td>
<td align="left" bgcolor="#F3F3F3"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Off_Road_KartingL');">More Info </span></td>
<td align="justify" bgcolor="#F3F3F3"><p class="style2">For those of you who prefer a bumpy ride, these
honda off road karts
will test your driving skills to the limit.</p> </td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£40.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="40"> <input type="checkbox" name="C_Off_Road_Karting" value="40" <? if (isset($_SESSION['Off_Road_KartingL'])) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td align="left" bgcolor="#F3F3F3"><p class="style2">Archery</p></td>
<td align="left" bgcolor="#F3F3F3"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Archery');">More Info </span></td>
<td align="justify" bgcolor="#F3F3F3"> <p class="style2">Load your cross bow and lock on to the target at this Leeds activity site </p></td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£40.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="40"> <input type="checkbox" name="C_Archery" value="40" <? if (isset($_SESSION['Archery'])) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td align="left" bgcolor="#F3F3F3"><p class="style2">Air Rifle Shooting</p></td>
<td align="left" bgcolor="#F3F3F3"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Air_Rifle_Shooting');">More Info </span></td>
<td align="justify" bgcolor="#F3F3F3"><p class="style2">Try your hand at a selection of rifles at this Leeds activity site </p> </td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£40.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="40"> <input type="checkbox" name="C_Air_Rifle_Shooting" value="40" <? if (isset($_SESSION['Air_Rifle_Shooting'])) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td align="left" bgcolor="#F3F3F3"><p class="style2">Climbing wall </p></td>
<td align="left" bgcolor="#F3F3F3"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Climbing_Wall');">More Info </span></td>
<td align="justify" bgcolor="#F3F3F3"><p class="style2">24 feet high with four stages, each one getting more difficult than the last </p> </td>
<td align="center" bgcolor="#F3F3F3"> <p class="style2">£50.00 </p></td>
<td align="center" bgcolor="#F3F3F3" width="40"> <input type="checkbox" name="C_Climbing_Wall" value="50" <? if (isset($_SESSION['Climbing_Wall'])) { echo 'checked'; } ?> /> </td>
</tr>
<tr>
<td>
</tr>
<tr>
<td colspan="4" align="center"><br> <input type="submit" name="submit" value="NEXT STEP" /> </td>
</tr>
</table>
</center>
</form>
<? } ?></td>
</tr>
</table>
</td></tr>
</table>
<div style="clear:both;"></div>
<table width="965" height="48">
<tr>
<td width="957" height="42"><div align="center"><span class="style4 style14"><a href="index.htm">Home</a><span class="style15"> :: </span><a href="FAQ.htm">FAQ</a><span class="style15"> :: </span><a href="Terms&Conditions.htm">Terms & Conditions</a><span class="style15"> :: </span><a href="Comments.htm">Comments</a></span></div></td>
</tr>
</table> </div>
</div>
</div>
</body>
</html>
there is the code, you can see it working at Bristol Stag Weekends
|
|
|
|
02-17-2008, 09:36 PM
|
#13 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 28
Thanks: 9
|
the code is extremely long winded becuase there is alot of html as well, but i can post it up.
|
|
|
|
02-17-2008, 10:03 PM
|
#14 (permalink)
|
|
The Acquainted
Join Date: Nov 2007
Posts: 154
Thanks: 31
|
No, I'm merely saying that function call is wrong.
PHP Code:
// line 111
if ($_REQUEST['cmd'] == "start") { unset($_SESSION); session_destroy; }
Now, you already have a call to unset the session data (and an incorrect call to session_destroy(), which I'm surprised doesn't throw an error). It appears that in order to destroy any previous session data, either $_POST['cmd'] or $_GET['cmd'] must be set to ' start]'. Fix the session_destroy() call, pass &cmd=start to the page and see what happens.
EDIT:
Ah, in looking at the page for session_unset(), if you unset the entire $_SESSION global variable, it renders it useless. You probably want to change that line to
PHP Code:
if ( $_REQUEST['cmd'] == 'start' ) {
// empty the array
$_SESSION= array();
// destroy the session for good measure
session_destroy();
}
__________________
I reject your reality, and substitute my own.
|
|
|
|
02-18-2008, 08:15 AM
|
#15 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 28
Thanks: 9
|
ok thanks for the replies, ill have a look at it.
|
|
|
|
02-18-2008, 09:07 AM
|
#16 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 28
Thanks: 9
|
ok getting somewhere, it now clears the data stored when using the back buttons, but doesnt if the view the quote, if the user navigates somewhere else in site, then starts a new quote, even if they uncheck boxes on their new quote it stil has them in the list.
|
|
|
|
02-18-2008, 09:29 AM
|
#17 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
Can you once more formulate that sentence, but then in correct English?  Can't make heads or talks of it.
What I can get is that it doesn't view the quote? But if the user navigates somewhere else in the site, it starts a new quote? What quote are we talking about here.
__________________
"Life is a bitch, take that bitch on a ride"
|
|
|
02-18-2008, 09:37 AM
|
#18 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 28
Thanks: 9
|
sorry mate, im getting confused myself. OK, let me start from the begining.
Might be useful to look at Nottingham Stag Weekends
The user goes through 5 stages of a tailor made stag package part of the site.
There are 5 steps to this tailor made section as you may have seen.
They are;
Step 1: Daytime packages
Step 2: Evening PAckages
Step 3:Hotel
Step 4: quote
Step 5: Customer details
OK, so the user goes through each step selecting the checkbox for an acvtivity they may want. Completing step 1,2 and 3.
Now they recieve an instant quote, just a price for all the activities they have selected including hotels and amount of nights. This works, they can view the quote and it wokrs fine.
But,
if they navigate somewhere else in the site, for example to the stag packages page, the go back to attempt a new tailor made weekend and get a different quote, the old one is still there. Even if you uncheck the old events. This means that the quote is wrong.
Does that help??
|
|
|
|
02-18-2008, 10:36 AM
|
#19 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
I seriously do not know what sort of quote your are talking about, but if I understand correct, you want to set (through a form) a new $_SESSION['quote']. Then, when someone leaved that page, the array is still set with at least 'quote'. If you wish to change it, you should first either unset(); it, or enter a new variable or just leave it blank like = '' that.
If this is what you are trying to do, that method should suffice. If not, please explain as throw as possible so I can help you out some more.
__________________
"Life is a bitch, take that bitch on a ride"
|
|
|
02-18-2008, 10:39 AM
|
#20 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 28
Thanks: 9
|
the quote is nothing, it is just the total price of the events they selected. Like a final bill that will be sent to the company. The problem is that it needs to be reset to nothing when the user leaves or enters the page
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|