dounao2829 2015-06-29 18:55
浏览 499
已采纳

使用XAMPP在浏览器中打开Php文件时遇到问题

I have simple PHP code:

<form action="demo.php" method="post" />
 <p>Input 1: <input type="text" name="input1" /></p>
 <input type="submit" value="Submit" />
 </form>

Then when I right click it, hover over 'open with' with my mouse, Safari isn't a recommended application. (I am on OS X). I have installed XAMPP. Then I followed an answer on another question on here, and it still didn't work. I found the XAMPP folder, the htdocs, then I made a folder named php that had my form.php file. Then, I got in Safari, and typed: http:/localhost/form.php, and it still did not work. What am I doing wrong?

  • 写回答

1条回答 默认 最新

  • douben1891 2015-06-29 19:02
    关注

    you have to type the url http://localhost/php/form.php, in the browser to open the above form.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog