0

What are the difference & usage benefit between (get & post) method & between (print & echo)?

I tried a lot but fail to understand 😭 Please help me.

19th Feb 2017, 3:32 PM
Crazy_Bug
Crazy_Bug - avatar
1 Answer
+ 1
***not sure if this applies to PHP. but, im working on a website in jsp with java servlets. when you have a form, it should have a method attribute set to get or post, (without this, default is get) this will: post - not show any of the information in the browser url, get - show the info lol username?=enteredtext or something like that. servlet/phpfile? - post - activates the doPost method. im not sure if php from files have these methods.. get - activates the doGet method. thats my expierence with get and post. if it helps then great!! as for the print/echo, its been a long time, from what I remember they have the same functionality... dont quote me on that tho :/ gg
19th Feb 2017, 3:39 PM
Michael Szczepanski
Michael Szczepanski - avatar