View Single Post
Old 23-10-2005, 09:31   #3
BBKing
R.I.P.
 
BBKing's Avatar
 
Join Date: Jun 2003
Location: London
Services: 20Mb VM CM, Virgin TV
Posts: 5,983
BBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny star
BBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny star
Send a message via ICQ to BBKing
Re: HTML FORMS and PHP

Quote:
Any ideas?
Just done something similar - redirected to the same page with different parameters if a particular parameter was set. I use JSPs though, but the principle should be fairly similar - they don't allow you to redirect after you've done any output at all, so you must make your decision first, before outputting anything. This means using a separate pure PHP page as the target. Then, if you find all's well, redirect to success.htm, otherwise redirect to mypage.htm.

You could rewrite mypage.htm as php, but I don't totally approve of mixing content and programmatical data in the same file. Easier to debug if you keep it separate.
BBKing is offline   Reply With Quote