I have a form on my page, and when I submit this, it will check the different submitted INPUT fields.
Example, I have this variable:
$method = inputFilter($_POST['method']);
My question is, when the form is submitted, if the $method is example = 1, will I then send all the posted data, to another page, and retrieve the data there?
Example: - Submit form on form.php 开发者_如何转开发 - If method is = 1, then send the submitted data to otherform.php, and let the form here, autosubmit?
You could use javascript to change the action of the form based on a checkbox but you should rather use an if inside your server side script and include form.php or otherform.php to process the form.
精彩评论