Hello,
Theres a contact us form which doesnt seem to work.
You may check it at : http://ithinksoft.com/index95ac.html?q=contact
Following is the code for process.php :
<?php
$mymail = 'contact@ithinksoft.com';
$cc = 'Form submitted from your website';
$BoDy = ' ';
$FrOm = 'FROM:' .$_POST['t1'];
$FrOm .= 'Reply-To:' .$_POST['t1'];
$FrOm .= 'X-MAILER: PHP'.phpversion();
$BoDy .= 'Your Name: ';
$BoDy .= $_POST['name'];
$BoDy .= "\n";
$BoDy .= 'Your E-mail Address: ';
$BoDy .= $_POST['mail'];
$BoDy .= "\n";
$BoDy .= 'Subject: ';
$BoDy .= $_POST['subject'];
$BoDy .= "\n";
$BoDy .= 'Message: ';
$BoDy .= $_POST['message'];
$BoDy .= "\n";
$send = mail("$mymail", "$cc", "$BoDy", "$FrOm");
///Redirect user to your homepage....
if($send)
{
echo '<html><head>';
echo '<meta http-equiv="refresh" content="0;URL=http://www.ithinksoft.com">';
echo '</head><body>Email send....';
echo '</body></html>';
}
?>
Following is the code for frontend :
<h2>Contact Us</h2>
<!-- start main content -->
<form action="process.php" accept-charset="UTF-8" method="post" id="contact-mail-page">
<div><font color="blue">Please contact us at the following phone numbers:<br><br></font>
<font color="black">Mr.Ishan Doshi : +91 - 9820025108<br>
Mr.Dhimant Gandhi : +91 - 9867218113<br><br></font>
<font color="blue">You can leave a message using the contact form below.</font><div class="form-item" id="edit-name-wrapper">
<label for="edit-name">Your name: <span class="form-required" title="This field is required.">*</span></label>
<input type="text" maxlength="255" name="name" id="edit-name" size="60" value="" class="form-text required" />
</div>
<div class="form-item" id="edit-mail-wrapper">
<label for="edit-mail">Your e-mail address: <span class="form-required" title="This field is required.">*</span></label>
<input type="text" maxlength="255" name="mail" id="edit-mail" size="60" value="" class="form-text required" />
</div>
<div class="form-item" id="edit-subject-wrapper">
<label for="edit-subject">Subject: <span class="form-required" title="This field is required.">*</span></label>
<input type="text" maxlength="255" name="subject" id="edit-subject" size="60" value="" class="form-text required" />
</div>
<div class="form-item" id="edit-message-wrapper">
<label for="edit-message">Message: <span class="form-required" title="This field is required.">*</span></label>
<textarea cols="60" rows="5" name="message" id="edit-message" class="form-textarea resizable required"></textarea>
</div>
<input type="submit" name="op" id="edit-submit" value="Send e-mail" class="form-submit" />
<input type="hidden" name="form_build_id" id="form-72ca2e257d9c7d100d4e5382181b7b3c" value="form-72ca2e257d9c7d100d4e5382181b7b3c" />
<input type="hidden" name="form_id" id="edit-contact-mail-page" value="contact_mail_page" />
</div></form>
As you can see ,When form is submitted,a blank page appears and the mail is not appearing in my inbox at all.
Pls help.