#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Hong Kong
    Posts
    73
    Rep Power
    15
    I was trying to add some parameter to a html file.

    eg.
    http://www.test.com/index.html?name=<? echo $username; ?>


    where the $username stored "david beckham"

    how to I output "david beckham" as "david+beckham" ?

    which function can I use?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Location
    Annapolis, Maryland US
    Posts
    113
    Rep Power
    16
    urlencode()

Similar Threads

  1. question on string comparison in SELECT statements
    By akumasama in forum MySQL Help
    Replies: 1
    Last Post: February 10th, 2004, 08:50 PM
  2. Simple search modifer question
    By Optimum in forum PHP Development
    Replies: 5
    Last Post: February 7th, 2004, 07:00 PM
  3. (hopefully) simple SQL in java servlet question
    By djstyli in forum Java Help
    Replies: 3
    Last Post: February 5th, 2004, 08:58 PM
  4. array explode ( string separator, string string [, int limit])
    By beemee_freeserv in forum HTML Programming
    Replies: 4
    Last Post: February 5th, 2004, 11:56 AM
  5. Simple question regarding string evaluation
    By Lobsang in forum PHP Development
    Replies: 3
    Last Post: February 3rd, 2004, 03:28 PM

IMN logo majestic logo threadwatch logo seochat tools logo