johnnyboy16 Posted March 3, 2010 Share Posted March 3, 2010 I'm new to php and need some help with stripslashes for the titles and names on these 3 different lines of code. I've looked online and have tried various different approaches but I keep getting syntax errors. I'm hoping someone can take a few minutes to help me out? <title>John - <?php echo get_page_title();?></title> echo "<h1 style='color: #0066FF; padding-bottom: 14px; padding-top: 1px; font-size: 18px'>".$n_row['Name']."</h1>"; Name: ".$_POST['name']."\r\n Thank you so much in advance! Link to comment https://forums.phpfreaks.com/topic/194029-stripslashes-help/ Share on other sites More sharing options...
wildteen88 Posted March 3, 2010 Share Posted March 3, 2010 Just wrap the function around the variable you want to alter. Example $var = stripslashes($_POST['name']); Documentation on stripslashes. Link to comment https://forums.phpfreaks.com/topic/194029-stripslashes-help/#findComment-1021017 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.