I am writing a small script to run on a home server which will handle form data via post, but should submit to a page with get values. I.e. the index.php file receives a $_GET which sets which page is loaded.
If the page index.php?page=form is loaded then a form should appear, this works fine, but the form handling is on the same page.
Having a form like so:
<form action="index.php?page=form" method="post">
<input type="text" name="email">
Other form fields here
</form>
will post the data to index.php? instead of index.php?page=form.
Can this be done?