Welcome to WebmasterWorld Guest from 34.201.121.213

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

simple php question, retrieving form post values

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

Senior Member

WebmasterWorld Senior Member topr8 is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 19, 2002
posts:3479
votes: 76


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?

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

Junior Member

10+ Year Member

joined:Jan 9, 2003
posts:180
votes: 0


Magic Quotes are enabled in your PHP installation.

What are Magic Quotes [us2.php.net]

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

Senior Member

WebmasterWorld Senior Member topr8 is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 19, 2002
posts:3479
votes: 76


great thanks for that, very handy.