Jump to content

Can I have 2 buttons that do the same thing? (Save)


bulrush

Recommended Posts

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.

 

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.