Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2008
    Posts
    4

    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 08:20.

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002

  3. #3
    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

  4. #4
    Join Date
    Aug 2008
    Posts
    3
    Use PHP.net, i always use that to clarify what commands are about.

  5. #5
    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'

  6. #6
    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.

  7. #7
    Join Date
    Jun 2009
    Posts
    7
    awesome posting here i got more design information thanks to all

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •