Forum Moderators: coopster

Message Too Old, No Replies

Button

in php

         

ale3is

12:06 am on Mar 6, 2010 (gmt 0)

10+ Year Member



i need to make a webpage which will have some buttons. once a user presses one button, i need its value to be saved in a variable.
how can i do this?

rocknbil

12:21 am on Mar 6, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome aboard ale3is, name it.

<input type="submit" name="submit_button_one" value="submit">

$_POST/$_GET (depending on your method) will have the key submit_button_one with a value of 'submit'.