Flying Sagittarius Posted June 13, 2008 Share Posted June 13, 2008 <form method="post" action="rpadd.php"> <textarea cols="75" rows="5" name="rpadd"></textarea> I input "This doesn't work because PHP's not doing something." into the text area, then I execute: <?php echo $_POST["rpadd"] ?> The output is: "This doesn/'t work because PHP/'s not doing something." How can I erase the slashes? Link to comment https://forums.phpfreaks.com/topic/110009-php-adds-a-before-all-quotes-and-double-quotes/ Share on other sites More sharing options...
bluejay002 Posted June 13, 2008 Share Posted June 13, 2008 slashes can be inserted using addslashes()... and removed using stripslashes(). Link to comment https://forums.phpfreaks.com/topic/110009-php-adds-a-before-all-quotes-and-double-quotes/#findComment-564527 Share on other sites More sharing options...
Flying Sagittarius Posted June 13, 2008 Author Share Posted June 13, 2008 Thanks, that works. Link to comment https://forums.phpfreaks.com/topic/110009-php-adds-a-before-all-quotes-and-double-quotes/#findComment-564532 Share on other sites More sharing options...
bluejay002 Posted June 13, 2008 Share Posted June 13, 2008 anytime Link to comment https://forums.phpfreaks.com/topic/110009-php-adds-a-before-all-quotes-and-double-quotes/#findComment-564533 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.