Help - Search - Members - Calendar
Full Version: Contact Form
Pixel2Life Forum > Help Section > HTML, XHTML, CSS and General Web Design
creativemind
Hi all!

I am trying to create a submit form but not working. When a user does NOT enter the Require Fields and click on the Send Request button, it should not link to a blank page. It needs to go to the error page letting the user know they MUST enter the Required Fields.

Also, when all fields are filled and click on the Send Request button, I do not get the email back to me.

Is there another easier way to create this Contact Form than what I have?

I have attached a zip file for the contact.html sheet, error.html sheet and the external CSS sheet and the Send Request button in GIF.

Thanks got any help out there!!!!!!!!!!!!
Da DreadLord
CODE
<form name="ContactForm" method="post" action="error.html" onSubmit="return validateContactForm(this);">


so what this does is:
you click the submit
it will call and execute a method validatContactForm -> i dont see this methode and you havent included a link to javascript file so maybe its missing or you just took it out for putting it here..

if this exists it will probably return 'true' when all is valid..
if true it will send the form to the action value which you set to error.html..so it will go there anyway

i found something that might help you:
http://www.javascript-coder.com/html-form/...rm-action.phtml

also i would suggest not to use 2 pages for your form..you only need 1 and on that one you can display the error messages using javascript bigwink.gif

oh about the mail..i dont see anything email related in the code, so i dont really understand tongue.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.