johnnyboy16 Posted February 9, 2010 Share Posted February 9, 2010 Hello, I'm just starting to learn PHP. Can someone please help me with putting the stripslashes function into my page title tag. <title>Johnny's- <?php echo get_page_title();?></title> Thank you in advance. Link to comment https://forums.phpfreaks.com/topic/191430-stripslashes-help/ Share on other sites More sharing options...
thewooleymammoth Posted February 9, 2010 Share Posted February 9, 2010 yea... it would go like this <?php echo strip_slashes($get_page_title); ?> [code] but using a get for the page title is a pretty bad idea. or really echoing out just about anything a user can give you is a bad idea. start with strip_tags(); if you have too. your gonna wanna look up a tutorial on validating user input. Link to comment https://forums.phpfreaks.com/topic/191430-stripslashes-help/#findComment-1009193 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.