[thelist] input type="image" value not being passed in IE6/XP

Andrew Clover and-evolt at doxdesk.com
Wed Nov 24 21:25:25 CST 2004


John Allsopp <john at johnallsopp.co.uk> wrote:

> According to the W3C 'value' is optional in this case. Does that mean
> it's optional to us as developers, or it's optional whether the
> browsers support it?

The spec seems wholly ambiguous to me - I don't see where it says 
'optional', even!

> And if 'value' isn't supported, I can't even seem to get PHP to work
> with those p.x type values. Using (isset($_GET["p.x"])) doesn't seem
> to work.

Apparently PHP "helpfully" converts '.' to '_' in this case.

> All I'm trying to do is work out which of the two images has been
> clicked.

You'll have to use different 'name's I'm afraid. You can't rely on the 
value being passed.

-- 
Andrew Clover
mailto:and at doxdesk.com
http://www.doxdesk.com/


More information about the thelist mailing list