Forum Moderators: coopster

Message Too Old, No Replies

Image button submit forms

How to stop posting the submit x & y co-ordinates on submit

         

PSWorx

12:10 am on Nov 29, 2004 (gmt 0)

10+ Year Member



This is the final piece of code to my select form:

...<input type=\"image\" src=\"".$dirSub."images/main/formGo.gif\" name=\"\" value=\"\"></form>...

Im using the form in a GET method to load up some items according to brand etc blah...

The problem:

The query string set from selecting an option (using a javascript) shows up fine n dandy i.e.

index.php?l=shop&g=all&cat=designers&subcat=ds

But when i use the image based submit form, with or without the name/value attributes it still posts something along the lines of:

(no name/value attributes)
l=shop&g=all&cat=designers&subcat=ds&x=0&y=6

or

(name/value attributes)
index.php?l=shop&g=all&cat=designers&subcat=ds&brandSelect.x=13&brandSelect.y=11

Is there any way of stopping this, am i stupid or did i miss something...

TIA

IanKelley

6:13 am on Nov 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That's something the browser does, no way I know of to control it.

I can't think of any way it could cause a problem though?

PSWorx

8:13 pm on Nov 29, 2004 (gmt 0)

10+ Year Member



Cheers for the info, think i might remove the button and just use the js for submitting the selection

Thanks again