Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
POST problems fixed?
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- POST problems fixed?
POST problems fixed?
19-03-2010 1:25 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Afternoon guys,
As per the FAQ here.
[quote author="CGI FAQ"]11) My webforms have stopped working
If you have a webform that is reliant on the POST method then you may find that it has stopped working. This is due to way that certain URLs are rewritten on our filesystem and causes problems where the $PHP_SELF or $_SERVER['PHP_SELF'] variables are in use. You'll find more detail about this here. We're hoping to fix this however in the meantime you can use $_SERVER['SCRIPT_URL'] in place of $PHP_SELF or $_SERVER['PHP_SELF'], which should resolve the issue.
After a bit of work, we think this might be fixed now so I'd much appreciated it if those having problems could have a play around with things and let me know how they get on?
As per the FAQ here.
[quote author="CGI FAQ"]11) My webforms have stopped working
If you have a webform that is reliant on the POST method then you may find that it has stopped working. This is due to way that certain URLs are rewritten on our filesystem and causes problems where the $PHP_SELF or $_SERVER['PHP_SELF'] variables are in use. You'll find more detail about this here. We're hoping to fix this however in the meantime you can use $_SERVER['SCRIPT_URL'] in place of $PHP_SELF or $_SERVER['PHP_SELF'], which should resolve the issue.
After a bit of work, we think this might be fixed now so I'd much appreciated it if those having problems could have a play around with things and let me know how they get on?
Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵
Message 1 of 5
(2,550 Views)
4 REPLIES 4
Re: POST problems fixed?
19-03-2010 2:27 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Bob
A Timely post. If this is slightly OT I apologise. I'm doing something I've not done before namely setting up a contact form on a website for my son in law. I'm testing the code using my website www,jdcarea1.org hosted in my web space. The form posts fine and I receive the information but REDIRECT is not working.
I've used the generic script posted here elswhere , modifying the form code to point to it. However I get a generic redirect page rather than the formatted page I specified.
Having seen references to redirect not working in other topics what is the current state of play?
Thanks for any help
David.
A Timely post. If this is slightly OT I apologise. I'm doing something I've not done before namely setting up a contact form on a website for my son in law. I'm testing the code using my website www,jdcarea1.org hosted in my web space. The form posts fine and I receive the information but REDIRECT is not working.
I've used the generic script posted here elswhere , modifying the form code to point to it. However I get a generic redirect page rather than the formatted page I specified.
Having seen references to redirect not working in other topics what is the current state of play?
Thanks for any help
David.
Message 2 of 5
(534 Views)
Re: POST problems fixed?
19-03-2010 3:53 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Bob [quote author="CGI FAQ"]11) My webforms have stopped working
If you have a webform that is reliant on the POST method then you may find that it has stopped working. This is due to way that certain URLs are rewritten on our filesystem and causes problems where the $PHP_SELF or $_SERVER['PHP_SELF'] variables are in use.…
After a bit of work, we think this might be fixed now so I'd much appreciated it if those having problems could have a play around with things and let me know how they get on?
Using $_SERVER['PHP_SELF'] does work now, though /~username appears in the URL shown in the browser address window after form submission - perhaps not what users would like to happen.
David
David
Message 3 of 5
(534 Views)
Re: POST problems fixed?
20-03-2010 2:28 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote Bob
A Timely post. If this is slightly OT I apologise. I'm doing something I've not done before namely setting up a contact form on a website for my son in law. I'm testing the code using my website www,jdcarea1.org hosted in my web space. The form posts fine and I receive the information but REDIRECT is not working.
I've used the generic script posted here elswhere , modifying the form code to point to it. However I get a generic redirect page rather than the formatted page I specified.
Having seen references to redirect not working in other topics what is the current state of play?
Thanks for any help
Bob
Ignor my drivel above. Just proving my numpty status

The word is syntax not Syntax - Heh Ho, I've fixed it any way

Thanks
Message 4 of 5
(534 Views)
Re: POST problems fixed?
21-03-2010 10:48 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I like it.
There's a neat bit of scripting behind that fix. The /~username in the url isn't ideal, particularly with a hosted domain, but an unfixed trailing slash does the same. The fix restores functionality, giving users the chance to fix any rogue variables while a site works rather than while it doesn't.
Gabe

Gabe
Message 5 of 5
(534 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page