Sugapablo wrote:
[color=blue]
> I have the following HTML form:
> <form method="GET" action="modules.php">[/color]
Order forms are not normally idempotent. method="POST" is likely more
appropriate.
[color=blue]
> <input type="hidden" name="name" value="Catalog">
> <input type="hidden" name="task" value="addcart">
> <input type="hidden" name="item" value="1">
>
> <P>Available option: thing b - $44.90
> <input type="checkbox" name="y0" value="6"></P>[/color]
Since this is not a paragraph, <P> markup is inappropriate. How about
this?
<div><label>Available option</label><input ...></div>
[color=blue]
> <input type="image" src="cart.png" value="Submit">
>
> When I submit the form, lets say I check off the first and the
> third checkboxes, I get the following querystring:
>
> ?name=Catalog&task=addcart&item=1&y0=6&y2=8&cnt=3& x=48&y=4
>
> Where in the world are x=48 and y=4 coming from?
>
> They seem to be coming from the position I click on the submit
> image?[/color]
Of course. That's pretty much as the HTML spec requires.
[color=blue]
> Is this right? Can someone point me to a page talking about this,
> I can't google anything?[/color]
Why? Is Google not responding? I'd start at the w3c's HTML recommedation:
http://www.w3.org/TR/html4/
Particularly, the section on forms:
http://www.w3.org/TR/html4/interact/forms.html
--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/