我正在设计一个网页,我需要在其中使用单选按钮作为表单元素。请检查下面的代码...
<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");
关于php - 提交表单元素后如何将网页重定向到不同的网页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9256876/