Re: How to trim parameters and give them a prefix?
- From: "Thomas Mlynarczyk" <thomas@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 21 May 2007 21:02:40 +0200
Also sprach damezumari:
// trim the parameters
foreach($_POST as $varname => $value) {$varname = trim($value);}
foreach ( $_POST as $varname => $value ) { $_POST[$varname] = trim(
$value ); }
import_request_variables('gp', 'p_');
Why? It's simpler, cleaner and safer to work with $_GET / $_POST directly.
Greetings,
Thomas
.
- Follow-Ups:
- References:
- How to trim parameters and give them a prefix?
- From: damezumari
- How to trim parameters and give them a prefix?
- Prev by Date: Re: Capture the current page(url) into a variable?
- Next by Date: Re: How to trim parameters and give them a prefix?
- Previous by thread: How to trim parameters and give them a prefix?
- Next by thread: Re: How to trim parameters and give them a prefix?
- Index(es):
Relevant Pages
|
Loading