Contact form not working
The Contact Form is not sending email or redirecting to thank you page after configuring WA_Globals config file.
The Contact Form is not sending email or redirecting to thank you page after configuring WA_Globals config file.
Have you seen this thread?
showthread.php?t=4375
Without any details it's hard to tell what the problem is.
10 Tips for getting quick help from a support forum
145/
Hi thank for your prompt reply.
I saw that thread... and tried to replace the code but it did the same thing. When I fill out the form and click the submit button all fields are empty and no rediret to the thank you page.
Update:
When I copy the script on another domain and it worked ok. There must be some wrong with server settings. Any ideas?
Not without knowing:
1. Server OS of the domain that worked
2. Host of the domain that worked
3. Server OS of the domain that didn't work
4. Host of the domain that didn't work
4. Server settings you are using
Still working in the dark here.
See:
10 Tips for getting quick help from a support forum
145/
1. Linux OS
2. contactus.php
3. Linux OS
4. contactus.php
OK so now we know:
1. Server OS of the domain that worked - Linux
2. Host of the domain that worked
3. Server OS of the domain that didn't work - Linux
4. Host of the domain that didn't work
4. Server settings you are using
PHP hides all of the internal workings from the browser so the links don't help. The domain names don't matter and I don't want to track down the hosting company through IP addresses.
The only thing I can suggest is to compare the two setups and find out what is different between the domains. You can also check with the support forum for the hosting company and see if others have had issues sending out email and what the requirements are.
Since it works on one domain, it is not an issue with the script.
Good luck with it.
interesting update...
I used contactus.php and is worked!
The host may have disabled the $_SERVER["HTTP_REFERER"] variable. Try changing:
if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))) {
to:
if ($_SERVER["REQUEST_METHOD"] == "POST") {
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.