If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > GET and POST methods

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-08, 08:01
sujith.it sujith.it is offline
Registered User
 
Join Date: Jul 2008
Posts: 4
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 08:20.
Reply With Quote
  #2 (permalink)  
Old 07-23-08, 08:56
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,084
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 08-11-08, 11:12
vivek_asc vivek_asc is offline
Registered User
 
Join Date: Aug 2008
Posts: 2
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
Reply With Quote
  #4 (permalink)  
Old 08-12-08, 04:34
mrrsx2006 mrrsx2006 is offline
Registered User
 
Join Date: Aug 2008
Posts: 3
Use PHP.net, i always use that to clarify what commands are about.
Reply With Quote
  #5 (permalink)  
Old 09-04-08, 16:38
renan.cuoghi renan.cuoghi is offline
Registered User
 
Join Date: Sep 2008
Posts: 10
get you work on url
Ex:
www.dbforums.com/id=30
in php for get value in url $_GET['id']

<?php
$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">
</form>

"post.php"

<?php
$post_value = $_POST['text_post'];
echo "Post = " . $post_value;
?>

Result is:

Post = 'Value of Input text'
Reply With Quote
  #6 (permalink)  
Old 09-25-08, 08:18
Mitexi Mitexi is offline
Registered User
 
Join Date: Jul 2008
Posts: 13
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.
__________________
free web templates................website design
free flash templates...............website design company
Reply With Quote
  #7 (permalink)  
Old 06-22-09, 17:04
junction4seo junction4seo is offline
Banned
 
Join Date: Jun 2009
Posts: 7
awesome posting here i got more design information thanks to all
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On