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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.