Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 18th, 2006, 02:54 AM
Registered User
 
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default $_GET

Hi,

        I want to track an id from the url but there is no varible to hold the value in this case how can I track the value the value(eg: http://www.test.com/index.php?123 in this case i want to track the no 123 from the index page how can I track this).Please help me to find a solution for this.

Thanks
Sudheshna

 
Old February 18th, 2006, 05:22 AM
Registered User
 
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://www.test.com/index.php?123

should be

http://www.test.com/index.php?variablename=123

Then you can refer to it as
$_GET[variablename] your script

so on a page like this

echo $_GET[variablename]; should output 123





Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference b/w $_GET & $_HTTP_GET_VARS ashuphp Beginning PHP 1 April 14th, 2007 08:50 AM
Problems with $_GET and $_POST everetts Beginning PHP 1 March 18th, 2007 03:44 AM
php $_GET samon_18 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 December 24th, 2005 07:39 PM
php _get and undeclared variables wolferd1 Beginning PHP 10 January 23rd, 2005 10:31 PM
How to use $_GET with arrays? pseudo class Beginning PHP 6 November 20th, 2004 02:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.