Jump to content

Recommended Posts

Hello, I am writing my booking form, and I have 2 submit buttons, one checks the availability of the consultants and then redirects to the form, however when it does all the user input for the form is gone. I have bee trying to user sessions to store the input but I am struggling to find anything that explains how to do this properly. I have tried to introduce the session vars but now the script doesn't work.

 

This is my code for my bookingform.php:

<?php 
  session_start();

$_SESSION['year'] = $_POST['year']; 
$_SESSION['month'] = $_POST['month']; 
$_SESSION['day'] = $_POST['day']; 
$_SESSION['unit'] = $_POST['unit']; 
$_SESSION['quantity'] = $_POST['quantity']; 
$_SESSION['start_time_hr'] = $_POST['start_time_hr']; 
$_SESSION['start_time_min'] = $_POST['start_time_min']; 
$_SESSION['extra_info'] = $_POST['extra_info'']; 
$_SESSION['con_id1'] = $_POST['con_id1']; 
$_SESSION['con_id2'] = $_POST['con_id2']; 
$_SESSION['con_id3'] = $_POST['con_id3']; 
  if (!isset($_SESSION['username']))
    {
header("Location: login.php");
exit();
    }

  if(isset($_GET['available1']) && $_GET['available1']=='true') {
    echo '<div id="available1true">Available: √</div>';
   }
  if(isset($_GET['available1']) && $_GET['available1']=='false') {
    echo '<div id="available1false">Not Available: X</div>';
   }

  if(isset($_GET['available2']) && $_GET['available2']=='true') {
    echo '<div id="available2true">Available: √</div>';
   }
  if(isset($_GET['available2']) && $_GET['available2']=='false') {
    echo '<div id="available2false">Not Available: X</div>';
   }

if(isset($_GET['available3']) && $_GET['available3']=='true') {
    echo '<div id="available3true">Available: √</div>';
   }
  if(isset($_GET['available3']) && $_GET['available3']=='false') {
    echo '<div id="available3false">Not Available: X</div>';
   }

require "dbconn2.php";

  $sql="SELECT service_id, service FROM service";
  $result=mysql_query($sql);
  $service_option="";
  
while ($row=mysql_fetch_array($result)) {

    $id=$row["service_id"];
    $service=$row["service"];
    $service_option.="<OPTION VALUE=\"$id\">".$service;
}
  $sql="SELECT con_id, first_name, last_name FROM consultant";
  $result=mysql_query($sql);
  $rconsultant_option="";

while ($row=mysql_fetch_array($result)) {

    $con_id=$row["con_id"];
    $first_name=$row["first_name"];
$last_name=$row["last_name"];
    $consultant_option1.="<OPTION VALUE=\"$con_id\">".$first_name." ".$last_name;
$consultant_option2.="<OPTION VALUE=\"$con_id\">".$first_name." ".$last_name;
    $consultant_option3.="<OPTION VALUE=\"$con_id\">".$first_name." ".$last_name;
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>SRC: Booking Form</title>
<link href="master.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" type="image/ico" href="favicon.ico">
<script type="text/javascript">
<!--

function OnSubmitForm()
{
  if(document.pressed == 'Check')
  {
   document.bookingForm.action ="checkavailability1.php";
  }
  else if(document.pressed == 'Book')
  {
    document.bookingForm.action ="book.php";
  }
  return true;
}

//-->
</script>
</head>

<body>
<div id="topbanner"><h1>Salmons Reach Consultancy</h1><h2>Striving to achieve excellence</h2></div><div id="salmon"><img src="Salmon.png" /></div>
<div id="loginRegister">
<a id="location" href="">Login </a>|  <a href="register.php">Register</a>
</div>
<div id="border">
</div>
<div id="quickLinks">
<ul><p>
      <li id="Title">QUICK LINKS</li><p>
      <li id="Title1"><a href="index.php"><b>HOME</b></a></li>
      <li><a href="work.php">Work</a></li>
      <li><a href="play.php">Play</a></li>
      <li><a href="future.php">Future</a></li>
      <li><a href="present.php">Present</a></li><p>
      <li id="Title1"><a href="history.php"><b>HISTORY</b></a></li>
      <li><a href="past.php">Past</a></li>
      <li><a href="staff.php">Staff</a></li>
      <li><a href="direction.php">Direction</a></li>
      <li><a href="destination.php">Destination</a></li><p>
      <li id="Title1"><a href="portfolio.php"><b>PORTFOLIO</b></a></li>
      <li><a href="thurrock.php">Thurrock</a></li>
      <li><a href="aru.php">Anglia Ruskin University</a></li>
      <li><a href="stgeorges.php">St Georges</a></li>
      <li><a href="malaysia.php">Malaysia</a></li><p>
      <li id="Title1"><a href="services.php"><b>SERVICES</b></a></li>
      <li><a href="consultancy.php">Consultancy</a></li>
      <li><a href="pd.php">Personal Development</a></li>
      <li><a href="project.php">Project Guidance and Initiation</a></li>
      <li><a href="od.php">Organisational Development</a></li><p>
      <li id="Title1"><a href="contact.php"><b>CONTACT</b></a></li>
      <li><a href="technical.php">Technical Support</a></li>
      <li><a href="regInterest.php">Register Interest For Services</a></li>
      <li><a href="message.php">Message Consultant</a></li><p>
</ul>
</div>
<div id="menu">
<ul>
  <li><input id="button1" type="button" value="Home" onclick="parent.location = 'index.php'" />
     <ul>
      <li><a href="work.php">[Work]</a></li>
      <li><a href="play.php">[Play]</a></li>
      <li><a href="future.php">[Future]</a></li>
      <li><a href="present.php">[Present]</a></li>
    </ul>
  </li>
  <li><input id="button2" type="button" onclick="parent.location = 'history.php'" value="History" />
    <ul>
      <li><a href="past.php">[Past]</a></li>
      <li><a href="staff.php">[staff]</a></li>
      <li><a href="direction.php">[Direction]</a></li>
      <li><a href="destination.php">[Destination]</a></li>
    </ul>
  </li>
    <li><input id="button3" type="button" onclick="parent.location = 'portfolio.php'" value="Portfolio" />
    <ul>
      <li><a href="thurrock.php">[Thurrock]</a></li>
      <li><a href="aru.php">[Anglia Ruskin University]</a></li>
      <li><a href="stgeorges.php">[st Georges]</a></li>
      <li><a href="malaysia.php">[Malaysia]</a></li>
    </ul>
  </li>
    <li><input id="button4" type="button" onclick="parent.location = 'services.php'" value="Services" />
    <ul>
      <li><a href="consultancy.php">[Consultancy]</a></li>
      <li><a href="pd.php">[Personal Development]</a></li>
      <li><a href="project.php">[Project Guidance and Initiation]</a></li>
      <li><a href="od.php">[Organisational Development]</a></li>
    </ul>
  </li>	
    <li><input id="button5" type="button" onclick="parent.location = 'contact.php'" value="contact" />
    <ul>
      <li><a href="technical.php">[Technical Support]</a></li>
      <li><a href="regInterest.php">[Register Interest For Services]</a></li>
      <li><a href="message.php">[Message Consultant]</a></li>
    </ul>
  </li>
  <li><input id="button5" type="button" value="Back" onClick="history.go(-1)">
  </li>
</ul>
</div>
</div><div id="centerPanel1">
</div>
<div id="rightPanel1">
</div>
<div id="centerPanel"><div id="header">Booking Form</div><p>
<div id="content">
<form name="bookingForm" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" onSubmit="return OnSubmitForm();">

<label id="eventStart">Event Date:</label><br />
<select id="year3" name="year" value="<?=$row['year']?>">
<?php
       $yeartoday = date(Y);
       $yearplus1 = date(Y)+1;
         for($y=$yeartoday;$y<=$yearplus1;$y++){  
           $selected = "";
           $longDate = date("Y", mktime(0,0,0,1,1,$y));
           if ($Year==$y){ 
            $selected = "selected \n";
           }
           echo "<option value=\"$y\" $selected>$longDate</option> \n";
         }
?>
</select>

<select id="month3" name="month" value="<?=$row['month']?>"/>
<?php
$months = Array("Jan", "Feb", "Mar", "Apr", "May",  "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
for ($x=1; $x <= count($months); $x++) {
   echo"<option value=\"$x\"";
   if ($x == $month) {
      echo " selected";
   }
   echo ">".$months[$x-1]."</option>";
}
?>
</select>

<select id="day3" name="day" value="<?=$row['day']?>">
<?php
for ($x= 1; $x<=31; $x++) {
   echo "<option";
   if ($x == $day) {
      echo " selected";
   }
   echo ">$x</option>";
}
?>
</select>

  <p>
  <label id="service">Service:</label><br />
  <select id="serviceSelect" name="service">
   <option value="<?=$row['service']?>">Choose <?=$service_option?>
  </option>
  </select>
  </p>
  
  <p>
  <label id="unit">Unit:</label><br />
  <input id="radioHour" type = 'Radio' name ='unit' value= 'hour'><label id="Hour">Hour</label>
  <input id="radioDay" type = 'Radio' name ='unit' value= 'day'><label id="Day">Day</label>
  </p>
  
<label id="quantity">Quantity:</label><br/>
<select id="quantSelect" name="quantity" value="<?=$row['quantity']?>">

<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>
<br />
<label id="eventStartTime">Start Time:</label><br/>
<select id="hour" name="start_time_hr" value="<?=$row['start_time_hr']?>">

<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
</select>

<select id="minute" name="start_time_min" value="<?=$row['start_time_min']?>">

<option value="00">00</option>
<option value="15">15</option>
<option value="30">30</option>
<option value="45">45</option>

</select></p>
<br />

<label id="extraInfo">Extra Information:</label><br />
<textarea id="extraInfoInput" name="content" value="<?=$row['extra_info']?>" onkeypress="return imposeMaxLength(this, 250);"></textarea>

<p>
<label id="con4">Consultant [1]:</label><br />
<select id="conSelect4" name="con_id1"><option value="<?=$row['con_id1']?>">Choose <?=$consultant_option1?>
</option></select> 

<label id="con2">Consultant [2]:</label><br />
<select id="conSelect2" name="con_id2"><option value="<?=$row['con_id2']?>">Choose <?=$consultant_option2?></option></select> 

<label id="con3">Consultant [3]:</label><br />
<select id="conSelect3" name="con_id3"><option value="<?=$row['con_id3']?>">Choose <?=$consultant_option3?></option></select> 

<input  id= "check1" type ="submit" name="Check" onClick="document.pressed=this.value" value="Check"></p>
<p><input id="book" type ="submit" name="Book" onClick="document.pressed=this.value" value="Book"/></form>
</div>
<div id="copyright">Salmons Reach Consultancy LLP ©, All rights reserved. Any duplication of property or misrepresentation will result in a judicial procedure.<p></div> 
</div>
<div id="rightPanel">
</div>
<div id="sideLogo"> <img src="sideLogo.png"/></div>
</body>
</html>

 

checkavailability1.php:

<?php

  session_start();

  if (!isset($_SESSION['username']))
    {
header("Location: login.php");
exit();
  }

  require "dbconn2.php";
  
  $month = mysql_real_escape_string($_POST["month"]);
  $day =  mysql_real_escape_string($_POST["day"]);
  $year=  mysql_real_escape_string($_POST["year"]);
  $con_id1=  mysql_real_escape_string($_POST["con_id1"]);
  $con_id2=  mysql_real_escape_string($_POST["con_id2"]); 
  $con_id3=  mysql_real_escape_string($_POST["con_id3"]); 
  
  $event_start = $year."-".$month."-".$day." ".$_POST["event_start"];

  if ($con_id1 != null){
  $sql = "SELECT * FROM calendar_events WHERE event_start='".$event_start."' AND (con_1='".$con_id1."' OR con_2='".$con_id1."' OR con_3='".$con_id1."')";

   $result = mysql_query ($sql, $connection) or die ("Could not perform query $sql <br />".mysql_error());
   $row = mysql_fetch_array($result);

if ($row != null){
      $available1 = "false";
  }
  else {
  $available1 = "true";
  }
  }
  if ($con_id2 != null){
  $sql = "SELECT * FROM calendar_events WHERE event_start='".$event_start."' AND (con_1='".$con_id2."' OR con_2='".$con_id2."' OR con_3='".$con_id2."')";

   $result = mysql_query ($sql, $connection) or die ("Could not perform query $sql <br />".mysql_error());
   $row = mysql_fetch_array($result);

if ($row != null){
      $available2 = "false";
  }
  else {
  $available2 = "true";
  }
  }
  if ($con_id3 != null){
  $sql = "SELECT * FROM calendar_events WHERE event_start='".$event_start."' AND (con_1='".$con_id3."' OR con_2='".$con_id3."' OR con_3='".$con_id3."')";

   $result = mysql_query ($sql, $connection) or die ("Could not perform query $sql <br />".mysql_error());
   $row = mysql_fetch_array($result);

if ($row != null){
      $available3 = "false";
  }
  else {
  $available3 = "true";
  }
  }

$url = "Location: bookingform.php?available1=$available1&available2=$available2&available3=$available3";
      header($url);

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Check Availability</title>
</head>
<body>
</body>
</html>

 

Any advice is greatly appreciated. Thanks and regs.

Link to comment
https://forums.phpfreaks.com/topic/155827-storing-form-input-in-the-session/
Share on other sites

Initialise an ajax request to the server, and send the values of the form to a php script which will validate them. Then return whatever you want to display to the user in the php script, depending on how the form has been validated.

 

Google has some good ajax tutorials. You can just adapt a free script if you can't write your own.

 

I actually use something similiar to this myself - http://www.jackpf.co.uk/register

I use AJAX to validate a user's email/username.

How can I retrieve the session variable values? I have tried use GET but the now the script does't run at all. I have given up o the AJAX route so I need any help with using the SESSION.

bookingform.php

<?php 

  session_start();
  
if (!isset($_SESSION['username']))
    {
header("Location: login.php");
exit();
    }
else if (!isset($_SESSION['values'])){
  $_SESSION['values'] ['year'] = ''; 
  $_SESSION['values'] ['month']=''; 
  $_SESSION['values'] ['day']= ''; 
  $_SESSION['values'] ['unit'] = ''; 
  $_SESSION['values'] ['quantity'] = ''; 
  $_SESSION['values'] ['start_time_hr'] = ''; 
  $_SESSION['values'] ['start_time_min'] = ''; 
  $_SESSION['values'] ['extra_info'] = ''; 
  $_SESSION['values'] ['con_id1'] = ''; 
  $_SESSION['values'] ['con_id2'] = ''; 
  $_SESSION['values'] ['con_id3'] = ''; 
}
else {
  $_SESSION['values'] ['year'] =$_GET['year']; 
  $_SESSION['values'] ['month']=$_GET['month']; 
  $_SESSION['values'] ['day']=$_GET['day'];  
  $_SESSION['values'] ['unit'] =$_GET['unit'];  
  $_SESSION['values'] ['quantity'] =$_GET['quantity']; 
  $_SESSION['values'] ['start_time_hr'] =$_GET['start_time_hr'];  
  $_SESSION['values'] ['start_time_min']$_GET['start_time_min']; 
  $_SESSION['values'] ['extra_info'] =$_GET['extra_info']; 
  $_SESSION['values'] ['con_id1'] =$_GET['con_id1']; 
  $_SESSION['values'] ['con_id2'] =$_GET['con_id2']; 
  $_SESSION['values'] ['con_id3'] =$_GET['con_id3']; 
}

  if(isset($_GET['available1']) && $_GET['available1']=='true') {
    echo '<div id="available1true">Available: √</div>';
   }
  if(isset($_GET['available1']) && $_GET['available1']=='false') {
    echo '<div id="available1false">Not Available: X</div>';
   }

  if(isset($_GET['available2']) && $_GET['available2']=='true') {
    echo '<div id="available2true">Available: √</div>';
   }
  if(isset($_GET['available2']) && $_GET['available2']=='false') {
    echo '<div id="available2false">Not Available: X</div>';
   }

if(isset($_GET['available3']) && $_GET['available3']=='true') {
    echo '<div id="available3true">Available: √</div>';
   }
  if(isset($_GET['available3']) && $_GET['available3']=='false') {
    echo '<div id="available3false">Not Available: X</div>';
   }

require "dbconn2.php";

  $sql="SELECT service_id, service FROM service";
  $result=mysql_query($sql);
  $service_option="";
  
while ($row=mysql_fetch_array($result)) {

    $id=$row["service_id"];
    $service=$row["service"];
    $service_option.="<OPTION VALUE=\"$id\">".$service;
}
  $sql="SELECT con_id, first_name, last_name FROM consultant";
  $result=mysql_query($sql);
  $rconsultant_option="";

while ($row=mysql_fetch_array($result)) {

    $con_id=$row["con_id"];
    $first_name=$row["first_name"];
$last_name=$row["last_name"];
    $consultant_option1.="<OPTION VALUE=\"$con_id\">".$first_name." ".$last_name;
$consultant_option2.="<OPTION VALUE=\"$con_id\">".$first_name." ".$last_name;
    $consultant_option3.="<OPTION VALUE=\"$con_id\">".$first_name." ".$last_name;
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>SRC: Booking Form</title>
<link href="master.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" type="image/ico" href="favicon.ico">
<script type="text/javascript">
<!--

function OnSubmitForm()
{
  if(document.pressed == 'Check')
  {
   document.bookingForm.action ="checkavailability1.php";
  }
  else if(document.pressed == 'Book')
  {
    document.bookingForm.action ="book.php";
  }
  return true;
}

//-->
</script>
</head>

<body>
<div id="topbanner"><h1>Salmons Reach Consultancy</h1><h2>Striving to achieve excellence</h2></div><div id="salmon"><img src="Salmon.png" /></div>
<div id="loginRegister">
<a id="location" href="">Login </a>|  <a href="register.php">Register</a>
</div>
<div id="border">
</div>
<div id="quickLinks">
<ul><p>
      <li id="Title">QUICK LINKS</li><p>
      <li id="Title1"><a href="index.php"><b>HOME</b></a></li>
      <li><a href="work.php">Work</a></li>
      <li><a href="play.php">Play</a></li>
      <li><a href="future.php">Future</a></li>
      <li><a href="present.php">Present</a></li><p>
      <li id="Title1"><a href="history.php"><b>HISTORY</b></a></li>
      <li><a href="past.php">Past</a></li>
      <li><a href="staff.php">Staff</a></li>
      <li><a href="direction.php">Direction</a></li>
      <li><a href="destination.php">Destination</a></li><p>
      <li id="Title1"><a href="portfolio.php"><b>PORTFOLIO</b></a></li>
      <li><a href="thurrock.php">Thurrock</a></li>
      <li><a href="aru.php">Anglia Ruskin University</a></li>
      <li><a href="stgeorges.php">St Georges</a></li>
      <li><a href="malaysia.php">Malaysia</a></li><p>
      <li id="Title1"><a href="services.php"><b>SERVICES</b></a></li>
      <li><a href="consultancy.php">Consultancy</a></li>
      <li><a href="pd.php">Personal Development</a></li>
      <li><a href="project.php">Project Guidance and Initiation</a></li>
      <li><a href="od.php">Organisational Development</a></li><p>
      <li id="Title1"><a href="contact.php"><b>CONTACT</b></a></li>
      <li><a href="technical.php">Technical Support</a></li>
      <li><a href="regInterest.php">Register Interest For Services</a></li>
      <li><a href="message.php">Message Consultant</a></li><p>
</ul>
</div>
<div id="menu">
<ul>
  <li><input id="button1" type="button" value="Home" onclick="parent.location = 'index.php'" />
     <ul>
      <li><a href="work.php">[Work]</a></li>
      <li><a href="play.php">[Play]</a></li>
      <li><a href="future.php">[Future]</a></li>
      <li><a href="present.php">[Present]</a></li>
    </ul>
  </li>
  <li><input id="button2" type="button" onclick="parent.location = 'history.php'" value="History" />
    <ul>
      <li><a href="past.php">[Past]</a></li>
      <li><a href="staff.php">[staff]</a></li>
      <li><a href="direction.php">[Direction]</a></li>
      <li><a href="destination.php">[Destination]</a></li>
    </ul>
  </li>
    <li><input id="button3" type="button" onclick="parent.location = 'portfolio.php'" value="Portfolio" />
    <ul>
      <li><a href="thurrock.php">[Thurrock]</a></li>
      <li><a href="aru.php">[Anglia Ruskin University]</a></li>
      <li><a href="stgeorges.php">[st Georges]</a></li>
      <li><a href="malaysia.php">[Malaysia]</a></li>
    </ul>
  </li>
    <li><input id="button4" type="button" onclick="parent.location = 'services.php'" value="Services" />
    <ul>
      <li><a href="consultancy.php">[Consultancy]</a></li>
      <li><a href="pd.php">[Personal Development]</a></li>
      <li><a href="project.php">[Project Guidance and Initiation]</a></li>
      <li><a href="od.php">[Organisational Development]</a></li>
    </ul>
  </li>	
    <li><input id="button5" type="button" onclick="parent.location = 'contact.php'" value="contact" />
    <ul>
      <li><a href="technical.php">[Technical Support]</a></li>
      <li><a href="regInterest.php">[Register Interest For Services]</a></li>
      <li><a href="message.php">[Message Consultant]</a></li>
    </ul>
  </li>
  <li><input id="button5" type="button" value="Back" onClick="history.go(-1)">
  </li>
</ul>
</div>
</div><div id="centerPanel1">
</div>
<div id="rightPanel1">
</div>
<div id="centerPanel"><div id="header">Booking Form</div><p>
<div id="content">
<form name="bookingForm" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" onSubmit="return OnSubmitForm();">

<label id="eventStart">Event Date:</label><br />
<select id="year3" name="year" value="<?php echo $_SESSION['values'] ['year']?>">
<?php
       $yeartoday = date(Y);
       $yearplus1 = date(Y)+1;
         for($y=$yeartoday;$y<=$yearplus1;$y++){  
           $selected = "";
           $longDate = date("Y", mktime(0,0,0,1,1,$y));
           if ($Year==$y){ 
            $selected = "selected \n";
           }
           echo "<option value=\"$y\" $selected>$longDate</option> \n";
         }
?>
</select>

<select id="month3" name="month" value="<?php echo $_SESSION['values'] ['month']?>"/>
<?php
$months = Array("Jan", "Feb", "Mar", "Apr", "May",  "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
for ($x=1; $x <= count($months); $x++) {
   echo"<option value=\"$x\"";
   if ($x == $month) {
      echo " selected";
   }
   echo ">".$months[$x-1]."</option>";
}
?>
</select>

<select id="day3" name="day" value="<?php echo $_SESSION['values'] ['day']?>">
<?php
for ($x= 1; $x<=31; $x++) {
   echo "<option";
   if ($x == $day) {
      echo " selected";
   }
   echo ">$x</option>";
}
?>
</select>

  <p>
  <label id="service">Service:</label><br />
  <select id="serviceSelect" name="service">
   <option value="<?php echo $_SESSION['values'] ['service']?>">Choose <?=$service_option?>
  </option>
  </select>
  </p>
  
  <p>
  <label id="unit">Unit:</label><br />
  <input id="radioHour" type = 'Radio' name ='unit' value= 'hour'><label id="Hour">Hour</label>
  <input id="radioDay" type = 'Radio' name ='unit' value= 'day'><label id="Day">Day</label>
  </p>
  
<label id="quantity">Quantity:</label><br/>
<select id="quantSelect" name="quantity" value="<?php echo $_SESSION['values'] ['quantity']?>">

<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>
<br />
<label id="eventStartTime">Start Time:</label><br/>
<select id="hour" name="start_time_hr" value="<?php echo $_SESSION['values'] ['start_time_hr']?>">

<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
</select>

<select id="minute" name="start_time_min" value="<?php echo $_SESSION['values'] ['start_time_min']?>">

<option value="00">00</option>
<option value="15">15</option>
<option value="30">30</option>
<option value="45">45</option>

</select></p>
<br />

<label id="extraInfo">Extra Information:</label><br />
<textarea id="extraInfoInput" name="content" value="<?php echo $_SESSION['values'] ['extra_info']?>" onkeypress="return imposeMaxLength(this, 250);"></textarea>

<p>
<label id="con4">Consultant [1]:</label><br />
<select id="conSelect4" name="con_id1"><option value="<?php echo $_SESSION['values'] ['con_id1']?>">Choose <?=$consultant_option1?>
</option></select> 

<label id="con2">Consultant [2]:</label><br />
<select id="conSelect2" name="con_id2"><option value="<?php echo $_SESSION['values'] ['con_id2']?>">Choose <?=$consultant_option2?></option></select> 

<label id="con3">Consultant [3]:</label><br />
<select id="conSelect3" name="con_id3"><option value="<?php echo $_SESSION['values'] ['con_id3']?>">Choose <?=$consultant_option3?></option></select> 

<input  id= "check1" type ="submit" name="Check" onClick="document.pressed=this.value" value="Check"></p>
<p><input id="book" type ="submit" name="Book" onClick="document.pressed=this.value" value="Book"/></form>
</div>
<div id="copyright">Salmons Reach Consultancy LLP ©, All rights reserved. Any duplication of property or misrepresentation will result in a judicial procedure.<p></div> 
</div>
<div id="rightPanel">
</div>
<div id="sideLogo"> <img src="sideLogo.png"/></div>
</body>
</html>

 

Thanks for any help.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.