#1
  1. No Profile Picture
    kumars
    Guest
    Devshed Newbie (0 - 499 posts)
    one of my php3 page passes values to another php3 page.

    "www.pricelane.com/searchit.php3?variable=value"

    What are the commands to get/process the passed value?


    both the scripts or PHP3.

    Any help is appreciated.
  2. #2
  3. No Profile Picture
    scollo
    Guest
    Devshed Newbie (0 - 499 posts)
    The value will automatically be available to your script as a variable.

    With the URL:

    www.pricelane.com/searchit.php3?variable=value

    The "searchit.php3" script will automatically have a variable called "$variable" whose value will be "value".

    PS - If the value that you are passing is generated by user input, make sure you use the function urlencode() for your query string and the function addslashes() for your database query.

    $url = "www.pricelane.com/searchit.php3?variable=" . urlencode(value);

    For more info:
    urlencode():
    http://www.php.net/manual/ref.url.php3
    addslashes():
    http://www.php.net/manual/ref.strings.php3


Similar Threads

  1. Replies: 10
    Last Post: February 9th, 2004, 09:51 AM
  2. Apache Error : Unable to fork new process??
    By Nicolino07 in forum Apache Development
    Replies: 0
    Last Post: February 5th, 2004, 11:14 AM
  3. How to kill child process when father dies?
    By ba_nesto in forum Perl Programming
    Replies: 6
    Last Post: December 31st, 2003, 05:15 AM
  4. Replies: 3
    Last Post: October 8th, 2003, 12:52 AM
  5. Replies: 1
    Last Post: July 26th, 2003, 05:53 PM

IMN logo majestic logo threadwatch logo seochat tools logo