SV: [PHP-DB] querystring text
| From: | Trond Erling Hundal | Date: | Fri, 04 Jan 2002 14:12:53 +0000 |
| Subject: | SV: [PHP-DB] querystring text | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-15389@lists.php.net to get a copy of this message | ||
U can use urlencode... look it up on php.net
> -----Opprinnelig melding-----
> Fra: Matthew Tedder [mailto:matthew@tedder.com]
> Sendt: 5. januar 2002 00:17
> Til: PHP Mailing List
> Emne: [PHP-DB] querystring text
>
>
>
> 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
>
>