Getting AJAX/JQuery Contact Form Working


rshill65
Asked:
2012-11-25 12:34 pm EST

Hits: 721
I have a contact form that uses Ajax, JQuery and PHP as back-end to send an email message without refreshing the page.

I have it working on two separate domains and servers, but cannot seem to get it working here on the inmotion servers.

It is working here:

http://www.thinkci.com/contact-us.php


The only difference I see between my server set-up and inmotion is in the php ini file. I am running PHP 5.2.17 and inmotion is running PHP 5.3.10. Also I have magic_quotes_gpc truned on as well as register_globals and inmotion has both turned off.

I am thinking register_globals being off is the key as the variables trigger the mail send script I wrote.

Any Thoughts. Help is greatly appreciated.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

jamesr
Staff
4,959 Points
2012-11-26 11:38 am EST
Thank you for your question rshill65!

Sorry for the trouble with your contact form not working. It is a good idea to match the old server settings. If it works on another server, matching the php.ini settings can remedy issues like this. You can edit these settings in the php.ini found in the public_html folder of your hosting account. Please see the following link.

How to update your local php settings

You also may need to make the phpini recursive.

How can I make my php.ini file recursive ?

magic_quotes_gpc can cause issues when posting data through the url, as it will add slashes to your form variable data. Try turning it off before changing any other settings to see if it resolves the problem.

Also, Linux is case sensitive, so if your previous server is not running Linux, you may have case sensitive related issues when accessing files. Looking at your Error log in your cPanel, it appears that your file naming is not the problem; however, "Variable" and "variable" are different when on Linux servers due to case sensitivity.

If turning magic_quotes_gpc does not work we will need the steps to replicate the problem. Unfortunately, because this is a open forum that people can read online, you will want to contact support either by chat, phone (1-877-595-4482 ext 2), or by email (support@webhostinghub.com). Please give tech support the exact steps to replicate the problem. Please include any login credentials and/or links we will need to replicate the problem. Sorry for the inconvenience.

Take Care!

James R

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!