Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Server-side Scripting _ Paramaeter

Posted by: jkusmanto Oct 18 2006, 05:17 AM

Hey All,

How can I pass parameter(s) between html's ?
I have tried, but didn't success.
Here is my code:

<!-- callit.html -->
<html>
<head>
<title>Untitled</title>
</head>

<body>
<a href="callpara.html?param=nl">Nederlands</a><br />
<a href="callpara.html?param=fr">France</a><br />
<a href="callpara.html?param=de">Duits</a><br />
<a href="callpara.html?param=en">English</a>
</body>
</html>



<!-- callpara.html -->
<html>
<head><title>Call with parameter</title></head>

<body>

<table>
<tr><td>The parameter is: <%= "param" %></td></tr>
<tr>
<td>
<% if request("param")="fr" then %>France<% elseif request("param")="nl" then%>Nederlands
<% elseif request("param")="de" then%>Duits<% elseif request("param")="en" then%>English<% end if %>
</td>
</tr>
</table>
</body>
</html>

Please help me!!!

Rgds,
JK

Posted by: Christian J Oct 18 2006, 05:57 AM

I'm not familiar with ASP, but this might help: http://www.w3schools.com/asp/asp_inputforms.asp (section about Request.QueryString).

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)