2kanman Posted March 15, 2010 Share Posted March 15, 2010 hey i have made a search engine and I would like the title to be what the user searched. I tried "<title>'$search'</title"; but that doesn't seem to work. Please help I need it fairly urgently! Link to comment Share on other sites More sharing options...
boen_robot Posted March 15, 2010 Share Posted March 15, 2010 Try echo '<title>', $search, '</title>'; or echo "<title>$search</title>"; Link to comment Share on other sites More sharing options...
ccpokerd Posted March 15, 2010 Share Posted March 15, 2010 Tryecho '<title>', $search, '</title>'; or echo "<title>$search</title>"; both of these should work fine, if you're working in an html document though, and not echo-ing each line of html through phptry<title><?=$search?></title>or if your server doesn't support it<title><? echo $search; ?></title> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.