Page 1 of 1

PHP Form-Mailer REDIRECT

Posted: Sat Jul 01, 2006 4:26 am
by papermoon
First let me say that I went first to the s9y.org site to look for technical documentation. Because I still use Mac OS 9 and either Netscape 7.02 or IE 5.0 here at home, the brand-new s9y.org site does not completely load for me. (I get a header image and sometimes the Google ads, but no more.) Laugh at me if you will for being behind the times but, hey, new equipment doesn't fall from trees. :?

Secondly, I'll say I tried my best to find this question already answered here in the forums. Forgive me -- or redirect me -- if it has already been answered elsewhere.

QUESTION:
I am using my hosting provider's specs for creating a form that will return input to my e-mail; i.e.,
<form type="hidden" action="gdform.php" method="post">
<form type="hidden" action="redirect" value="filename.htm">

On my test form, when I click SUBMIT, my browser "thinks" for a moment and then returns me to my blog page (which is also my 404 page) instead of the redirect page I've assigned. However, the form data does arrive in my e-mail.

Has the Serendipity program replaced my hosting provider's gdform.php setup and detoured my redirect? Is there a resource for more information on the topic? Should I be looking at a plug-in to perform this mail-form function?

Any clues you can provide would be greatly appreciated. Thank you!

Re: PHP Form-Mailer REDIRECT

Posted: Sat Jul 01, 2006 5:08 pm
by garvinhicking
Hi!

Oh, that sounds strange. Sadly I have neither MacOS nor IE5/Netscape7 here anymore, could you make a screenshot of how it looks for you? I have tested the new layout with Opera8+9, Firefox/Mozilla and IE6+7, which worked properly - but it might well be that other browser might have problems. :(

Now on to your question: If you put .htm or .html files into the serendipity directory and having serendipity's "URL Rewriting" activated to "mod_rewrite", Serendipity will catch all those URLs and redirect to its mainpage.

Thus you should put custom .htm/html files into a seperate subdirectory. In that directory you also put a .htaccess file with this content:

Code: Select all

RewriteEngine Off
And then that should work.

So currently serendipity executes the ".php" file, but the redirect puts you to serendipity instead of your custom .htm file.

But, of course you also have the possibility to use the Serendipity "Contact Form" plugin, whcih is available via Spartacus (spartacus.s9y.org or via the spartacus plugin of serendipity)

HTH,
Garvin