06-03-2008, 07:34 PM
|
#8 (permalink)
|
|
The Contributor
Join Date: May 2008
Location: Denmark
Posts: 70
Thanks: 3
|
GET and POST are different methods of sending user input to the server, GET is values in the url like:
Code:
http://example.com/?get=this
You can call it whatever you want it is very easy to manipulate.
POST on the other is a bit more complicated but indeed possible to manipulate, but if you know some basic PHP you will be able to secure your self. But POST is the most popular way of sending form data into a PHP script.
A simple code snippet with POST...
PHP Code:
<?php if (isset($_POST['submit'])) { echo('You submitted'); } ?> <form action="" method="post"> <input type="submit" name="submit" value="submit" /> </form>
That is the basic things about GET and POST :)
|
|
|
|