"Stephen" <ssansom@austin.rr.com> wrote in message
news:Sk0eb.171145$834.125131@twister.austin.rr.com ...[color=blue]
> Richard Cornford wrote:
>[color=green]
> > "Matt Herson" <ebay2@mherson.com> wrote in message
> > news:bl9j0e$37d$1@bob.news.rcn.net...
> >[color=darkred]
> >>ok, assuming the dash is accepted, any ideas on how to accomplish the[/color]
> >
> > change
> >[color=darkred]
> >>to the hidden field?[/color]
> >
> > <snip>
> >[color=darkred]
> >>><URL:
http://jibbering.com/faq/#FAQ4_25 >
> >>>-and-
> >>><URL:
http://jibbering.com/faq/#FAQ4_39 >[/color]
> >
> > <snip>
> >
> > The whole task is unnecessary as <input type="image"> elements provide
> > name/value pairs in the request if they are given name attributes. Two
> > buttons with unique names would allow the button that was actually
> > clicked to be determined on the server by testing for the presence of a
> > value of each name (the name/value pairs will not be present for the
> > button that was not clicked).
> >
> > [...snip subsequent...][/color]
>
> Most browsers I tested (3 gecko-based + ie6) would do this with buttons
> having the same name but different values, e.g.,
>
> name="form-name"
> value="request_for_info"
>
> name="form-name"
> value="request_for_info_ver2"
>
> This *should* work per W3 specs as I understand them. However, I tried
> this with opera 7.11, which seemed to omit the name=value pair, even
> though it transmits the image click coordinates just fine--as, for
> example, "form-name.x=8&form-name.y=9". Unless I'm just looney and
> didn't see it correctly. This seems to me to be incorrect following of
> the specs. It's certainly different from the way "everybody else" does it.
>
> So I guess you probably would be better off with two different names for
> the buttons:
>
> name="request_for_info"
> name="request_for_info_ver2"
>
> At least this way, "everybody" transmits the same thing on submit.
>
> I definitely agree this is the way to go ...
>
> Regards,
> Stephen
>
>
>[/color]
THANKS TO YOU ALL!
Now, as it turns out the validator I was using won't work anyway. So I no
longer need to submit using the <a href x> tag. Thanks again. Now I will
be posting a validation issue.