Where is the <?php ?
You also have to remember that you cannot use " without putting a \ in front of it. You also need to close off your echo statements with a ;
Try the following code:
Code:
<?php
//below this is the function for no record!!
if (!$variable1)
{
echo "<p>Great news! Jeff is available. Please fill out the form below to contact Jeff about booking your date. Please note, your date IS NOT booked yet, it simply is available. Make sure to fill out this form so Jeff can get back to you.</p>";
echo "<form action=\"http://formmail.dreamhost.com/cgi-bin/formmail.cgi\" method=\"POST\">";
echo "<input type=\"hidden\" name=\"recipient\" value=\"pray@wburgnaz.com\"><br>";
echo "<input type=\"hidden\" name=\"subject\" value=\"Wedding Booking Inquiry\"></p><br>";
echo "<p>Full Name: <input type=\"text\" size=\"20\" name=\"name\" ></p><br>";
echo "<p>Phone Number: <input type=\"text\" size=\"20\" name=\"phone\"></p><br>";
echo "<p>Email Address: <input type=\"text\" size=\"20\" name=\"email\"></p><br>";
echo "<p>Wedding Date: <input type="text" size=\"20\" name=\"weddate\"></p><br>";
echo "<p><input name=\"Submit\" type=\"button\" value=\"Submit\" class=\"button\" /></p>";
echo "</form>";
}
//end
?>
An even better way to do it is to stay away from using html inside php example:
Code:
<?php
//below this is the function for no record!!
if (!$variable1)
{
?>
<p>Great news! Jeff is available. Please fill out the form below to contact Jeff about booking your date. Please note, your date IS NOT booked yet, it simply is available. Make sure to fill out this form so Jeff can get back to you.</p>
<form action="http://formmail.dreamhost.com/cgi-bin/formmail.cgi" method="POST">
<input type="hidden" name="recipient" value="pray@wburgnaz.com"><br>
<input type="hidden" name="subject" value="Wedding Booking Inquiry"></p><br>
<p>Full Name: <input type="text" size="20" name="name" ></p><br>
<p>Phone Number: <input type="text" size="20" name="phone"></p><br>
<p>Email Address: <input type="text" size="20" name="email"></p><br>
<p>Wedding Date: <input type="text" size="20" name="weddate"></p><br>
<p><input name="Submit" type="button" value="Submit" class="button" /></p>
</form>
<?php
}
//end
?>
Bookmarks