form error when submitted via contact/index.php
*All I'm really trying to accomplish is using index.php for all of the contact / thank you / php files.
I'm having almost the exact same issue that was discussed via "form not working on site index.php page" post in forum. When trying to make these modifications the form either won't work at all or gives an error message. So I applied the same suggested fix but still get errors:
The form works fine when I access it directly using index.php
But I still get errors When I access and submit the form via contact/
- either the form won't submit at all or gives the error message below.
Here is the error message:
Deprecated: Function split() is deprecated in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\ContactForm_GMC\contact
\WA_ValidationToolkit\WAVT_Scripts_PHP.php on line 327
Details on what I've changed:
1) changed "contactus.php" to "index.php"
2) chanaged
PHP Code:
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:
PHP Code:
if ($_SERVER["REQUEST_METHOD"] == "POST") {
3) changed "thankyou.php" to "thankyou/index.php"
4) changed
PHP Code//Send Mail All Entries
if ("index.php"!="") {
header("Location: thankyou.php");
to
PHP Code//Send Mail All Entries
if ("index.php"!="") {
header("Location: thankyou/index.php");
*All I'm really trying to accomplish is using index.php for all of the contact / thank you / php files. I've spent allot of time going through the forums and reading over the PHP code and honestly can't figure out how to make that happen. If you could give advice on how I can have my file / directory structure so that this will work I'd be very greatful! I prefer to do this in the least complicated way while also using the least amount of resources on my web server. Thanks for any help!