PDA

View Full Version : Help with required fields in forms


lei
03-18-2005, 10:26 AM
i had this in the wrong forum and was told this is the right one..

i have a site that i am working on and there are several pages with forms that i have set up to require information yet when i hit the submit button without those required fields i am not getting the error message that i should. Could someone please look at the page http://www.nwservice.com/support.htm and see what i am doing wrong. I cant figure it out to save my life.

Thank you.

¥åßßå
03-18-2005, 10:37 AM
1/ you have an error in your javascript :-
<script type="text/javascript">
<!-- Begin

image1 = new Image();
image1.src = "home.png";

image2 = new Image();
image2.src = "products.png";

image3 = new Image();
image3.src = "demo.png";

image4 = new Image();
image4.src = "order.png";

image5 = new Image();
image5.src = "faq.png";

image6 = new Image();
image6.src = "support.png";

image7 = new Image();
image7.src = "about.png";

image8 = new Image();
image8.src = "contact.png";

}

2/ You never actually submit the form :-
<input name="B1" type="image" value="Order Now!" src="submit.png" width="80" height="44">

lei
03-18-2005, 10:52 AM
Thank you for the prompt reply the little red }, is that what needs to go? And the form does actually submit to tech support, I just don't want anyone to be able to submit it without the required info which I was able to do.

Thank you

¥åßßå
03-18-2005, 10:59 AM
The red bit wants removing.

lei
03-18-2005, 11:01 AM
Thank you bunches, I will test it to see if that does the trick. :)

lei
03-18-2005, 11:13 AM
it's not working. i am still not receiving the error message that i should when someone tries to submit the form without the required fields. *pouts*

¥åßßå
03-18-2005, 11:42 AM
change your script tag to :-
<script type="text/javascript">

¥

lei
03-18-2005, 11:55 AM
woohoo :) it works, thank you so much. i am still very new at all of this and your help has been invaluable. i love this forum and all the helpful people in it. thank you bunches:D

¥åßßå
03-18-2005, 12:01 PM
No problem ;)

¥