Web Development

What is the difference between GET and POST?

I’ve actually been asked this question in interviews before and knowing when to use either GET or POST is a fundamental tool for web developers.

GET and POST variables using PHP, the lazy way

If you want to catch form variables in $<variable name> format instead of the $_GET['variable name'] or $_POST['variable name'] format, just call import_request_variables() at the start of your script and supply either a ‘p’ or a ‘g’ argument for post or get respectively.  Kind of nice for those lazy programmer out there.

Syndicate content