Who sent you?
<p>I have a series of input forms, all of them take a different form action. Each of those validates input. If ok, they go to different success pages. If fail, I want the form action/validation pages to set $_SESSION['error_messages'] and go to a common page which displays the errors and has a "resubmit" button.</p>

<p>Question ... how to get error form the resubmit button back to one of many possible input forms?</p>

<hr>

<p>Edit: I don't see how <code>$_SERVER['HTTP_REFERER']</code> is going to work. Again: form --> validation --> error_page</p>

<p>So, I guess that <code>validation</code> has to set  a session variable from $_SERVER['HTTP_REFERER']</p>
