premcov Posted February 20, 2010 Share Posted February 20, 2010 I just want to know how to echo g=TEXTHERENOW on site,to put it in title Like this: http://www.sharingzone.net/?r=55778&q=TEXTHERENOW Quote Link to comment https://forums.phpfreaks.com/topic/192746-php-help-with-_get/ Share on other sites More sharing options...
-twenty Posted February 20, 2010 Share Posted February 20, 2010 To pass variables in your URL, and then use them in the page can be done like so: URL with variable:http://www.yourdomain.com/index.php?title=texthere Echo on the page (as the title, in your case): <title><?php echo $_GET['title'] ?></title> Quote Link to comment https://forums.phpfreaks.com/topic/192746-php-help-with-_get/#findComment-1015342 Share on other sites More sharing options...
premcov Posted February 20, 2010 Author Share Posted February 20, 2010 Can you give me more detailed php code Thanks Quote Link to comment https://forums.phpfreaks.com/topic/192746-php-help-with-_get/#findComment-1015348 Share on other sites More sharing options...
premcov Posted February 20, 2010 Author Share Posted February 20, 2010 For text to get it via $_GET variable Quote Link to comment https://forums.phpfreaks.com/topic/192746-php-help-with-_get/#findComment-1015350 Share on other sites More sharing options...
-twenty Posted February 20, 2010 Share Posted February 20, 2010 What kind of detail are you looking for? If you wanted to echo it... <?php echo $_GET['varname']; ?> Quote Link to comment https://forums.phpfreaks.com/topic/192746-php-help-with-_get/#findComment-1015361 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.