View Full Version : I need help with coding a web form

08-31-2010, 10:47 AM

I am new to the web design thing, i would please like to ask any one to please tell me what i did wrong in my code here. I want the form to be sent to an email without having to set up a file on my server. Here is the code:

<form action="mailto:domain@domain.com" method="post" enctype="application/x-www-form-urlencoded">
<input type="checkbox" name="Yes" id="Yes" />
<label> No
<input type="checkbox" name="No" id="No" />
<input type="submit" name="Submit" id="Submit" value="Submit" />


Major Payne
09-01-2010, 08:26 AM
Hope you know that both boxes can be checked. The form worked for me. Be sure to change:


Using your real email address. Example:


Better if you used a server-side form. Use a server-side script language if your web site allows it. Otherwise, you will have to use a client-side dependent "mailto:" action to get the form info sent to you.

Your current hosting package MUST allow SMTP ( http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol ) to work. Otherwise, no email can be sent.

PHP: Sending Email Tutorial (Text/HTML/Attachments): http://www.webcheatsheet.com/php/send_email_text_html_attachment.php

Use any of the below sites to make the workable form you need:

For making forms:

These are really good online form makers. Just follow the instructions for making it and uploading file(s).

Contact Form Generator: http://www.tele-pro.co.uk/scripts/contact_form/
WYSIWYG Form Maker: http://www.jotform.com/?gclid=CNKhqei1wJ4CFRQhnAod6laUqA
Ajax - Creating an HTML Form: http://www.tizag.com/ajaxTutorial/ajaxform.php

http://www.reconn.us/content/view/12/34/ (Download - Contact Us Script)

Form Service: http://www.mycontactform.com/
Online Free Tool, PHP Contact Form Code Generator: http://www.htmlbasix.com/contactform.shtml
PHP Mailer Script Step by Step: http://www.htmlgoodies.com/beyond/php/article.php/3855686
PHP Sending E-mails: http://www.w3schools.com/PHP/php_mail.asp

Freebie: Good looking Fluid Contact Form: http://www.flashuser.net/flash-components/freebie-good-looking-flash-contact-form.html

Put an online contact form on your site in about 8 minutes (Requires an account): http://response-o-matic.com/