Passing values on Links

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Shantanu
Forum Newbie
Posts: 8
Joined: Wed Apr 02, 2003 11:15 pm

Passing values on Links

Post by Shantanu »

Dear all,
Need ur help again!!!!!!!!

I have 2 PHP pages page1.php and page2.php
Page2 is like a search screen,where the records from the database are listed in 3 columns in <table> tag.
column 4 of each row is a link to page1.
On the click of this link,I need to set the values in the corresponding row on to the textfields on page1.

Thx in advance.........

Shantanu
Malder
Forum Newbie
Posts: 13
Joined: Wed Mar 19, 2003 11:09 pm

Post by Malder »

if understood correct, what you need is to pass into page1 some parameters, that should know values of textfields. And than using isset()

Code: Select all

page1
<a href="page1.htm?textfield1='true'"></a>

page2
<input name="textfield1" 
<? if isset($_GET&#1111;'textfield1']) echo "value="&#123;$_GET&#1111;'textfield1']&#125;""?>
>
That is approximate code.
Post Reply