Jump to content

[SOLVED] quick question about forms..


SirChick

Recommended Posts

I have 4 submit buttons on my form as so:

<input type="submit" id="Button1" name="Button1" value="West" style="position:absolute;left:225px;top:74px;width:75px;height:24px;z-index:0">
<input type="submit" id="Button2" name="Button2" value="North" style="position:absolute;left:367px;top:19px;width:75px;height:24px;z-index:1">
<input type="submit" id="Button3" name="Button3" value="South" style="position:absolute;left:369px;top:114px;width:75px;height:24px;z-index:2">
<input type="submit" id="Button4" name="Button4" value="East" style="position:absolute;left:512px;top:80px;width:75px;height:24px;z-index:3">

 

And i was just wondering is there a way in the process page to do if "if button1 is pressed" {do this}

 

i was unsure how you check a value of a submit button to determine which one is pressed..

 

hope you can help :)

 

Link to comment
https://forums.phpfreaks.com/topic/75049-solved-quick-question-about-forms/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.