Custom Contact Form.

Permalink
First the good news.

We have a site ported to C5, everything works (our own styles, nav bar etc). It took time and lots of searching - but it works 100%.

Now the bad news.

We have a custom "Contact Us" form that we use in a particular client site. It has quite a few processes and related elements that we will eventually port to C5, but at this point we need this to process form results.

In a nutshell, our form is in a Page Type with an HTML block. All the links to images etc work, the Validation Works etc.

Now, we click "Send" and want C5 to run a script in a folder "/scripts/scriptname.php" (ignore the quotes) which is in the Theme Root Folder.

But alas we get an error (which we kinda expected) as follows (we removed our 404 trapping):
Page not found
http://www.DOMAINNAME.com/scripts/scriptname.php...

How can we get this script to run?

I appreciate that this can all be done in C5 with built-in tools (and/or Single Pages), but at this point we don't really have the time to completely port this script (and other items) to native C5. The client is chomping and wants this script to work as is (it's a political and $$$) thing.

Any suggestions would be most appreciated.

 
goomba replied on at Permalink Reply
AWE nuts. Please disregard this entire post.

It was such an obvious things, we moved the scripts folder from the Themes Folder to the site root. Now it seems to work, but will do more testing.

Is there any reason why this would be a "Bad Thing" from a C5 perspective and/or is there a better way to do this - not withstanding we will be redoing this piece eventually.

It has been excluded from robots.txt and of course the appropriate permissions applied.

Thanks and sorry for the original post - more of a frustration post than anything.