The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Paramaeter, Passing parameter in HTML
jkusmanto
post Oct 18 2006, 05:17 AM
Post #1





Group: Members
Posts: 1
Joined: 18-October 06
Member No.: 475



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 18 2006, 05:57 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,648
Joined: 10-August 06
Member No.: 7



I'm not familiar with ASP, but this might help: http://www.w3schools.com/asp/asp_inputforms.asp (section about Request.QueryString).
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th April 2024 - 12:33 AM