Solved

how can I get the value members.php?login

Posted on 2003-11-03
2
300 Views
Last Modified: 2008-03-06
Hi,
I just want to know how to get the value without something like members.php?mid=login...
because there's a php code $_GET["mid"] that can get the value for mid but if I want to do this members.php?login
how can I get it?
0
Comment
Question by:kaeonthibe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Expert Comment

by:datr
ID: 9675092
$QUERY_STRING

That will return the string appended to the url so in your case it would be, "?login"
0
 
LVL 6

Accepted Solution

by:
DoppyNL earned 100 total points
ID: 9676618
It's better to use
$_SERVER['QUERY_STRING']
as the one datr says is not available on all servers (depends on configuration); this one is allways available.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question