I am working on a callback page and after the user has entered their details and press the "request a callback" button it toggles a modal i made with CSS3. I put in 27th September but it should display the date that the user selected from the select box and then display it in the modal.
Does anyone know how to do this as i am new to PHP and could only find documentation for displaying it via POST and GET which involved using two pages.
The URL for the live example of the form is: http://temp.tefl.org.uk/callback
Code:
<h6 style="color:#7F7F7F; padding-bottom:15px">Select the day and time that you would prefer an advisor to call you back on.</h6>
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="inputEmail">Date To Call</label>
<div class="controls">
<select>
<option>Monday 1st September </option>
<option>Tuesday 2st September</option>
<option>Wednesday 3st September</option>
<option>Thursday 4st September</option>
<option>Friday 5st September</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputEmail">Time To Call</label>
<div class="controls">
<select>
<option>Please select...</option>
<option>09:00</option>
<option>09:30</option>
<option>10:00</option>
<option>10:30</option>
<option>11:00</option>
<option>11:30</option>
<option>12:00</option>
<option>12:30</option>
<option>13:00</option>
<option>13:30</option>
<option>14:00</option>
<option>14:30</option>
<option>15:00</option>
<option>15:30</option>
<option>16:00</option>
<option>16:30</option>
<option>17:00</option>
</select>
</div>
</div>
</form>
<a class="btn btn-danger" style="margin-top:15px" href="#openModal">Request A Call Back</a>
</div>
</div><!--.row-->
<div id="openModal" class="modalDialog">
<div><a href="#close" title="Close" class="close">X</a>
<h1 style="text-align:center">Thank you, <?php echo $_POST["forename"]; ?></h1>
<h4 style="text-align:center; margin-top:15px">Your call back request has been logged, a member of our team will contact you on</h4>
<h4 style="text-align:center; margin-top:25px; color:#7f7f7f"><b>27th September 2014 @ 0900</b></h4>
<center><a href="http://temp.tefl.org.uk/callback" class="btn btn-success" style="margin-top:15px; margin-bottom:10px">Okay great!</a></center>
</div>
</div>