TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

OSCommerce problem with forms

Page: 1 Reply
Jan 25th 2004#139382 Report
Member since: Jun 5th 2003
Posts: 93
I moved the search form to the top navigation, and now any other form with a submit button activates the search form.

How can this occur? Any suggestions on how to troubleshoot this issue. When I comment out the code for the search form, everything else works perfectly...

http://www.urbaneffect.com
Reply with Quote Reply
Jan 25th 2004#139396 Report
Member since: Nov 26th 2001
Posts: 2586
This is a guess, but you have 2 image submit buttons. They don't have any javascript that tells the form to do anything so I think it is submitting default, which would be the first form. Look up something about using images and submit. You might need to make a javascript function like:

formSubmit ( theForm ) {
this.theForm.submit ();
}

and then for the form add this on the image submit: onClick="formSubmit( form_name )"

I am not that good at javascript and I am not sure if 'this.*' syntax works on all browsers, etc.... but you get the idea.
Reply with Quote Reply
Jan 29th 2004#139977 Report
Member since: Jun 5th 2003
Posts: 93
Yup, turns out that I didn't have an [HTML][/HTML] tag on the end of my search form.
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum