Hello all,
I have a bit of html code that needs php code for a contact form. The html code is below but I'm having trouble writing the php code for the email.php form to make this work. I hope someone could help with this. If so your help is greatly appreciated...
1st - Form Code
<div class="main_form">
<form name="contact" id="mainform" class="mainform" method="post" action="mail.php" enctype="multipart/form-data" onsubmit="return checkForm(this);">
<label><input type="text" class="validate['required']" name="name"/><span>Name<strong>*</strong></span></label>
<label><input type="text" class="validate['required','email']" name="email"/><span>Email<strong>*</strong></span></label>
<label><input type="text" class="validate['required','digit']" name="phone"/><span>Phone Number<strong>*</strong></span></label>
<label class="last"><textarea name="message" class="validate['required']" cols="" rows="" >Type Your Message Here...</textarea>
</label>
<label class="last"><input name="" type="submit" title="submit" class="submission" /></label>
</form>
2nd Form Code
<div class="contact">
<p class="quick">Quick Contact</p>
<div class="form">
<form name="contact" id="myform" class="myform" method="post" action="mail.php" enctype="multipart/form-data" onsubmit="return checkForm(this);">
<label><input type="text" class="validate['required']" name="name"/><span>Name<strong>*</strong></span></label>
<label><input type="text" class="validate['required','email']" name="email"/><span>Email<strong>*</strong></span></label>
<label><input type="text" class="validate['required','digit']" name="phone"/><span>Ph No<strong>*</strong></span></label>
<label class="last"><textarea name="message" class="validate['required']" cols="" rows="" >Type Your Message Here...</textarea>
</label>
<label class="last"><input name="" type="submit" title="submit" class="submission" /></label>
</form>
</div>
</div>