johnseito Posted June 29, 2008 Share Posted June 29, 2008 I am wondering why we use stripslashes on some of our codes? Is is b/c when we input info from userform the datas that we inputted going into a database is automatically add slashes to some of the words. so to get the data from the database to come out correct we need to use stripslashes? If I am wrong please explain and some code examples would be great. thanks, Link to comment https://forums.phpfreaks.com/topic/112493-stripslashes/ Share on other sites More sharing options...
trq Posted June 29, 2008 Share Posted June 29, 2008 Stripslashes should really only be needed if you wish to display form data that has automatically had addslashes run on it via magic quotes being enabled. Also if magic quotes are enabled its a good idea to remove slashes prior to doing any manual escaping. Link to comment https://forums.phpfreaks.com/topic/112493-stripslashes/#findComment-577619 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.