Re: How to trim parameters and give them a prefix?



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


.



Relevant Pages

  • Re: [PATCH] fix tulip suspend/resume
    ... >>safer, because it handle the IRQ correctly. ... be cleaner this way and someone is willing to confirm that it still works, ... then we can change it to the patch below. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Greener, cleaner and safer roads
    ... Well I have had an email from Dave... ... We want to have cleaner, safer, greener cities. ...
    (uk.rec.cycling)
  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)
  • Re: ot: what vehicles do you have?
    ... Cleaner, safer, and cheaper than a car. ...
    (comp.sys.mac.advocacy)
  • Petty mathematicians
    ... I've discovered that today's mathematicians don't care about how ... important a mathematical discovery is, ... there are no amateur mathematicians of note. ... The reality is that today's professional mathematicians simply refuse ...
    (sci.physics)

Loading