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.

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

报告相同问题?