Solved

how can I get the value members.php?login

Posted on 2003-11-03
2
299 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with mod_substitute 18 77
How to confirm and grey the submit button using JavaScript ? 14 67
Form submit takes only for one form 23 54
PHP and accessing Array Elements 3 34
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
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 count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

751 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