Jump to content


Contact Form


1 reply to this topic

#1 creativemind

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 14 June 2009 - 02:13 PM

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!!!!!!!!!!!!

Attached Files



#2 Da DreadLord

    Young Padawan

  • Members
  • Pip
  • 14 posts
  • Gender:Male
  • Location:Aalst, Belgium

Posted 15 June 2009 - 02:44 AM

<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 :flowers:

oh about the mail..i dont see anything email related in the code, so i dont really understand ;)

Edited by Da DreadLord, 15 June 2009 - 02:47 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users