TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-15-2008, 05:03 PM   #1 (permalink)
The Contributor
 
Join Date: Jan 2008
Posts: 28
Thanks: 9
bmathers is on a distinguished road
Default clearing memory

ive got some php code created by a friend for me, it basically goes through 5 stages where the user can select different options. The 4th stage is a quote, but once ive filled it in and then go onto another page in the site, then go back and fill it all in differently it keeps the same information from before. Hence, producing an incorrect quote.

Is it easy to clear the the quote after each time the user goes off the page. The one problem i can see so far is that there is back and next buttons to go between the different stages, so i dont want the user to click back then next and the quote to have been cleared.

Hope this makes sense,

Can anyone help?

Cheers
bmathers is offline  
Reply With Quote
Old 02-15-2008, 05:07 PM   #2 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

What? Could we see the script, maybe that will bring some light to what you are trying to do.
__________________

Village Idiot is offline  
Reply With Quote
Old 02-15-2008, 05:11 PM   #3 (permalink)
The Contributor
 
Join Date: Jan 2008
Posts: 28
Thanks: 9
bmathers is on a distinguished road
Default

here it is, quite long winded im afraid

PHP Code:
<?
 $page 
"tailormade";

 if (
$_REQUEST['cmd'] == "start") { unset($_SESSION); session_destroy; }
 if (
$_POST['step'] == 2) {
/*         echo '<br /><br /><img src="http://www.talkphp.com/images/new2.jpg" alt="Hen Nights with Planet Red Events" /><br /><br /><br /><br />
               <br /><br /><img src="http://www.talkphp.com/images/partytime.jpg" alt="Party Time with Planet Red Events" /><br /><br /><br /><br />
               <br /><br /><img src="http://www.talkphp.com/images/new1.jpg" alt="Party Nights with Planet Red Events" /><br /><br /><br /><br />
               <br /><br /><img src="http://www.talkphp.com/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="http://www.talkphp.com/images/newside4.jpg" alt="Party Time" />
               <div style="height: 250px;"></div><img src="http://www.talkphp.com/images/hilton.jpg" alt="Corporate Events" />
               <div style="height: 225px;"></div><img src="http://www.talkphp.com/images/newside2.jpg" alt="Hen Weekends" />
               <div style="height: 275px;"></div><img src="http://www.talkphp.com/images/jeeps.jpg" alt="Stag Weekends" />
               <div style="height: 180px;"></div><img src="http://www.talkphp.com/images/tank.jpg" alt="Tank Driving with Planet Red Events" />
               <div style="height: 220px;"></div><img src="http://www.talkphp.com/images/limo.jpg" alt="Crazy Limo" />
               <div style="height: 200px;"></div><img src="http://www.talkphp.com/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['Tapas_SalsaHL']);
                  unset(
$_SESSION['RevolutionHL']);
                  unset(
$_SESSION['Mexican_MealHL']);
                  unset(
$_SESSION['Italian_MealHL']);
                  unset(
$_SESSION['South_American_MealHL']);
                  unset(
$_SESSION['Tiger_TigerHL']);
                  unset(
$_SESSION['Comedy_ClubHL']);
                  unset(
$_SESSION['HIFI_NightHL']);
                  unset(
$_SESSION['Nightclub_TicketsHL']);

         } elseif (
$_POST['step'] == 1) {
                  unset(
$_SESSION['Pamper_ExperienceHL']);
                  unset(
$_SESSION['Cover_GirlHL']);
                  unset(
$_SESSION['Model_ShootHL']);
                  unset(
$_SESSION['CocktailHL']);
                  unset(
$_SESSION['SalsaHL']);
                  unset(
$_SESSION['Vodka_TastingHL']);
                  unset(
$_SESSION['Pole_DancingHL']);
                  unset(
$_SESSION['Beauty_TreatHL']);
                  unset(
$_SESSION['PaintballHL']);
                  unset(
$_SESSION['Quad_TrekingHL']);
                  unset(
$_SESSION['Indoor_KartingHL']);
         }
     }
?>
     </td>  
     <td width="10"></td>
        <?
         
foreach($_POST as $v => $k) {
                 
$code substr($v02);
                 
$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  "info@planetredevents.co.uk";
                          
$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($k2) . '</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($total2) . '</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>&nbsp;</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: #ef1ec5;"> Step 1 <br /> Daytime Activities </font></td>
             <td align="center" valign="middle"><font style="font-size:8pt; "> > </font></td>
             <td align="center"><font style="font-size:8pt; color: #ef1ec5;"> Step 2 <br /> Evening Activities </b></font></td>
             <td align="center" valign="middle"><font style="font-size:8pt; color: #ef1ec5;"> > </font></td>
             <td align="center"><font style="font-size:8pt; color: #ef1ec5;"> Step 3 <br /> Accommodation </font></td>
             <td align="center" valign="middle"><font style="font-size:8pt; color: #ef1ec5;"> > </font></td>
             <td align="center"><font style="font-size:8pt; color: #ef1ec5;"> Step 4 <br /> Your Quotation </font></td>
             <td align="center" valign="middle"><font style="font-size:8pt; color: #ef1ec5;"> > </font></td>
             <td align="center"><font style="font-size:8pt; color: #ef1ec5;"><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"> 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: #ef1ec5;"> Step 1 <br /> Daytime Activities </font></td>
             <td align="center" valign="middle"><font style="font-size:8pt; color: #ef1ec5;"> > </font></td>
             <td align="center"><font style="font-size:8pt; color: #ef1ec5;"> Step 2 <br /> Evening Activities </b></font></td>
             <td align="center" valign="middle"><font style="font-size:8pt; color: #ef1ec5;"> > </font></td>
             <td align="center"><font style="font-size:8pt; color: #ef1ec5;"> Step 3 <br /> Accommodation </font></td>
             <td align="center" valign="middle"><font style="font-size:8pt; color: #ef1ec5;"> > </font></td>
             <td align="center"><font style="font-size:8pt; color: #ef1ec5;"><b> Step 4 <br /> Your Quotation </b></font></td>
             <td align="center" valign="middle"><font style="font-size:8pt; color: #ef1ec5;"> > </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($k2); $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($total2); ?> </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: #ef1ec5;"> Step 1 <br /> Daytime Activities </font></td>
             <td align="center" valign="middle"><font style="font-size:8pt; color: #ef1ec5;"> > </font></td>
             <td align="center"><font style="font-size:8pt; color: #ef1ec5;"> Step 2 <br /> Evening Activities </b></font></td>
             <td align="center" valign="middle"><font style="font-size:8pt; color: #ef1ec5;"> > </font></td>
             <td align="center"><font style="font-size:8pt; color: #ef1ec5;"><b> Step 3 <br /> Accommodation </b></font></td>
             <td align="center" valign="middle"><font style="font-size:8pt; color: #ef1ec5;"> > </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: #ef1ec5;"> > </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 style26">Accommodation </span></td>
          <td align="center" width="360"> <span class="style18 style26">Description </span></td>
          <td align="center" width="65"> <span class="style18 style26">Price (p/p p/n) </span></td>
          <td align="center" width="15"> <span class="style18 style26">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 buffet 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 buffet 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: #EF1ec5;"> Step 1 <br /> Daytime Activities </font></td>
             <td align="center" valign="middle"><font style="font-size:8pt; color: #ef1ec5;"> > </font></td>
             <td align="center"><font style="font-size:8pt; color: #ef1ec5;"><b> Step 2 <br /> Evening Activities </b></font></td>
             <td align="center" valign="middle"><font style="font-size:8pt; color: #ef1ecg;"> > </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: #ef1ec5;"> > </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: #ef1ec5;"> > </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="141"><span class="style18 style26">Activity </span></td>
          <td align="center" width="81"><span class="style26"></span> </td>
          <td align="center" width="399"> <span class="style18 style26">Description </span></td>
          <td align="center" width="80"> <span class="style18 style26">Price (p/p) </span></td>
          <td align="center" width="42"> <span class="style18 style26">Add </span></td>
         </tr>
         
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Spanish Tapas &amp; Salsa Lesson </p></td>
          <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Tapas_SalsaHL');">More Info </span></div></td>
          <td align="justify" bgcolor="#F3F3F3"><p class="style2">Why not try and learn some sexy salsa moves beforea<strong>nd Salsa Lesson </strong>an authentic Spanish tapas meal
            </p>            </td>
          <td align="center" bgcolor="#F3F3F3"> <p class="style2">£30.00 </p></td>
          <td align="center" bgcolor="#F3F3F3" width="42"> <input type="checkbox" name="C_Spanish_Tapas_and_Salsa" value="30" <? if (isset($_SESSION['Tapas_SalsaHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Revolution Meal </p></td>
          <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('RevolutionHL');">More Info </span></div></td>
          <td align="justify" bgcolor="#F3F3F3"><p class="style2">Sit back relax and enjoy a 3 course meal at this popular Vodka bar </p>            </td>
          <td align="center" bgcolor="#F3F3F3"> <p class="style2">£30.00 </p></td>
          <td align="center" bgcolor="#F3F3F3" width="42"> <input type="checkbox" name="C_Revolution" value="30" <? if (isset($_SESSION['RevolutionHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2"> Mexican Party Meal &amp; Club  </p></td>
          <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Mexican_MealHL');">More Info </span></div></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="42"> <input type="checkbox" name="C_Mexican_Party_Meal" value="28" <? if (isset($_SESSION['Mexican_MealHl'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Italian Meal &amp; Club Entry </p></td>
          <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Italian_MealHL');">More Info<br />
          </span></div></td>
          <td align="justify" bgcolor="#F3F3F3"> <p class="style2">A taste of Italy with an Italian banquet welcome drink and entry into the club afterwards
           </p>           </td>
          <td align="center" bgcolor="#F3F3F3"> <p class="style2">£28.00 </p></td>
          <td align="center" bgcolor="#F3F3F3" width="42"> <input type="checkbox" name="C_Italian_Meal_and_Club" value="28" <? if (isset($_SESSION['Italian_MealHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">South American Meal </p></td>
          <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('South_American_MealhHL');">More Info <br />
          </span></div></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="42"> <input type="checkbox" name="C_South_American_Meal" value="26" <? if (isset($_SESSION['South_American_MealHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">TigerTiger Meal &amp; Club Entry </p></td>
          <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Tiger_TigerHL');">More Info <br />
          </span></div></td>
          <td align="justify" bgcolor="#F3F3F3"> <p class="style2">Enjoy a 3 course meal with a cocktail 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="42"> <input type="checkbox" name="C_Tiger_Tiger_Meal_and_Club" value="35" <? if (isset($_SESSION['Tiger_TigerHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Comedy Club &amp; Meal </p></td>
          <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Comedy_ClubHL');">More Info </span></div></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="42"> <input type="checkbox" name="C_Comedy_Club" value="30" <? if (isset($_SESSION['Comedy_ClubHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Hi Fi Comedy Night with Meal &amp; Club </p></td>
          <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('HIFI_NightHL');">More Info </span></div></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="42"> <input type="checkbox" name="C_HiFi_Comedy_Night_Meal_and_Club" value="35" <? if (isset($_SESSION['HIFI_NightHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Nightclub Tickets </p></td>
          <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Nightclub_TicketsHL');">More Info <br />
          </span></div></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="42"> <input type="checkbox" name="C_Nightclub_Tickets" value="10" <? if (isset($_SESSION['Nightclub_TicketsHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
        </table>

         <tr>
         <td align="center">

  <tr>
  <td>&nbsp; &nbsp;</td>
  <td><input type="submit" value="NEXT" name="bottomnext" onClick="form1.submit();" /></form>
  <td> &nbsp;&nbsp;  or &nbsp; &nbsp; </td>
  <td><form method="post" name="form2" action=""><input type="hidden" name="step" value="1" /><input type="submit" value="BACK" /></form></td>
  <td>&nbsp;&nbsp;</td>
  </tr>
    <tr>
    <td>&nbsp;&nbsp;</td>
    <td></td>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td></td>
    <td>&nbsp;&nbsp;</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"><span style="color: #ef1ec5"><font style="font-size:8pt; color: #EF1EC5;"><b> Step 1 <br /> 
             Daytime Activities </b></font></span></td>
             <td align="center" valign="middle"><span style="color: #EF1EC5"><font style="font-size:8pt; color: #EF1EC5;"> > </font></span></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"><span style="color: #EF1EC5"><font style="font-size:8pt; color: #EF1EC5;"> > </font></span></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"><span style="color: #EF1EC5"><font style="font-size:8pt; color: #EF1EC5;"> > </font></span></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"><span style="color: #EF1EC5"><font style="font-size:8pt; color: #EF1EC5;"> > </font></span></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">Hen 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="129"><span class="style25">Activity</span></td>
          <td align="center" width="81"><span class="style26"></span> </td>
          <td align="center" width="431"> <span class="style25">Description </span></td>
          <td align="center" width="61"> <span class="style25">Price (p/p) </span></td>
          <td align="center" width="41"> <span class="style25">Add </span></td>
         </tr>

         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Pamper Experience </p></td>
          <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help; text-align:left;" onclick="return get_pop('Pamper_ExperienceHL');">More Info</span></div></td>
          <td align="justify" bgcolor="#F3F3F3"> <p class="style2">A chance to be totally pampered within you're superior hotel with a choice of treatments
           </p>           </td>
          <td align="center" bgcolor="#F3F3F3"> <p class="style2">£55.00</p></td>
          <td align="center" bgcolor="#F3F3F3" width="41"> <input type="checkbox" name="C_Pamper_Experience" value="55" <? if (isset($_SESSION['Pamper_ExperienceHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Cover Girl Party </p></td>
           <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Cover_GirlHL');">More Info </span></div></td>
           <td align="justify" bgcolor="#F3F3F3"><p class="style2"> Live like an A list cover girl for the day.

</p></td>
          <td align="center" bgcolor="#F3F3F3"> <p class="style2">£55.00 </p></td>
          <td align="center" bgcolor="#F3F3F3" width="41"> <input type="checkbox" name="C_Cover_Girl_Party" value="55" <? if (isset($_SESSION['Cover_GirlHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Model Makeover Shoot </p></td>
           <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Model_ShootHL');">More Info</span></div></td>
           <td align="justify" bgcolor="#F3F3F3"><p class="style2">Want to look like the cover girl from your favourite magazine? </p>             </td>
          <td align="center" bgcolor="#F3F3F3"> <p class="style2">£45.00 </p></td>
          <td align="center" bgcolor="#F3F3F3" width="41"> <input type="checkbox" name="C_Model_Shoot" value="45" <? if (isset($_SESSION['Model_ShootHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Cocktail Experience </p></td>
           <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('CocktailHL');">More Info</span></div></td>
           <td align="justify" bgcolor="#F3F3F3"><p class="style2"> Why not try your hand at making a brand new

cocktail.</p></td>
          <td align="center" bgcolor="#F3F3F3"> <p class="style2">£30.00 </p></td>
          <td align="center" bgcolor="#F3F3F3" width="41"> <input type="checkbox" name="C_Cocktail_Experience" value="30" <? if (isset($_SESSION['CocktailHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Salsa Lesson </p></td>
           <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('SalsaHL');">More Info </span></div></td>
           <td align="justify" bgcolor="#F3F3F3"><p class="style2">Find your Latin spirit with this fun half hour exclusive Salsa lesson </p>             </td>
           <td align="center" bgcolor="#F3F3F3"> <p class="style2">£15.00 </p></td>
          <td align="center" bgcolor="#F3F3F3" width="41"> <input type="checkbox" name="C_Salsa_Lesson" value="15" <? if (isset($_SESSION['SalsaHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Vodka Tasting Masterclass </p></td>
           <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Vodka_TastingHL');">More Info</span></div></td>
           <td align="justify" bgcolor="#F3F3F3"><p class="style2">For those of you who can't resist a good Vodka </p>             </td>
          <td align="center" bgcolor="#F3F3F3"> <p class="style2">£30.00 </p></td>
          <td align="center" bgcolor="#F3F3F3" width="41"> <input type="checkbox" name="C_Vodka_Tasting" value="30" <? if (isset($_SESSION['Vodka_TastingHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Pole Dancing Lesson </p></td>
           <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Pole_DancingHL');">More Info</span></div></td>
          <td align="justify" bgcolor="#F3F3F3"><p class="style2"> A popular fun activity with a professional choreographer

</p></td>
          <td align="center" bgcolor="#F3F3F3"> <p class="style2">£35.00 </p></td>
          <td align="center" bgcolor="#F3F3F3" width="41"> <input type="checkbox" name="C_Pole_Dancing" value="35" <? if (isset($_SESSION['Pole_DancingHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Beauty Treatment &amp; Leisure Pass </p></td>
           <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Beauty_TreatHL');">More Info</span></div></td>
          <td align="justify" bgcolor="#F3F3F3"><p class="style2">Treat yourself, relax and make full use of the leisure facilities with a beauty treatment and lunch at a conveniently located 4 star hotel.
            </p>            </td>
          <td align="center" bgcolor="#F3F3F3"> <p class="style2">£45.00 </p></td>
          <td align="center" bgcolor="#F3F3F3" width="41"> <input type="checkbox" name="C_Beauty_Treatment" value="45" <? if (isset($_SESSION['Beauty_TreatHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Paintball (100)</p></td>
           <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('PaintballHL');">More Info</span></div></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="41"> <input type="checkbox" name="C_Paintball" value="20" <? if (isset($_SESSION['PaintballHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Quad Treking </p></td>
           <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Quad_TrekingHL');">More Info</span></div></td>
          <td align="justify" bgcolor="#F3F3F3"><p class="style2">Take the quads through an exciting woodland treking circuit. </p>            </td>
          <td align="center" bgcolor="#F3F3F3"> <p class="style2">£40.00 </p></td>
          <td align="center" bgcolor="#F3F3F3" width="41"> <input type="checkbox" name="C_Quad_Treking" value="40" <? if (isset($_SESSION['Quad_TrekingHL'])) { echo 'checked'; } ?> /> </td>
         </tr>
         <tr>
           <td align="left" bgcolor="#F3F3F3"><p class="style2">Indoor Karting Endurance </p></td>
           <td align="left" bgcolor="#F3F3F3"><div align="center"><span style="color:#000099; text-decoration:underline;cursor:help;" onclick="return get_pop('Indoor_KartingHL');">More Info</span></div></td>
          <td align="justify" bgcolor="#F3F3F3"><p class="style2"> Gear up race fans its time to put your toes down!!

</p></td>
          <td align="center" bgcolor="#F3F3F3"> <p class="style2">£45.00 </p></td>
          <td align="center" bgcolor="#F3F3F3" width="41"> <input type="checkbox" name="C_Indoor_Karting" value="45" <? if (isset($_SESSION['Indoor_KartingHl'])) { echo 'checked'; } ?> /> </td>
         </tr>
          <td colspan="4" align="center"><br> <input type="submit" name="submit" value="NEXT STEP" /> </td>
         </tr>
        </table>
        </center>
        </form>
<? ?>

Last edited by Salathe : 02-15-2008 at 06:08 PM. Reason: Wrapped code in [PHP] tags
bmathers is offline  
Reply With Quote
Old 02-21-2008, 12:14 PM   #4 (permalink)
The Contributor
 
flyingbuddha's Avatar
 
Join Date: Jan 2008
Location: Birmingham, UK
Posts: 60
Thanks: 10
flyingbuddha is on a distinguished road
Default

Instead of trying to unset the session data, have you tried setting each variable to NULL or ''?
__________________
Pro. Geek
http://www.mikeholloway.co.uk
flyingbuddha is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 09:39 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design