Home  >  Article  >  Backend Development  >  问一个html调用php文件的有关问题

问一个html调用php文件的有关问题

WBOY
WBOYOriginal
2016-06-13 11:52:36924browse

问一个html调用php文件的问题。
请问下面的html应该怎么写?
现在要写一个html页面,比如叫A.html吧。这个页面上有一个按钮,点击这个按钮后,要执行一个URL:
http:://xxxxxxx/xxxx.php.在这个xxxx.php中要得到A.html中传过来的一个参数字符串,取得的方法是$dddd = $_POST[0].请问这个我html应该怎么写?我写了一个,但是在xxxx.php取$_POST[0],结果得到的值是空的,请问是怎么回事?谢谢回答。
------解决方案--------------------
在同一域名下么, http:://xxxxxxx 是自己的网站吗,是的话就form提交呗。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn