Link to home
Create AccountLog in
Avatar of BTMExpert
BTMExpert

asked on

php submit a form on a page that doesn't resubmit the form

I have a page with a form on it the action is the same page.  if i hit submit it does this
if(isset($_POST['Submit'])){
echo "<meta http-equiv='refresh' content='0;URL=myurl>"; 
}

Open in new window


an some other things of course.  When i hit refresh it refreshes the page but also resubmits the form.  How can i stop it from resubmitting
ASKER CERTIFIED SOLUTION
Avatar of Brad Brett
Brad Brett
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
try header function
header("location: myurl");
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.