| Post |
|
Guest
| Butch 7:33 am July 23, 2008
| |
|
|
First off thanks for an awesome plugin. There is so much functionality that I have found new uses for (in my brain at least). So here is the issue. I have the newest of everything and the form works properly when it is in a wordpress post but not on a wordpress page. Under my Wordpress settings > Reading > Front page dispays > I have this set to Your latest post. (to display much like a blog) And when trying to compelte the form which is my page URL – http://www.picsforyourdecor.com/?page_id=14. when submitting the form it produces the URL – http://www.picsforyourdecor.com/index.php#usermessage3a which takes me to my homepage (where the blog posts are made). It does not give me a your message has been sent (and no email comes to the email address). After playing with this a little more, I did change my wordpress Settings> Reading >Front page displays> and set this to Front Page (and selected my Contact Page) and everything worked great. I received the Thanks for submitting message and everything. The only issue is I don't want the contact page to be the home page….
Just some more info, I am using the 3rd created form and under the form options I have verified the re-direct option is set to disabled.
I did do some searching I was unable to find anything on this from what I was search (maybe I was using the wrong terms). Any help is appreciated.
|
|
|
Admin
| Oliver Munich, Germany posts 6096 7:59 am July 23, 2008
| |
|
|
It should work properly in all cases, the anomaliy I see is that the form action points on this page:
http://www.picsforyourdecor.com/?page_id=14
points to:
action="/index.php#usermessage3a"
which then reroutes to the home page.
This is the code line in cforms.php that's assembling the above URL:
$action = $_SERVER['REQUEST_URI'] . '#usermessage'. $no . $actiontarget;
So I think that your server (IIS I suppose) doesn't properly set $_SERVER['REQUEST_URI'].
- Can you try SCRIPT_NAME instead of REQUEST_URI ?
|
|
|
|
|
Guest
| Butch 9:05 am July 23, 2008
| |
|
|
I am way past my bedtime on this one, but I did attempt to repalce REQUEST_URI with SCRIPT_NAME on the line of code shown above, to no avail. (below is what I changed it to).
$action = $_SERVER['SCRIPT_NAME'] . '#usermessage'. $no . $actiontarget;
For kicks and giggles I disabled the upload function and there are no issues with the form submitting. When I turn upload feature back on (even trying to uplaod a very small txt file) It re-directs me to my home page (without the thanks for commenting note).
Thanks for your help and I will keep messing with this in about 18 hrs or so once I get off tomorrow. Thanks. I am a noobie so if I followed your reuqest wrong let me know. Thanks.
|
|
|
Admin
| Oliver Munich, Germany posts 6096 7:12 am July 24, 2008
| |
|
|
but I did attempt to repalce REQUEST_URI with SCRIPT_NAME on the line of code shown above
that should've done it.
For kicks and giggles I disabled the upload function and there are no issues with the form submitting. When I turn upload feature back on (even trying to upload a very small txt file) It
right, since no page refresh is needed when using Ajax. Ajax however is not supported (by web standards!) when uploading files, so it has to do a page refresh (redirect in your case).
Is there any difference when you have WP permalinks turned on?
I sent you an email.
|
|
|
|
|
Admin
| Oliver Munich, Germany posts 6096 7:00 am July 25, 2008
| |
|
|
Indeed, your IIS server does not set the parameters of its $_SERVER array correctly, they all point to index.php instead the actual URL.
I'm no an ISS expert, so here are two pages I googled which ought to help you narrow down the issue:
general index.php removal suggestion
wordpress specific I
wordpress specific II
I've commented out this line:
// echo "<!–".print_r($_SERVER,1)."–>";
But use it, to see if any of the variables eventually contain the proper URL.
|
|
|
|
|
Guest
| Butch 8:21 am July 25, 2008
| |
|
|
Thanks I will test and get back.
|
|