我有一个表格,我通过html进行输入经度和纬度,然后提交这些信息。现在我想要我在html表单中输入的经度和纬度,用于调用python脚本。表单中的每个元素是叫python脚本的命令行参数:从html传递信息到python脚本
./python.py
如何调用适当的参数的python脚本python.py如上规定根据我在网站上提交的表格提交的纬度和经度信息。这是一段html代码。
<center>Please Enter a Longitude and Latitude of the point where you want to look at</center>
<center>(Longitudes West and Latitudes South should be entered as negative numbers i.e 170W is -170).</center>
<br></br>
<form>
<center>
Longitude: <br>
<input type="text" name="Longitude" />
<br>
Latitude: <br>
<input type="text" name="Latitude" />
<br>
<input type="submit" name="submit" value="Submit" />
</center>
</form>
</body>
</html>
我应该在这里添加什么,以便在点击提交按钮时有html文件调用./python.py?
你需要编码url – Hackaholic 2014-11-23 23:36:20
这是什么意思? – jms1980 2014-11-23 23:59:51
你能给网站链接吗? – Hackaholic 2014-11-24 00:01:18