We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,151 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How to parsed the link using PHP ?

In the address bar, i am getting the clean URL. I want to parsed it out.please
help me out.

http://example.com/folder/test.php?stuid=xx44

4
Contributors
3
Replies
7 Hours
Discussion Span
1 Year Ago
Last Updated
4
Views
jacksantho
Junior Poster
169 posts since Feb 2011
Reputation Points: 7
Solved Threads: 0
Skill Endorsements: 0

You can use parse_url function: http://php.net/manual/en/function.parse-url.php
bye.

cereal
Veteran Poster
1,145 posts since Aug 2007
Reputation Points: 344
Solved Threads: 222
Skill Endorsements: 22

or you could just use the builtin $_GET array. in your example it would be:

$_GET['stuid'];
hag++
Junior Poster
197 posts since Jan 2010
Reputation Points: 34
Solved Threads: 31
Skill Endorsements: 0

what do you mean by parsed out? you mean how to get the value? then use @hag++ code, use $_GET

vaultdweller123
Posting Pro
574 posts since Sep 2009
Reputation Points: 47
Solved Threads: 81
Skill Endorsements: 2

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0693 seconds using 2.67MB