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 目详情-五一模拟赛详情页
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line