Welcome to WebmasterWorld Guest from 54.227.110.209

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

simple php question, retrieving form post values

     

topr8

9:32 am on Aug 11, 2005 (gmt 0)

WebmasterWorld Senior Member topr8 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



using php 4.3.1

i have form values that are being posted to a second page for processing, it is for a db insert so i need to escape some characters...

however it seems that php is automatically escaping the characters, is this correct is there some module that may be loaded that is doing this automatically?

so for example i'm submitting ...

field1>> text in field one includes "quote and \slash characters

if on the receiving page i write it to the page

echo $field1;

it writes...

text in field one includes \"quote and \\slash charaters

i'm perplexed, but not unhappy with this, with asp i had to pass the variables through functions to escape cerain characters, how is this happening here without doing so?

Paul in South Africa

9:39 am on Aug 11, 2005 (gmt 0)

10+ Year Member



Magic Quotes are enabled in your PHP installation.

What are Magic Quotes [us2.php.net]

topr8

9:42 am on Aug 11, 2005 (gmt 0)

WebmasterWorld Senior Member topr8 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



great thanks for that, very handy.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month