phpBeginner06 Posted January 11, 2007 Share Posted January 11, 2007 Does anyone know how use stripslashes with a echo in form field, if it has had a variable passed to it thought a text link/url (not passed by form)?I tried this inside the value of my form field:[code]<? echo stripslashes(standardfeatures); ?>[/code]but it just give the field a value of:[quoate]stripslashed(Driver and Passenger Airbags, Air Conditioning, Manufacture\'s Manuals)[/quoate]The variable from the database is actually this:[quoate]Driver and Passenger Airbags, Air Conditioning, Manufacture's Manuals[/quoate]Is there any way to echo or use stripslash for a echo; once a var has been passed from a text link (not a form), without using:[code]@$standardfeature="stripslashes($_GET['standardfeatures'])";[/code] Link to comment https://forums.phpfreaks.com/topic/33789-how-to-use-stripslashes-with-echo-in-form-field/ Share on other sites More sharing options...
phpBeginner06 Posted January 11, 2007 Author Share Posted January 11, 2007 I figured it out - I just was not using "@$standardfeatures = stripslashes($_GET['standardfeatures']);" the right way - Thanks Aways Link to comment https://forums.phpfreaks.com/topic/33789-how-to-use-stripslashes-with-echo-in-form-field/#findComment-158467 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.