Do anyone know how can I rewrite a URL in php for the submit action?
Example:
I have a code as following:
I call to the page by using the following link http://www.assignment.com (I have set the index to test.php) and test.php will display the following code.
<form action="test.php" method="post">
<input type="text" name="phone" value="">
<input class="submit_btn" type="submit" name="submit" id="submit" value="SUBMIT">
</form>
when I clicked on the submit button, it will post to test.php to do the action and the display the same input page. However once submit button been clicked, the url link will become http://www.assignment.com/test.php. any way that I can rewrite the url to http://www.assignment.com after submit instead of http://www.assignment.com/test.php?
If your
test.phpis run whenhttp://assignment.com/is loaded, you could just change the form target to: