var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: GET and POST methods
GET and POST methods
Does anyone know exactly when to use the GET and when to use the POST methods, why and why not?
Thanks in advance.
Links removed - pootle flump
Last edited by pootle flump; 07-23-08 at 07:20.
use of get and post
whenever u will use post method it will send all the information of form but will not display on url
but when u will use get method it will pass all the info in url
Use PHP.net, i always use that to clarify what commands are about.
get you work on url
in php for get value in url $_GET['id']
$id = $_GET['id'];
echo 'Id is: ' . $id;
Result is :
Id is: 30
in post you send a value of input in a form for the page in the action
<form method="Post" action="post.php">
<input type="text" name="text_post">
<input type="submit" name="Send">
$post_value = $_POST['text_post'];
echo "Post = " . $post_value;
Post = 'Value of Input text'
difference is that information sent from a form with get method is visible to everyone. it means this will be visible in get method. but in post method the information will not visible to everyone.
awesome posting here i got more design information thanks to all