且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

根据需要在HTML中运行PHP脚本

更新时间:2023-01-15 19:59:10

url = ASpecificStock'sURL然后用PHP代码运行脚本并设置我的内部值HTML脚本,然后设置
url = ASpecificStock'sURL and then run the script with the PHP code and set the values inside my HTML script, then set


url = AnotherSpecificStock'sURL并再次运行脚本。这可能吗?



澄清:我正在寻找运行外部PHP脚本的某种命令,如果存在的话?



提前谢谢
url = AnotherSpecificStock'sURL and run the script again. Is this possible?

To clarify: I'm looking for some kind of command that runs an external PHP script, if such exists?

Thank you in advance


不确定我是否收到您的问题,但如果您想从HTML调用PHP脚本,可以使用我不喜欢的JavaScript认为是安全的。其他工作将是AJAX。看看问题,IMO AJAX将是救援人员。希望它可以帮助!!!
Not sure if I get your question but if you want to call PHP script from HTML it is possible using javascript which I don't think would be secure. Other work around would be AJAX. Looking at the problem IMO AJAX would be the one to the rescue. Hope it might help!!!