Reputation: 53
I'm working on a new Joomla 2.5 site running under XAMPP. I have written a custom estimating form in HTML as an Article.... A jQuery file for calc's and a contact.php file to email all calc's and client info.
As for using a form plug-in I don't think this is possible because of all of the calculations ... sliders ect. going on.
The problem is when I hit the submit button, joomla can't seem to find the contact.php file. I am running XAMPP and have located the contact.php file in the root of my project.
Here's the link to my Article with the form
http://localhost/cleardraft/index.php/hosting/2012-02-17-02-08-39/estimate
Link which is being returned that can't be found when clicking the Submit button. I was not expecting a link like this to the contact.php file
http://localhost/cleardraft/index.php/hosting/2012-02-17-02-08-39/contact.php
Sample of HTML
<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>
I have searched and searched but have found no answers online.
Upvotes: 0
Views: 1982
Reputation: 5883
(Solved by the OP in a question edit. Moved to a community wiki answer. See Question with no answers, but issue solved in the comments (or extended in chat) )
The OP wrote:
Solved... * Solved... * Solved...
<form id="wizard-form" method="post" action="http://localhost/cleardraft/contact.php" class="jWizard"> <--Direct Path Here.
This is was hanging out at the bottom of my HTML file! Totally forgot about!!!!!! this was the cause of my headache!!!
$('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;
});
Upvotes: 1