Passing parameters between two HTML pages

Hi,<br />
I want to pass some parameters from one HTML page to another. Can i do it in href attribute of <a> tag. If so, how do i do that and how do i recive the parameters in the recieving page?<br />
<br />
Thanks in advance.<br />
-geets<!--content-->http://developer.netscape.com/viewsource/goodman_url_pass/goodman_url_pass.html<!--content-->Hi,<br />
<br />
I tried passing the parameter but at the recieving page, i receive a blank string. I tried 3 ways and following is the code:<br />
<br />
<br />
<form name="frm" method="post"><br />
<input type="hidden" name="param1" value="val1"><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://host/directory/Frames.htm" onclick="javascript:fnSubmit()">FramePage</a></p><br />
</form><br />
<br />
<script language="javascript"><br />
function fnSubmit()<br />
{<br />
frm.submit();<br />
}<br />
</script><br />
<br />
So that the parameter goes as name value pair. But i don't recieve anything at the recieving page.<br />
<br />
<form name="frm" method="post"><br />
href=http://www.webdeveloper.com/forum/archive/index.php/"http://host/directory/Frames.htm?param1=val1" onclick="javascript:fnSubmit()">FramePage</a></p><br />
</form><br />
<script language="javascript"><br />
<br />
function fnSubmit()<br />
{<br />
frm.submit();<br />
}<br />
</script><br />
<br />
Here it doesn't display the page at all.<br />
<br />
<br />
<form name="frm" method="post"><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://host/directory/Frames.htm" onclick="javascript:fnSubmit()">FramePage</a></p><br />
</form><br />
<script language="javascript"><br />
<br />
function fnSubmit()<br />
{<br />
frm.action="http://host/directory/Frames.htm?param1=val1"<br />
frm.submit();<br />
}<br />
</script><br />
<br />
Here, it shows the URL with the parameter and value but shows the page specified in href attribute and so doesn't pass the parameter value.<br />
<br />
I capture the values at the secong page using 'location.search.substring(1)'<br />
<br />
Could someone pls help.<br />
Thanks.<!--content-->
 
Back
Top