I am getting a T_STRING error on my page with this code <?php ob_start(); if(isset($_REQUEST[’kw’])) { $kw = preg_replace(’/%20/’,’ ‘,$_REQUEST[’kw’]).â€"; $k1w = urldecode( $_REQUEST[’kw’] ).â€"; } else { $k1w = NULL; } ?> It says that the error is on this line :$kw = preg_replace(’/%20/’,’ ‘,$_REQUEST[’kw’]).â€"; If anyone can help thank you sooo much.
Allow me to re-write your post with better formatting: ---------------------------------------------------- I am getting a T_STRING error on my page with this code ob_start(); if(isset($_REQUEST[’kw’])) { $kw = preg_replace(’/%20/’,’ ‘,$_REQUEST[’kw’]).â€"; $k1w = urldecode( $_REQUEST[’kw’] ).â€"; } else { $k1w = NULL; } PHP: It says that the error is on this line : $kw = preg_replace(’/%20/’,’ ‘,$_REQUEST[’kw’]).â€"; PHP: If anyone can help thank you sooo much. ------------------------------------------------------ No let's see.. You probably noted with this colored code that you have extra double quotes at the end of that line ... { $kw = preg_replace(’/%20/’,’ ‘,$_REQUEST[’kw’]); $k1w = urldecode( $_REQUEST[’kw’] ); } PHP: