开发者

Submitting form - Send variables to another page

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜