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 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 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 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 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 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.