Re: [PHP] Submit button as image

2004-05-12 Thread Curt Zirzow
* Thus wrote Sam ([EMAIL PROTECTED]):
> 
> What do you do with this?
> Submit.x=22&Submit.y=13
> 
> if($_GET['Submit.x'] > 0) ???

$_GET['Submit_x']; 

php converts .x to _x to be compatible accross browser versions.

> 
> Is there some smarter way of dealing with an image as a submit button?
> 
> input name="Submit" type="image" value="doesNOTseemTOmatter"

mozilla/firefox is the only browser that I know of that will pass
the value.


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Submit button as image

2004-05-12 Thread Chris W. Parker
Sam 
on Wednesday, May 12, 2004 10:10 AM said:

> What do you do with this?

nothing. i usually don't give my image buttons a name value so that
never shows up. what it's meant for is server side image maps. the
browser is telling the server where on the image the user clicked. then
you as the programmer decide where the user be taken depending on where
they clicked.

> Is there some smarter way of dealing with an image as a submit button?
> 
> input name="Submit" type="image" value="doesNOTseemTOmatter"

maybe the following will suffice?




hth,
chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Submit button as image

2004-05-12 Thread Sam

What do you do with this?
Submit.x=22&Submit.y=13

if($_GET['Submit.x'] > 0) ???

Is there some smarter way of dealing with an image as a submit button?

input name="Submit" type="image" value="doesNOTseemTOmatter"

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php