drix47193 2016-08-17 01:51
浏览 43
已采纳

编辑器中的Joomla表单找不到关联的php动作文件

I am new to Joomla and I am struggling to get a form going. I created the form using the editor of an Extra Field. Now in the form I am calling the action php file:

<form action="email1.php" method="post" class="form-horizontal">

Unfortunately, nothing is happening and I suspect that I put the php file in the wrong directory. Looking at the file manager I have no idea where to put the php file. Can anybody tell me where I have to copy the php file to so that the editor can find it?

  • 写回答

1条回答 默认 最新

  • doutale7115 2016-08-17 02:00
    关注

    I would advice you to create a folder on the main directory of your website to collect your own datas/pages without messing joomla original file. Let's call it "myfolder" and copy email1.php in it.

    Now you can go to 'www.mysite.com/myfolder/email1.php' and expect some kind of result.

    Now modify your code to avoid that mysterious relative path and use this instead :

    <form action="/myfolder/email1.php" method="post" class="form-horizontal">
    

    This should do the trick.

    Edit : this is a generic answer, not joomla specific.

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

报告相同问题?

悬赏问题

  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”
  • ¥15 网络设备配置与管理这个该怎么弄
  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码