PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I´m new in php so my question may look prety basic.
the thing is, I have the folowing code wich work´s fine but after pressing the submit button every time I refresh the page (F5) it returns allways the same "Submited". How can I "reset" the form after pressing the button so if the user refreshes the page it wont execute the submit button again?
I would use the header() function
once they submit the form, redirect them back to the page which will reset all the POST vars and they can refresh the page like they never submitted it.