Re: [PHP] image button problem

This is a discussion on Re: [PHP] image button problem within the PHP General forums, part of the PHP Programming Forums category; From: "Abdul-wahid Paterson" <aw@lintrix.net> > I am trying to create an HTML form ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-12-2003
Cpt John W. Holmes
 
Posts: n/a
Default Re: [PHP] image button problem

From: "Abdul-wahid Paterson" <aw@lintrix.net>
> I am trying to create an HTML form that has several image buttons on it
> and the resulting action depends on which button is pressed.
>
> I first tried using <input type="image" name="test" src="...."> but from
> IE on the PHP side I only get $_POST['test_x'] and $_POST['test_y']
> defined. I therefore don't know which of the buttons on the form was
> actually pressed.


What do you mean you don't know what button was pressed? You have 'test_x'
and 'test_y' so you know the "test" button was pressed. If you give the
other buttons a different name, you'll have different _x and _y variable
names, so you can still tell which one was pressed.

---John Holmes...

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:33 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0