www.webdeveloper.com
Results 1 to 4 of 4

Thread: How to retrieve POST variables?

  1. #1
    Join Date
    Jan 2010
    Posts
    57

    How to retrieve POST variables?

    Ive got a page that posts:
    submitDirections
    submitSteps
    submitLocations
    submitVehicle
    submitPrice
    submitDistance
    and need to display them on another page?

    What is the easiest and quickest way to do this?

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Server-side scripting
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Nov 2009
    Posts
    61
    Use php, its really easy to retreive:

    PHP Code:
    $_POST['submitDirections'
    see how easy that was?

  4. #4
    Join Date
    Feb 2010
    Posts
    6
    Usually, coders follow this format:

    PHP Code:
    $variable $_POST['variable']; 
    OR

    PHP Code:
    $variable $_GET['variable']; 
    ...for your "get" variables.

    So you may want to state:

    PHP Code:
    $submitPrice $_POST['submitPrice'];
    echo 
    'The price submitted was: ' $submitPrice
    Hope This Helps!

    - Josh
    Need A Drinking Fountain?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles