RE: [PHP] POST/GET var problem
| From: | John Holmes | Date: | Thu, 13 Jun 2002 00:36:10 +0000 |
| Subject: | RE: [PHP] POST/GET var problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101849@lists.php.net to get a copy of this message | ||
When a user clicks on an image to submit, two variables are created...
$image_x and $image_y
Or, using the HTTP or super global variables...
$HTTP_POST_VARS['image_x'], $HTTP_POST_VARS['image_y']
$_POST['image_x'], $_POST['image_y']
Try those...I'm pretty sure that's how it still works.
---John Holmes...
> -----Original Message-----
> From: Anzak Wolf [mailto:anzak@hotmail.com]
> Sent: Wednesday, June 12, 2002 6:09 PM
> To: php-general@lists.php.net
> Subject: [PHP] POST/GET var problem
>
> take the following html code
>
> <form method=post>
> <input type=image name=myimg src=something.gif>
> </form>
>
> Now when that is created by a php script the value that is passed back
is
> the following.
>
> myimg.x="Click loc X"&myimg.y="Click loc y"
>
> I could leave the name attribute off and I get an x/y value set that I
can
> use for some math functions I have. The problem is that I have more
than
> one image that could be clicked on and depending on which you click on
> determines what math to do.
>
> $HTTP_POST_VARS['myimg.x'] seems to be an object as I can't do the
> following
> $x=$HTTP_POST_VARS['myimg.x'];
>
> Anyone know how I can get this value into a variable I can use?
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php