sunzfan Posted November 18, 2006 Share Posted November 18, 2006 I know my way around PHP but am not that knowledgeable. I would like to get my webpage to "print" part of the URL. Example:mysite.com/index.php?a=wrd&itm=[b]Gabbled[/b]I would like the bolded word to be printed on the PHP page, where I want it. Is that possible? So that when I change the word itself, the content on the page changes? Link to comment https://forums.phpfreaks.com/topic/27708-getting-part-of-the-url-to-print/ Share on other sites More sharing options...
Adika Posted November 18, 2006 Share Posted November 18, 2006 Yes.Use this where you wanted the bold word to be printed:echo $_GET['itm']; Link to comment https://forums.phpfreaks.com/topic/27708-getting-part-of-the-url-to-print/#findComment-126745 Share on other sites More sharing options...
doni49 Posted November 19, 2006 Share Posted November 19, 2006 [code]<b><?php echo $_GET['itm'];?></b>[/code]OR[code]<?php echo "<b>" . $_GET['itm'] . "</b>";?>[/code] Link to comment https://forums.phpfreaks.com/topic/27708-getting-part-of-the-url-to-print/#findComment-126847 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.