Page 1 of 1

Passing values on Links

Posted: Fri Apr 04, 2003 11:37 pm
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

Posted: Sat Apr 05, 2003 9:49 pm
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.