Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Information to second page with the 'get' method

Status
Not open for further replies.

michelleqw

Programmer
Joined
Jan 4, 2004
Messages
120
Location
DE
Dear php users,

We want to send, when we open a second page, information from the first page to the second page.

There are two methods to send information: 'get' and 'post'. On the internet we can't find any source code, can someone give us some code of 'get' method for the 'calling page' and the 'receiving page'.

Nice regards,

Michelle.
 
hellow..

lets make an example when a user clicks on a link we send a var to the second page.

it is verry easy.

first page.

<a href="secondpage.php?color='green'>green</a>
<a href="secondpage.php?color='red'>red</a>
<a href="secondpage.php?color='blue'>blue</a>

on second page we can do this

<?php
echo $_GET['color'];
?>

hope this solves some problems..

tank you,

(>" "<)
(='o'=)
-(,,)-(,,)------------------------------
LORD_GARFIELD
---------------------------------------
 
thanks for the information.

Michelle.
 
Hi LordGarfield,
I think you should write an faq on this subject as your explanation was perfect. I have searched for the answer to this question through tutorials and pd files for about 4 hours now so I will give you a star. I haven’t been using php for long so it didn’t occur to me to use the super global POST. thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top