Joomla 2.5 - 自定义手工编码表单和PHP邮件程序 - 找不到联系人.php文件


Joomla 2.5 - Custom hand coded form and PHP mailer - Can't find the contact.php file

我正在开发一个新的在XAMPP下运行的Joomla 2.5网站。我已经在HTML中编写了一个自定义估算表单作为文章。一个用于计算的jQuery文件和一个联系人.php文件,用于通过电子邮件发送所有计算和客户信息。

至于使用表单插件,我认为这是不可能的,因为所有的计算......滑块等。继续。

问题是当我点击提交按钮时,joomla 似乎找不到联系人.php文件。我正在运行 XAMPP 并在我的项目根目录中找到了联系人.php文件。

这是我的文章的链接,表格

http://localhost/cleardraft/index.php/hosting/2012-02-17-02-08-39/estimate

正在返回的链接,单击"提交"按钮时找不到。我没想到会有这样的联系人.php文件的链接

http://localhost/cleardraft/index.php/hosting/2012-02-17-02-08-39/contact.php

网页示例

<form id="wizard-form" method="post" action="contact.php" class="jWizard">
 <!------normal form code stuff here----->
<button type="submit" class="button-finish" style="display: inline-block; ">Submit</button>

我搜索了又搜索,但在网上找不到答案。

(由 OP 在问题编辑中解决。 移至社区维基答案。请参阅没有答案的问题,但问题在评论中得到解决(或在聊天中扩展) )

OP写道:

已解决... * 已解决...

* 已解决...

<form id="wizard-form" method="post" action="http://localhost/cleardraft/contact.php" class="jWizard"> <--Direct Path Here.

这是挂在我的HTML文件的底部!完全忘记了!!!!!这就是我头痛的原因!!

$('form#wizard-form').bind('submit', function() {
    $('.R_C_loader').show();
    $.post("http://localhost/cleardraft/contact.php", <--Direct Path here and Solved it.
           $("#wizard-form").serialize(), 
           function(reply) {
               $(".R_C_message, #R_C_TopMessage").removeClass().html(reply);
               $('.R_C_loader').hide();
           });
    return false;
});