bulrush Posted May 14, 2010 Share Posted May 14, 2010 I would like a Save button at the top of my form and bottom of my form because my form is very long (about 4 pages printed). I would like the buttons to do the exact same thing. Is this possible? When the user clicks the Save button (named "submit") the $_POST variable receives the name of the button, i.e. a new entry in $_POST is 'submit'. So I would like both buttons to be named the same. Is that ok? My code for the button looks like this: <p>Commands: <input type="submit" name="submit" value="Save"><br/> </form> Thanks. Link to comment https://forums.phpfreaks.com/topic/201752-can-i-have-2-buttons-that-do-the-same-thing-save/ Share on other sites More sharing options...
haku Posted May 14, 2010 Share Posted May 14, 2010 Yes, no problem. Link to comment https://forums.phpfreaks.com/topic/201752-can-i-have-2-buttons-that-do-the-same-thing-save/#findComment-1058304 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.