Log in

View Full Version : Form Help



Casio
04-12-2011, 05:37 PM
I am trying to create an email form, I have everything I need, but I cannot get it to submit to my email, can someone help me please.

<h3 class="contactTitle">Email us:</h3>
<!-- custom form messages start -->
<span class="error" id="nameError">Please enter your name !</span> <span class="error" id="emailError">Please enter your email address !</span> <span


class="error" id="emailError2">Please enter a valid email address !</span> <span class="error" id="messageError">Please enter your message !</span>
<div class="contactSuccessMessage"> <img src="./images/ok.png" alt="" />
<h4>Thank you for contacting us.</h4>
</div>
<!-- custom form messages end -->
<!-- contact form start -->
<div class="contactForm" id="contactForm">
<form id="contact" />
<fieldset>
<label for="contactName" id="name_label">Name (required)</label>
<input type="text" name="contactName" id="contactName" size="30" value="" class="text-input" />
<label for="contactEmail" id="email_label">Email (required)</label>
<input type="text" name="contactEmail" id="contactEmail" size="30" value="" class="text-input" />
<label for="contactSubject" id="subject_label">Subject</label>
<input type="text" name="contactSubject" id="contactSubject" size="30" value="" class="text-input" />
<label for="contactMessage" id="message_label">Message (required)</label>
<textarea name="contactMessage" id="contactMessage" class="text-input"></textarea>
<p>
<input type="submit" name="submitMessage" class="contactButton" id="contactSubmitBtn" value="" action="mailto:[email protected]" />
</p>
</fieldset>
</form>
</div>
<!-- contact form end -->

Dentafrice
04-12-2011, 05:52 PM
Try this:

http://pastie.org/2965328

(http://pastie.org/2965328)This won't work unless you have a mail client like Outlook, Thunderbird, Apple Mail, etc. Then you need a backend script to handle it.

Casio
04-12-2011, 06:10 PM
I can say that that code did not work for me.

Dentafrice
04-12-2011, 06:20 PM
Do you have an email client installed? Otherwise it's not going to work.

You're going to need a backend script to handle the email then. PHP, ASP, ColdFusion, Java, etc.

Casio
04-12-2011, 06:23 PM
Do you have an email client installed? Otherwise it's not going to work.

You're going to need a backend script to handle the email then. PHP, ASP, ColdFusion, Java, etc.

I have outlook and still doesnt work, do you knowwhereI can find a backend script so it will send straight from my website to my email inbox.

Dentafrice
04-12-2011, 06:29 PM
I haven't got time today to make one for you for free (unless you'd rather pay a few dollars). Otherwise,http://lmgtfy.com/?q=PHP+Contact+Form

Should be a good one there.

Want to hide these adverts? Register an account for free!