Page 1 of 1

how pass runtime parameters to href ?

Posted: Fri Mar 30, 2007 2:55 am
by rekha_harnoor
Hi All,

In my single html form I am using post method I have two text fields category and searchtext.

after clicking submit buttom I am calling a.php(which workd fine). After clicking the compare hyperlink I want call b.php and I want to pass the values of category and searchtext. Please tell me how to do that?

[textfield Category][textfield searchtext] [submit button] [compare hyperlink]

Posted: Fri Mar 30, 2007 3:18 am
by s.dot

Code: Select all

echo '<a href="b.php?value=1'.$value1.'&value2='.$value2.'">click</a>';