Log In
Sign Up
Why Join Hot Scripts?
Hot Scripts
All Categories
PHP
Python
Tools & Utilities
XML
Ruby on Rails
Ajax
Web Hosting
ASP
ASP.NET
C & C++
CFML
Flash
Java
JavaScript
CGI & Perl
HTML5
Forums
Blog
Scripts
Hosted Apps
Plugins
Design Templates
Forum
Blog
Advertise
Contact Us
Register
FAQ
Rules
Calendar
Search
Today's Posts
Mark Forums Read
RSS Feeds
Current location:
Hot Scripts Forums
»
Programming Languages
»
PHP
» .php?id=xxx
.php?id=xxx
LinkBack
Thread Tools
Display Modes
#
1
(
permalink
)
04-22-05, 08:14 PM
skinner
New Member
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
.php?id=xxx
Hi!
As the title suggests, I need to send a variable to another page when loding it.
page "A" looks a bit like this:
PHP Code:
blablabla
<?php
echo
'<a href ="pageB.php?id='
.
$id
.
'">link</a>'
;
?>
The question is, how do i access "id" from the URL, when loading pageB.php?
Thanks!
edit: Nevermind, i found it
Last edited by skinner; 04-22-05 at
08:31 PM
.
skinner
View Public Profile
Find all posts by skinner
#
2
(
permalink
)
04-22-05, 10:39 PM
alabaster_lynch
Wannabe Coder
Join Date: Mar 2005
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
you would call it like this
$variable = $_GET['id'];
alabaster_lynch
View Public Profile
Find all posts by alabaster_lynch
#
3
(
permalink
)
04-23-05, 01:02 AM
Nitin Gupta
Newbie Coder
Join Date: Oct 2004
Location: India
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
you can also use
$_REQUEST['id'] here.
__________________
Web Application Development at InExpensive Prices
CPanel Based Web Hosting, Daily Backups, 24x7 Support for as low as $2.95
Contextual Advertisement Network, Get $50 Free Credits for signing up as Advertiser.
Get Paid to Blog
Nitin Gupta
View Public Profile
Visit Nitin Gupta's homepage!
Find all posts by Nitin Gupta
Bookmarks
Digg
del.icio.us
StumbleUpon
Google
«
SQL help...please
|
Do PHP can make a user base update web site whitout Database?
»
Currently Active Users Viewing This Thread: 1
(0 members and 1 guests)
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
Off
HTML code is
Off
Trackbacks
are
On
Pingbacks
are
On
Refbacks
are
On
Forum Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
General Community
Announcements
Polls
The Lounge
New Members & Introductions
Script Requests
HotScripts.com Discussion
Hot Scripts Forum Questions, Suggestions and Feedback
General HotScripts Site Discussion
HotScripts Site Bug Reports
General Web Coding
HTML/XHTML/XML
HTML5
JavaScript
CSS
Flash & ActionScript
Programming Languages
PHP
Perl
ASP
ASP.NET
C/C++
Visual Basic
Windows .NET Programming
Everything Java
Other Languages
Other Discussions
Web Servers
Database
Other Topics
Web Design
API
Frameworks
AJAX
Security
Server Administration
Portable Device Programming
Cloud Computing
Ruby on Rails
CFML
Python
Tools and Utilities
Remotely Hosted
Web Hosting
Advertising Forums
General Advertisements
Job Offers & Assistance
Traffic Exchange
Website Reviews
Web Hosting Talk
DBForums.com
All times are GMT -5. The time now is
06:40 AM
.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Share on Facebook
Share on Stumble Upon
Share on Twitter