Sign L Rakhitha Malinda Karunarathne Web :- rakhitha.cjb.net Email
:[EMAIL PROTECTED] Rakhitha Malinda Karunarathne.
----- Original Message -----
From: "drieux" <[EMAIL PROTECTED]>
To: "LRMK" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, January 07, 2003 2:05 AM
Subject: Re: Selecting a Static HTML page
>
> On Monday, Jan 6, 2003, at 10:50 US/Pacific, LRMK wrote:
> [..]
> >> Variabalizing the action will get the job done but
> >> best will be using a cgi to do it because you can
> >> process some other input data with cgi
> >> if u r not using cgi then u can only forward to another static page
> [..]
>
> could you provide an illustration of this?
>
> I presume you mean to use some javascripting???
>
>
> ciao
> drieux
>
> ---
>
>
My code is ass follows
------------------------------------------------------------------------
<html>
<head>
<title>New Page 1</title>
</head>
<script language="JavaScript">
<!--
function doit(){
urls=new Array();
urls[0]="http://www.yahoo.com";
urls[1]="http://www.hotmail.com";
urls[2]="http://www.perl.org";
var nChosen = document.FormName.SelectName.selectedIndex;
document.FormName.action=urls[nChosen];
return(true);
}
//-->
</SCRIPT>
<body>
Try this code<p> </p>
<form name="FormName" onsubmit="doit()">
<p><select size="1" name="SelectName">
<option selected>www.yahoo.com</option>
<option>www.hotmail.com</option>
<option>www.perl.org</option>
</select><input type="submit" value="Submit" name="B1"><input type="reset"
value="Reset" name="B2"></p>
</form>
</body>
</html>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]