Jump to content

Refresh On Browser After Clicking A Save Button.


njdubois

Recommended Posts

I have a form, with a text box and a submit button. When they click submit it saves to a database.

 

Say the submits name/id is save_button.

 

I use

if(isset($_POST['save_button'])) {

 

// do save to database stuff here.

 

}

 

The user clicks save, it saves the database, then for whatever reason hits the Refresh Button. Adding a double to the database.

 

I don't understand how to stop this from happening?

 

Any recommendations?

 

Thanks

Nick

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.