Jump to content

php/html form method = post comes as a get


Gazley
 Share

Recommended Posts

Hi there,

I have a standard (non-FormBuilder) form on a PW page with its method set to 'post'. When it hits the server, the request method shows 'get'. Suffice to say, there are no post variables and I need them! :)

The form markup looks absolutely fine. The only thing about this page is that its template allows URL segments.

Any ideas why this form comes through as a 'get' when it's clearly a 'post'?

Thanks.

Link to comment
Share on other sites

Hi Martijn,

Even though I hadn't spelled "method" incorrectly, your suggestion forced me to look very closely at the form. I noticed that the action value was

action="/booking"

It was redirecting because it didn't have a trailing slash and coming back as a GET :)

Yay!!

Cheers :D

  • Like 4
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...