0

There are a few things I need to know how to do to complete the Booking Form on my website found here: http://www.n-v-m.co.uk/Booking.html

Any help on the below points would be much appreciated:

1- I need to center the labels in line with the multi line text fields... ie. where it says 'Collection Address including Postcode:' I want the label to be a couple of lines higher so that it is lined up with the center of the text area and not lined up with the bottom as it is now. I would have thought this would be an easy fix in Dreamweaver but I cant seem to find a solution!

2- When the form is live I want the text that is entered into the multi line text fields to be the same font/size as the text entered into the single line text fields... Currently they are different fonts/sizes but I don't know how to ammend it.

3- If the 'Is Vehicle roadworthy with full M.O.T.:' field is set 'No' or if the 'I agree with the Terms and Conditions' checkbox has not been checked I want the user to receive an error message telling them these must be set to 'Yes' and 'checked'. All other fields on the form are optional.

4- On completion of the form, instead of the message "Okey! We Are Proceed. Thank You !" I want the browser to redirect to http://www.n-v-m.co.uk/Thankyou.html

I have included the html for the Booking Form below, and the code for the PHP script (sendform.php) that sends the details through to my email address is below that:

Booking Form:

<!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>National Vehicle Movements - Booking Form</title>
<style type="text/css">
<!--
body {
	background-color: #1d255f;
	margin: 0px;
	padding: 0px;
}
#apDiv1 {
	position:absolute;
	width:487px;
	height:706px;
	z-index:auto;
	left: 50%;
	top: 433px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-weight: bold;
	text-align: center;
	background-position: center;
	margin-left: -244px;
}
-->
</style></head>

<body>
<div align="center">
  <div id="apDiv1">
    <form id="form1" name="form1" method="post" action="sendform.php">
      <p><strong>Company:
        <input type="text" name="company" id="Company" />
      </strong></p>
      <p class="text"><strong>Name:
        <input type="text" name="name" id="Name" />
      </strong></p>
      <p class="text"><strong>Phone Number:
        <input type="text" name="phonenum" id="Phone Number" />
      </strong></p>
      <p class="text"><strong>Email Address:
        <input type="text" name="email" id="Email" />
      </strong></p>
      <p class="text"><strong>Vehicle Make and Model:
        <input type="text" name="vmam" id="Vehicle Make and Model" />
      </strong></p>
      <p class="text"><strong>Vehicle Reg./Ref. No.:
        <input type="text" name="vreg" id="Vehicle Reg." />
      </strong></p>
      <p class="text"><strong>Collection Address including Postcode:
          <textarea name="colladd" rows="4" id="Collection Address"></textarea>
      </strong></p>
      <p class="text"><strong>Collection Contact Name:
        <input type="text" name="collconname" id="Collection Contact Name" />
      </strong></p>
      <p class="text"><strong>Collection Contact Number:
        <input type="text" name="collconnum" id="Collection Contact Number" />
      </strong></p>
      <p class="text"><strong>Delivery Address including Postcode:
          <textarea name="deladd" rows="4" id="Delivery Address"></textarea>
      </strong></p>
      <p class="text"><strong>Delivery Contact Name:
        <input type="text" name="delconname" id="Delivery Contact Name" />
      </strong></p>
      <p class="text"><strong>Delivery Contact Number:
        <input type="text" name="delconnum" id="Delivery Contact Number" />
      </strong></p>
      <p class="text"><strong>Collection Date/Time:
        <input type="text" name="collectiondt" id="Collection Date/Time" />
      </strong></p>
      <p class="text"><strong><em>(if possible please give a time window eg. '7th - 9th August' and we will arrange collection for you)</em></strong></p>
      <p class="text"><strong>Delivery Date/Time:
        <input type="text" name="deliverydt" id="Delivery Date/Time" />
      </strong></p>
      <p class="text"><strong><em>(if possible please give a time window eg. '7th - 9th August' and we will arrange delivery for you)</em></strong></p>
      <p class="text"><strong>Is Vehicle Taxed:
        <select name="Taxed" id="Is Vehicle Taxed">
          <option>Yes</option>
          <option selected="selected">No</option>
        </select>
      </strong></p>
      <p class="text"><strong>Is Vehicle roadworthy with full M.O.T.:
        <select name="Is Vehicle Roadworthy with Full M.O.T." id="Is Vehicle Roadworthy with Full M.O.T.">
          <option>Yes</option>
          <option selected="selected">No</option>
        </select>
      </strong></p>
      <p class="text"><strong>Billing Address:
          <textarea name="billadd" rows="3" id="Billing Address"></textarea>
      </strong></p>
      <p class="text"><strong><em>(if same as collection or delivery address please enter 'collection' or 'delivery')</em></strong></p>
      <p class="text"><strong>Your Customer Ref./Order No. (if any):
          <input type="text" name="custordnum" id="Customer Ref./Order No." />
      </strong></p>
      <p class="text"><strong>Any additional comments:
          <textarea name="addcom" rows="3" id="Any additional comments"></textarea>
      </strong></p>
      <p class="text"><strong>
        <input type="checkbox" name="checkbox" id="checkbox" />
        I agree with the <u><a href="Terms.html">Terms and Conditions</a></u></strong></p>
      <p class="text"><strong>
        <input type="submit" name="button" id="button" value="Submit order" />
        <input type="reset" name="button2" id="button2" value="Reset form" />
      </strong></p>
    </form>
    <p>&nbsp;</p>
</div>
</div>
<div align="center"><img src="images/Booking_03.jpg" width="680" height="1352" border="0" usemap="#Map" />
  <map name="Map" id="Map">
    <area shape="rect" coords="475,191,578,206" href="mailto:info@n-v-m.co.uk" alt="Email us" />
    <area shape="rect" coords="36,155,158,173" href="index.html" alt="Home" />
    <area shape="rect" coords="29,174,151,189" href="Prices.html" alt="Prices" />
  </map>
</div>
</body>
</html>

PHP script (sendform.php)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <BODY>
  <?php

$Name = $_POST['name']; //senders name

$to = "info@n-v-m.co.uk"; //recipient
$subject = "Order from ".$_POST['company']." (".$_POST['name'].")"; //subject
$message = $_POST['company']."|".$_POST['name']."|".$_POST['phonenum']."|".$_POST['email']."|".$_POST['vmam']."|".$_POST['vreg']."|".$_POST['colladd']."|".$_POST['collconname']."|".$_POST['collconnum']."|".$_POST['deladd']."|".$_POST['delconname']."|".$_POST['delconnum']."|".$_POST['collectiondt']."|".$_POST['deliverydt']."|".$_POST['Taxed']."|".$_POST['billadd']."|".$_POST['custordnum']."|".$_POST['addcom']; //mail body
$from = "NVM Booking Form"; //
$headers = "From: ".$from."\r\n"; //optional headerfields
 
mail($to, $subject, $message, $headers); //mail command :) you can add any variable here... I know you have so many, but it is possible...
if(mail)
	echo "Okey! We Are Proceed. Thank You !";
else
	echo "Sorry We Can't Proceed, Please Try After Some Time!";
?>
</BODY>
</HTML>

Cheers

Paul

3
Contributors
13
Replies
14
Views
7 Years
Discussion Span
Last Post by loll_l
0

1,2 = css
3 = js
4 - could be done with php or js

Why not post various parts of your post to the relevant forums?

0

4- On completion of the form, instead of the message "Okey! We Are Proceed. Thank You !" I want the browser to redirect to http://www.n-v-m.co.uk/Thankyou.html

Ans.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
  <META NAME="Generator" CONTENT="EditPlus">
  <META NAME="Author" CONTENT="">
  <META NAME="Keywords" CONTENT="">
  <META NAME="Description" CONTENT="">
 </HEAD>
 
 <BODY>
  <?php
$Name = $_POST['name']; //senders name
$email = $_POST['email']; //senders e-mail adress
$recipient = "harshbavaliya@gmail.com"; //recipient
$mail_body = $_POST['content']; //mail body
$subject = "Mail From Website Visitor"; //subject
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields
 
mail($recipient, $subject, $mail_body, $header); //mail command :)
?>
<div align="center">
<strong>Thank you...</strong><br><br>
<?php
if(!mail)
	echo "We will confirm the booking shortly through email.<br><br><a href='http://www.n-v-m.co.uk/Booking.html'>Click here</a> to make another booking.";
else
	echo "But Sorry We Can't Procceed, Please Try After Some Time!<br><br>You can <a href='http://www.n-v-m.co.uk/Booking.html'>Click here</a> to try right now.";
?>
</BODY>
</HTML>
 </BODY>
</HTML>

you can use thanku.php as a mailproccess page... try this... i am sure you will like this....

0

Okey! Final Answer... Use This Code....

Booking Form (you can use table like this):

<!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>National Vehicle Movements - Booking Form</title>
<style type="text/css">
<!--
body {
	background-color: #1d255f;
	margin: 0px;
	padding: 0px;
}
#apDiv1 {
	position:absolute;
	width:487px;
	height:706px;
	z-index:auto;
	left: 50%;
	top: 433px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-weight: bold;
	text-align: center;
	textarea-align: center;
	background-position: center;
	margin-left: -244px;
}
-->
</style></head>
 
<body>
<div align="left">
  <div id="apDiv1">
    <form id="form1" name="form1" method="post" action="sendform.php">
<table width="451" border="0" align="center">
  
  <tr>
    <td width="214">Company:</td>
    <td width="227"><input type="text" name="company" id="Company" /></td>
  </tr>
  <tr>
    <td>Name:</td>
    <td><input type="text" name="name" id="Name" /></td>
  </tr>
  <tr>
    <td>Phone Number:</td>
    <td><input type="text" name="phonenum" id="Phone Number" /></td>
  </tr>
  <tr>
    <td>Email Address:</td>
    <td><input type="text" name="email" id="Email" /></td>
  </tr>
  <tr>
    <td>Vehicle Make and Model:</td>
    <td><input type="text" name="vmam" id="Vehicle Make and Model" /></td>
  </tr>
  <tr>
    <td>Vehicle Reg./Ref. No.:</td>
    <td><input type="text" name="vreg" id="Vehicle Reg." /></td>
  </tr>
  <tr>
    <td>Collection Address including Postcode:</td>
    <td><textarea name="colladd" rows="4" id="Collection Address"></textarea></td>
  </tr>
  <tr>
    <td>Collection Contact Name:</td>
    <td><input type="text" name="collconname" id="Collection Contact Name" /></td>
  </tr>
  <tr>
    <td>Collection Contact Number:</td>
    <td><input type="text" name="collconnum" id="Collection Contact Number" /></td>
  </tr>
  <tr>
    <td>Delivery Address including Postcode:</td>
    <td><textarea name="deladd" rows="4" id="Delivery Address"></textarea></td>
  </tr>
  <tr>
    <td>Delivery Contact Name:</td>
    <td><input type="text" name="delconname" id="Delivery Contact Name" /></td>
  </tr>
  <tr>
    <td>Delivery Contact Number:</td>
    <td><input type="text" name="delconnum" id="Delivery Contact Number" /></td>
  </tr>
  <tr>
    <td>Collection Date/Time:</td>
    <td><input type="text" name="collectiondt" id="Collection Date/Time" /><br />(if possible please give a time window eg. '7th - 9th August' and we will arrange collection for you)</td>
  </tr>
    <tr>
    <td>Delivery Date/Time:</td>
    <td><input type="text" name="deliverydt" id="Delivery Date/Time" /><br />(if possible please give a time window eg. '7th - 9th August' and we will arrange delivery for you)</td>
  </tr>
  <tr>
    <td>Is Vehicle Taxed:</td>
    <td><select name="Taxed" id="Is Vehicle Taxed">
          <option>Yes</option>
          <option selected="selected">No</option>
        </select></td>
  </tr>
  <tr>
    <td>Is Vehicle roadworthy with full M.O.T.:</td>
    <td><select name="mot" id="Is Vehicle Roadworthy with Full M.O.T.">
          <option>Yes</option>
          <option selected="selected">No</option>
        </select></td>
  </tr>
  <tr>
    <td>Billing Address:</td>
    <td><textarea name="billadd" rows="3" id="Billing Address"></textarea><br />(if same as collection or delivery address please enter 'collection' or 'delivery')</td>
  </tr>
  <tr>
    <td>Your Customer Ref./Order No. (if any):</td>
    <td><input type="text" name="custordnum" id="Customer Ref./Order No." /></td>
  </tr>
  <tr>
    <td>Any additional comments:</td>
    <td><textarea name="addcom" rows="3" id="Any additional comments"></textarea></td>
  </tr>
<tr>
<td>
  <input type="checkbox" name="checkbox" id="checkbox" />
  I agree with the <u><a href="Terms.html">Terms and Conditions</a></u></strong>(Compulsory)</p></td>
  <td>
  <input type="submit" name="button" id="button" value="Submit order" />
        <input type="reset" name="button2" id="button2" value="Reset form" />
  </td>
</tr>
  </table>
</form>
    <p>&nbsp;</p>
</div>
</div>
<div align="center"><img src="images/Booking_03.jpg" width="680" height="1352" border="0" usemap="#Map" />
  <map name="Map" id="Map">
    <area shape="rect" coords="475,191,578,206" href="mailto:info@n-v-m.co.uk" alt="Email us" />
    <area shape="rect" coords="36,155,158,173" href="index.html" alt="Home" />
    <area shape="rect" coords="29,174,151,189" href="Prices.html" alt="Prices" />
  </map>
</div>
</body>
</html>

PHP script (sendform.php)

<!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>National Vehicle Movements - Booking Form</title>
<style type="text/css">
<!--
body {
	background-color: #1d255f;
	margin: 0px;
	padding: 0px;
}
#apDiv1 {
	position:absolute;
	width:487px;
	height:706px;
	z-index:auto;
	left: 50%;
	top: 433px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: bold;
	text-align: center;
	background-position: center;
	margin-left: -244px;
}
-->
</style></head>
 
<body>
<div align="center">
  <div id="apDiv1">
    <?php
$Name = $_POST['name']; //senders name
$checkbox=$_POST['checkbox'];
$mot=$_POST['mot'];
$to = "info@n-v-m.co.uk"; //recipient
$subject = "Order from ".$_POST['company']." (".$_POST['name'].")"; //subject
$message = $_POST['company']."|".$_POST['name']."|".$_POST['phonenum']."|".$_POST['email']."|".$_POST['vmam']."|".$_POST['vreg']."|".$_POST['colladd']."|".$_POST['collconname']."|".$_POST['collconnum']."|".$_POST['deladd']."|".$_POST['delconname']."|".$_POST['delconnum']."|".$_POST['collectiondt']."|".$_POST['deliverydt']."|".$_POST['Taxed']."|".$_POST['billadd']."|".$_POST['custordnum']."|".$_POST['addcom']; //mail body
$from = "NVM Booking Form"; //
$headers = "From: ".$from."\r\n"; //optional headerfields
 
mail($to, $subject, $message, $headers); //mail command :) you can add any variable here... I know you have so many, but it is possible...
?>
<div align="center">
<strong>Thank you...</strong><br><br>
<?php
if(mail && $checkbox && $mot=="Yes")
	echo "We will confirm the booking shortly through email.<br><br><a href='http://www.n-v-m.co.uk/Booking.html'>Click here</a> to make another booking.";
else
	echo "But sorry we can't procceed.There may be three resons.<br><br>(1)Please make sure that you have cheked the check box of terms & Conditions.<br><br>(2)Please make sure that you have selected YES in Is Vehicle roadworthy with full M.O.T. field<br><br>(*You can hit back button of your browser to check or modify the status of check box or selection)<br><br>(3) It can be possible that the network is not working properly. So please try after some time! If you have checked that checkbox<br><br>You can <a href='http://www.n-v-m.co.uk/Booking.html'>Click here</a> to retry right now.";
?>

</div>
</body>
</html>

So You Got Every Answer ! Have Nice Day ! :)

0

Upppssssss.....
Actually I was out of town so I was not accessing daniweb.com. So I didn't know that when you started this thread... And you know what I have found ?
I have just seen that you have started this thread before 7 hours only ! Wow... you are lucky because you got full information on your site of booking in only 7 hours... And this was not a little thread, you have asked 4 - 5 questions in one thread !

It's really great dear ! :)

Edited by harshbavaliya: text change !

0

please note

if(mail && $checkbox && $mot=="Yes")

on line no 48 in sendform.php here i am checking every conditions,
(1) like the check box is checked or not ?
(2) selected YES in Is Vehicle roadworthy with full M.O.T. field or not ?
(3) mail was successful or not ?

0

Thanks very much for your help harshbavaliya. The form looks much neater now you have put it in table format for me.

Unfortunately though I am looking for something slightly different with regards to submitting the form...

If either of the two compulsory fields have not been filled out correctly, what I really want is a pop up error message that says either 'The car must be roadworthy with Full M.O.T.' or 'You must agree to the Terms and Conditions'... Ideally I would like this pop up window to appear in front of the booking form and on pressing 'OK' to close it, the user/customer will be taken back to the booking form.

When the form has been filled in correctly, on clicking the 'submit' button I would like the PHP script to send the booking details to my email and I would then like the browser to redirect to www.n-v-m.co.uk/Thankyou.html

Is this possible?

Paul

0

If you want a popup use a lightbox. Popup windows are BAD. I block them and so do loads other people I know. I turn them on for trusted sites but leave them off for others as they're usually adverts.

0

Yeah! this is possible but not advisable...
As a coder i will never advise you to code for a pop up error message box.
but yep, you can do one more thing which can be very effective to your site, and that is give the proper error on thankyou.php page. And according to me it's will be good...

0

you can use this code to give definite error, and it will be the best for you site dear !

<!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>National Vehicle Movements - Booking Form</title>
<style type="text/css">
<!--
body {
	background-color: #1d255f;
	margin: 0px;
	padding: 0px;
}
#apDiv1 {
	position:absolute;
	width:487px;
	height:706px;
	z-index:auto;
	left: 50%;
	top: 433px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: bold;
	text-align: center;
	background-position: center;
	margin-left: -244px;
}
-->
</style></head>
 
<body>
<div align="center">
  <div id="apDiv1">
    <?php
$Name = $_POST['name']; //senders name
$checkbox=$_POST['checkbox'];
$mot=$_POST['mot'];
$to = "info@n-v-m.co.uk"; //recipient
$subject = "Order from ".$_POST['company']." (".$_POST['name'].")"; //subject
$message = $_POST['company']."|".$_POST['name']."|".$_POST['phonenum']."|".$_POST['email']."|".$_POST['vmam']."|".$_POST['vreg']."|".$_POST['colladd']."|".$_POST['collconname']."|".$_POST['collconnum']."|".$_POST['deladd']."|".$_POST['delconname']."|".$_POST['delconnum']."|".$_POST['collectiondt']."|".$_POST['deliverydt']."|".$_POST['Taxed']."|".$_POST['billadd']."|".$_POST['custordnum']."|".$_POST['addcom']; //mail body
$from = "NVM Booking Form"; //
$headers = "From: ".$from."\r\n"; //optional headerfields
 
mail($to, $subject, $message, $headers); //mail command :) you can add any variable here... I know you have so many, but it is possible...
?>
<div align="center">
<strong>Thank you...</strong><br><br>
<?php
if(!mail && ($checkbox || $mot=="Yes"))
	echo "We will confirm the booking shortly through email.<br><br><a href='http://www.n-v-m.co.uk/Booking.html'>Click here</a> to make another booking.";
else if($checkbox==NULL && $mot=="No")
	echo "But sorry we can't procceed becuase uou have neither selected YES in 'Is Vehicle roadworthy with full M.O.T.' field nor checked the check box of 'terms & Conditions' but any one of those are required so please select any one of them !";
else
	echo "But sorry we can't procceed. It can be possible that the network is not working properly. So please try after some time!<br><br>You can <a href='http://www.n-v-m.co.uk/Booking.html'>Click here</a> to retry right now.";
?>

</div>
</body>
</html>

Have a great day :)

0

and yeah ! i was just surfing at http://www.n-v-m.co.uk/Booking.html .
there I have seen that you have changed the layout of your first page. but still not changed the action of form.... why.... use this form tag to get original result.

<form id="form1" name="form1" method="post" action="http://www.n-v-m.co.uk/Thankyou.php">

and make a php file named Thankyou.php which will contain the following code...

<!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>National Vehicle Movements - Booking Form</title>
<style type="text/css">
<!--
body {
	background-color: #1d255f;
	margin: 0px;
	padding: 0px;
}
#apDiv1 {
	position:absolute;
	width:487px;
	height:706px;
	z-index:auto;
	left: 50%;
	top: 433px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: bold;
	text-align: center;
	background-position: center;
	margin-left: -244px;
}
-->
</style></head>
 
<body>
<div align="center">
  <div id="apDiv1">
    <?php
$Name = $_POST['name']; //senders name
$checkbox=$_POST['checkbox'];
$mot=$_POST['mot'];
$to = "info@n-v-m.co.uk"; //recipient
$subject = "Order from ".$_POST['company']." (".$_POST['name'].")"; //subject
$message = $_POST['company']."|".$_POST['name']."|".$_POST['phonenum']."|".$_POST['email']."|".$_POST['vmam']."|".$_POST['vreg']."|".$_POST['colladd']."|".$_POST['collconname']."|".$_POST['collconnum']."|".$_POST['deladd']."|".$_POST['delconname']."|".$_POST['delconnum']."|".$_POST['collectiondt']."|".$_POST['deliverydt']."|".$_POST['Taxed']."|".$_POST['billadd']."|".$_POST['custordnum']."|".$_POST['addcom']; //mail body
$from = "NVM Booking Form"; //
$headers = "From: ".$from."\r\n"; //optional headerfields
 
mail($to, $subject, $message, $headers); //mail command :) you can add any variable here... I know you have so many, but it is possible...
?>
<div align="center">
<strong>Thank you...</strong><br><br>
<?php
if(mail && ($checkbox || $mot=="Yes"))
	echo "We will confirm the booking shortly through email.<br><br><a href='http://www.n-v-m.co.uk/Booking.html'>Click here</a> to make another booking.";
else if($checkbox==NULL && $mot=="No")
	echo "But sorry we can't procceed becuase uou have neither selected YES in 'Is Vehicle roadworthy with full M.O.T.' field nor checked the check box of 'terms & Conditions' but any one of those are required so please select any one of them !";
else
	echo "But sorry we can't procceed. It can be possible that the network is not working properly. So please try after some time!<br><br>You can <a href='http://www.n-v-m.co.uk/Booking.html'>Click here</a> to retry right now.";
?>

</div>
</body>
</html>

Edited by harshbavaliya: codding error...

0

Brilliant thanks.... i will make the changes and let you know if its worked.

Paul

Edited by loll_l: n/a

0

The problem is I am still getting the order sent through to my email even when the compulsory fields are not correctly filled in (ie. I am still getting incomplete orders)

Ideally the browser will not go to the next page (Thankyou.php) until these 2 fields have been filled in correctly. All I require is a little error message that pops up if the 2 fields are set to the wrong value when the 'submit' button is clicked... am i right in saying this must be done using javascript?

I called this a pop up before but what I really mean is an 'error box' I think... I have seen them on numerous forms before

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.