SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: How to show url in php page
-
Feb 24, 2009, 16:14 #1
- Join Date
- Mar 2008
- Posts
- 551
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
How to show url in php page
Hi all,
If the url is mydomain.com/page.php?type=fish
how can I output the text string "fish" in my page (it is just for some wireframing it is really basic). Thank-you
-
Feb 24, 2009, 16:16 #2
print $_GET['type'];
-
Feb 24, 2009, 16:48 #3
- Join Date
- Mar 2008
- Posts
- 551
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thats cool
How do I say
if $_GET['type'];
is something
then set it to a variable? Then I will just echo the result
Thanks Im just moving over from coldfusion to php
-
Feb 24, 2009, 19:06 #4
- Join Date
- Nov 2007
- Posts
- 63
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Umang Parikh
http://www.technotrack.co.nz/
-
Feb 24, 2009, 21:57 #5
echo $_GET['type'];
will output fish
Bookmarks