Re: querystring text

From: Date: Fri, 04 Jan 2002 15:11:11 +0000
Subject: Re: querystring text
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-15393@lists.php.net to get a copy of this message
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: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#15393) next »