#1
  1. No Profile Picture
    jfleoni
    Guest
    Devshed Newbie (0 - 499 posts)
    hi, (sorry for my english i'm french)
    i have to pass a parameter from a page to another ...it is ok for a word whithout space .... but i have in my database word with space (exemple : San francisco) ....when i pass the parameter i have only san ....and not san francisco ...how can i do ??
    tx
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 1999
    Posts
    114
    Rep Power
    16
    If you're trying to pass the values in the querystring of the URL, then you need to use URL encoding. The urlencode() and rawurlencode() functions handle this:

    http://www.php.net/manual/fr/function.urlencode.php
    http://www.php.net/manual/fr/function.rawurlencode.php


    The spaces need to be converted to either "%20" (preferred) or "+" (historical).

    Christopher

    [This message has been edited by scollo (edited November 20, 2000).]

IMN logo majestic logo threadwatch logo seochat tools logo