[SOLVED] Problem with the Single quotation~!!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kevin7
Forum Commoner
Posts: 96
Joined: Fri May 21, 2004 6:54 am

[SOLVED] Problem with the Single quotation~!!!

Post by kevin7 »

i've a textbox for people to fill some description...
i type in the following text...
i've a pen!
then, as usual, i get the data with... and store it into the mysql database..

Code: Select all

$text = $_REQUEST['text'];
the problem is, when i display it, it shown:
i''ve a pen!
... arrr... this is the problem i always face with... how to solve that so the "\" won't display...

thank you!
Last edited by kevin7 on Fri Aug 13, 2004 9:26 am, edited 1 time in total.
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post by Draco_03 »

2 link to help you out
Magic quote
Stripslash
kevin7
Forum Commoner
Posts: 96
Joined: Fri May 21, 2004 6:54 am

Post by kevin7 »

thank you!!
Post Reply