Thursday 17th May 2012Login | Register
Pages: [1]

POST problems fixed?

« on 19/03/2010, 13:25 »
Afternoon guys,

As per the FAQ here.

Quote from: 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 Digital Care
Service Status :: RSS :: Email
Twitter :: Facebook :: Plusnet Assist
Logged
« Reply #1 on 19/03/2010, 14:27 »
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.   
Logged
  • spraxyt
  • Usergroup Member
  • *
  • Posts: 4678
  • View Profile
« Reply #2 on 19/03/2010, 15:53 »
Quote from: 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
Logged
« Reply #3 on 20/03/2010, 14:28 »
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 Embarrassed

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

Thanks

 
Logged
  • Gabe
  • Bright Spark
  • *
  • Posts: 548
  • (I reserve the right to be dim on a regular basis)
  • View Profile
« Reply #4 on 21/03/2010, 22:48 »
I like it.  Smiley 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
Logged
Pages: [1]
Jump to:  

Related Sites

Community Apps

Here at Plusnet we're always trying to use clever open source things to make our lives easier. Sometimes we write our own and make other people's lives easier too!

View the Plusnet Open Source applications page

About Plusnet

We're a Yorkshire-based provider selling broadband and phone services to homes and businesses throughout the UK. Winner of the ISPA 2010 'Best Consumer Customer Service ISP' Award, we're proud to offer the UK's best value standalone broadband.

© Plusnet plc All Rights Reserved. E&OE

Powered by SMF | SMF © 2006-2008, Simple Machines LLC

Add to Technorati Favourites