Jump to content

php post method vs php get method for forms


rickcrawley

Recommended Posts

when dealing with web forms like registration forms, login forms, to be the most secure, should i use the php POST method instead of the GET method because GET displays the login info in the url so it's less secure right?

But is it actually possible to make for example an entire login form using the POST method, so a user types in their username and password,sent to server to verify username&password is correct, then redirects user to their account settings page?

 

Can the POST method send and retrieve data? Or can POST only send data and GET is needing to retrieve it?

 

 

POST and GET can do exactly the same things when being processed on the server.

 

The only differences are, the visibility you mentioned and which 'super_global' array, php sees them in.

 

I thought i read that GET enables a user to use the back button on their browser to load from the cache and POST doesn't. Is this true?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.