Contact Form

houarim
Offline
Last seen: 6 months 1 week ago
Tue, 10/20/2015 - 22:45
#1
Contact Form

Hi,

I have duplicated the contact form because I have 2 different ones in my index page.

So now I have processContact.php, and I called the new one: processInscription.php

And in the html, I put:

<form id="send-message-form" action="processInscription.php" method="post">

But when I hit the send button, it doesn't work, send sends the contact.php... Where can I tell it to send the processInscription.php when I clic on the send button please?

Is it something with this code?

<div class="form-submit">
        <input type="submit" value="Confirmer" class="md-btn md-btn-3">
</div>

When I clic on the send button, it tries to send the processContact.php and I get errors, I have removed some fields from the form AND from the processContact.php

Please help! It is the last problem I have with this work. Thank you!

houarim
Offline
Last seen: 6 months 1 week ago
Tue, 10/20/2015 - 22:48

Here's the link to the website, so you can test it:

http://diderot.ma/

Thank you so much,

cindy
cindy's picture
Offline
Last seen: 2 days 13 hours ago
Wed, 10/21/2015 - 18:02

Hi,

It seems that the code in #1 did not display

Please post it again

houarim
Offline
Last seen: 6 months 1 week ago
Wed, 10/21/2015 - 19:22

Oh I meant this code: 

<div class="form-submit">
                 <input type="submit" value="Confirmer" class="md-btn md-btn-3">
</div>

All I need is to be able to send 2 forms in the same page, seperately. One is the general contact form. The other one is a subscription form. They both send to the same e-mail, but right now it's not letting me send anything, I think the class "form-submit" needs to be changed?

Here's a link to my files, if you want to take a look:

http://idd.ma/DIDEROT.zip

Cảm ơn bạn rất nhiều vì đã giúp đỡ của bạn Cindy! This is the last problem I have and the project will be finished. :-)

cindy
cindy's picture
Offline
Last seen: 2 days 13 hours ago
Thu, 10/22/2015 - 16:45

Hi,

We are working on your issue and will feedback you at the soonest time

houarim
Offline
Last seen: 6 months 1 week ago
Thu, 10/22/2015 - 19:47

Thank you, I know you will, you guys ahev the BEST support system of any other Temeforest team! Thanks :)

Neo
Offline
Last seen: 1 year 4 months ago
Fri, 10/23/2015 - 10:17

Hi,

Fist, you need to change form id, for example:

<form id="send-inscription-form" action="processInscription.php" method="post">

Second, check js/script.js file, line 789 Ajax contact form. Here you will have to duplicate the code in ajaxContactForm function.

Please note this code:

submitHandler: function(form) {
$("#submit-contact").html("Sending...");
$(form).ajaxSubmit({
success: function(responseText, statusText, xhr, $form) {
$("#contact-content").slideUp(600, function() {
$("#contact-content").html(responseText).slideDown(600);
});
}
});
return false;
}

you will need to change those id (#submit-contact, #contact-content) to another id in your inscription form

Log in or register to post comments