how pass runtime parameters to href ?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
rekha_harnoor
Forum Commoner
Posts: 32
Joined: Mon Feb 19, 2007 3:17 am

how pass runtime parameters to href ?

Post 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]
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Code: Select all

echo '<a href="b.php?value=1'.$value1.'&value2='.$value2.'">click</a>';
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply