Jump to content

get_magic_quotes_gpc interferring


DJTim666

Recommended Posts

I am outputting information in a text box the following way;

 

<?php
$findInfo = mysql_query ("SELECT * FROM `table_name` WHERE `id` = '$var'");
$row = mysql_fetch_array ( $findInfo );

echo "<form action='somescript.php' method='post'>
<input type='text' name='title' value='" . stripslashes ( $row['title'] ) . "' />
</form>";

?>

 

Now when I output using stripslashes(or no stripslashes) I can't see the whole topic name because it is cut off when someone has a ' in the topic. Is there any other way to output something so the users will see just a single quote without the backslash?

 

--

DJ

Link to comment
https://forums.phpfreaks.com/topic/81876-get_magic_quotes_gpc-interferring/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.