I'd like to take the data entered into a form and store it in a MySQL table using PHP, then pass to a target page using POST.
For instance say the standard version of the form would pass to the target.html page:
<form name="input" action="target.html" method="POST">
First name: <input type="text" name="fname" /><br />
Last name: <input type="text" name="lname" /><br />
Phone: <input type="text" name="lname" /><br />
<input type="submit" value="Submit" />
What approaches could one take to accomplish the storing of the form data into MySQL, and then passing the data via POST to the target page?