HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Variable from URL
Post new topic   Reply to topic    HTML Help Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Cheeze



Joined: 09 Apr 2006
Posts: 12

PostPosted: Fri Dec 08, 2006 9:01 am     Variable from URL Reply with quote

i am writing a script that displays a memberes details and it would be very good if i knew how to draw a Variable to a url

so if i went to ...urltest.php?text=pie

it would say pie...
leeogrady



Joined: 11 Dec 2006
Posts: 6

PostPosted: Mon Dec 11, 2006 7:28 am     Reply with quote

After you have navigated to the web page ie 'urltest.php?text=pie'

to retrieve it you would use $_GET['text']

as an example:
Code:

Variable = $_GET['text'];
echo Variable;
Cheeze



Joined: 09 Apr 2006
Posts: 12

PostPosted: Mon Dec 11, 2006 10:03 am     Reply with quote

well i already found out, but thanks anyway
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial