I have a Form completed;
<p>
<label><strong>Name*</strong></label><br />
<input type="text" size="34"/ name="name"><br />
<label><strong>Email Address*</strong></label><br />
<input type="text" size="34"/ name="email"><br />
<label><strong>Property Name*</strong></label><br />
<input type="text" value="Casa Java, Santa Teresa" size="34"/ name="propertyname">
<label><strong><br>Phone Number</strong></label><br />
<input type="text" size="34"/ name="phonenumber">
<p><strong>Check-in*</strong> <strong>Check-out</strong>*<br />
<input type="text" size="12.5" id="calendar" name="checkin" >
<input type="text" id="calendar2" size="12.5" name="checkout" >
<p><strong>Adults</strong>* <strong>Children</strong><br />
<input type="text" size="12.5" name="adults"> <input type="text" size="12.5" name="children"><br />
<label><strong>Message</strong></label><br />
<textarea cols="37" rows="3"/name="questions"> </textarea>
<p> <label class="inquiry-form-col inquiry-form-saveinfo is-first">
<input id="InqSave" name="Inquiry.SaveInfo" type="checkbox" value="true" /><input name="Inquiry.SaveInfo" type="hidden" value="false" />
Save info for other inquiries
</label>
<p><br />
<input type="image" src="images/submit.png" alt="next" />
<p>
<p><small>We will never share your personal information.</small></p>
<p><small><a href="privacypolicy.html">Privacy Policy</a></small></p>
</fieldset>
This works Perfect except for the checkbox to keep information for additional inquiries. Which I want working as well.
I have the PHP completed and it works. I want to make it more fancy. Here is the PHP.
Thank you for Contacting Us <?php $recipient = '[email protected]'; $name = $_POST['name']; $email = $_POST['email']; $subject = $_POST['propertyname']; $phonenumber = $_POST['phonenumber']; $checkin = $_POST['checkin']; $checkout = $_POST['checkout']; $adults = $_POST['adults']; $children = $_POST['children']; $questions = $_POST['questions']; $messages = array(); if (!preg_match("/^[\w\+\-.~]+\@[\-\w\.\!]+$/", $email)) { $messages[] = "Please enter a valid email address."; } else { include("sendmail.php"); $m=new Mail;$m->From($email);$m->To($recipient);$m->Subject($subject);$message= 'Great News, You have inquiry from ' . $name . ' <' . $email . '> from VacaCostaRica.Check-in: ' . $checkin . '
Check-out: ' . $checkout . '
# of Adults: ' . $adults . '
# of Children: ' . $children . '
Message: ' . $questions . '
Phone Number: ' . $phonenumber;$m->Body($message);$m->Priority(2);$m->Send(); header ("Location: thankyou.html"); } ?>
I want this to include my Logo, http://www.vacacostarica.com/images/logo.png. And also make it more eye catching. My clients will be getting this form by email and I want them to be WOWED!!!..
Maybe add my Facebook, Pinterest and social media buttons. Letting the owner know we ask our clients to respond as soon as possible to confirm availability. If you can help me, I can pay you by Paypal.