News for hackers. Stuff that matters.
Re:How best to navigate to a PHP page after a form submit? by ionfish on Tuesday October 20, 2009 @05:51PM (#893437)
Well, to start with, you shouldn't be letting your choice of IDE dictate your code architecture. IDEs are a developmental aid (some might say a developmental crutch), so if yours is getting in your way, it's not doing its job and you should reconsider your use of it.

When you talk about using "the PHP function header()", I presume that you intend to use it to issue an HTTP redirect response. Think about what you're doing: HTTP is stateless, but you want to preserve state across page requests (the privacy page is a different resource to the contact form, as your uneasiness about not changing URIs shows you're aware). The place to do this, generally speaking, is in the session.

Re:How best to navigate to a PHP page after a form submit? by jsteele on Wednesday October 21, 2009 @08:09PM (#895935)
It's not dictating the code architecture -- it's one of many factors to consider

Naturally I'm using a session variable. But the URL mismatch remains.