View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

form error when submitted via contact/index.php

Thread began 1/05/2010 9:42 pm by raabernathy397361 | Last modified 8/31/2012 10:57 am by raabernathy397361 | 4771 views | 6 replies

raabernathy397361

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!

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...