View Single Post
Join Date: May 2008
Posts: 45
Reputation: DiGSGRL is an unknown quantity at this point 
Solved Threads: 4
DiGSGRL's Avatar
DiGSGRL DiGSGRL is offline Offline
Light Poster

Re: Execute PHP file in the background from html page

 
0
  #2
Jan 4th, 2009
What you should do when they submit your form to phpfile1.php do a redirect back to the htmlcode.html.
  1. header("Location: htmlcode.html");
Or you can change the htmlcode to a php file and have your form validate to the same page instead by putting your php on the same page.
I like to keep things seperate so I would do the first way.
A little clarification goes a long way.
Reply With Quote