我有一个表格:
<form action="moods.php" method="post" id="geog">
Longitude: <input size="15" id="lonbox" name="lon" type="text" />
Latitude: <input size="15" id="latbox" name="lat" type="text" />
<input type="submit" />
</form>
我希望使用上面的单个表单同时将纬度和经度的值提交给除 moods.php 之外的多个 .php 文件。
我该怎么做?请提出一些方法..
最佳答案
为什么要将表单提交到多个页面,而您可以让一个脚本包含()其他脚本?
require('script1.php');
require('script2.php');
require('script3.php');
关于php - 通过 POST 将值提交到多个 PHP 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10307509/