rawurlencode() does this trick. Matthew Tedder wrote:
> Quick question for anyone who knows, > > Is there a PHP function to make data safe for sending in the query string? > > $var = "something or other"; > > // TODO: What is function to translate $var for querystring compatibility? > > print "<a href=\"http://yada.com/index.php?var=$vardata&othervar=whatever\"> > Yada</a>"; > > --Matthew > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]