我正在设计一个网页,我需要在其中使用单选按钮作为表单元素。请检查下面的代码...

<form action="glitter.php" method="post">
<input type="radio" name="font" value="fonts/darkcrystaloutline.ttf"/>
<input type="radio" name="font1" value="fonts/darkcrystalout.ttf"/>
<input type="radio" name="font2" value="fonts/darkcrystalout2.ttf"/>
<input type="submit">
</form>


上面的代码通过将单选按钮值提交到“ glitter.php”可以正常工作,但是我需要的是首先将值提交到“ glitter.php”。提交后,该网页应重定向到另一个网页(例如:“ kothi.html”)。有没有一种方法可以通过使用PHP或JQuery来实现。请帮助我解决此问题。

最佳答案

您可以使用header("location: http://domainname/path/to/kothi.html");

Find the manual here

关于php - 提交表单元素后如何将网页重定向到其他网页,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/9256876/

10-09 05:45
查看更多