Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Getting a value out of the URL

Posted on 2002-04-02
1
Medium Priority
?
169 Views
Last Modified: 2006-11-17
Hello,

If the URL is www.yourdomain.com?id=54, how do I get the value of id?

Thanks
0
Comment
Question by:ftbadolato
1 Comment
 
LVL 5

Accepted Solution

by:
andriv earned 100 total points
ID: 6913899
Just use the variable name:

print($id);

or by using globals

print($HTTP_GET_VARS['id']);
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
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.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

783 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