Re: problem with image button
| From: | Mark Maggelet | Date: | Sat, 30 Sep 2000 20:50:17 +0000 |
| Subject: | Re: problem with image button | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18173@lists.php.net to get a copy of this message | ||
On Sat, 30 Sep 2000 15:02:11 -0500 (CDT), Matt McClanahan
(cardinal@dodds.net) wrote:
>On Sat, 30 Sep 2000, Mark Maggelet wrote:
>
>> Hi there,
>>
>> Let's say I have a form with three image buttons:
>> <input type=image name=add src="add.gif">
>> <input type=image name=delete src="delete.gif">
>> <input type=image name=update src="update.gif">
>>
>> when I process the form I want to see what button was pressed, but
>> instead of add being set, add.x and add.y get set.
>>
>> now the question is: what's the best way to check which one is set
>> since doing this:
>>
>> if(isset($add.x)) ...
>>
>> gives a parse error?
>
>Since $add.x is an invalid variable name, PHP has instead set
$add_x.
>
>Matt
thanks Matt,
that did it.
- Mark