Click here to Skip to main content
15,901,853 members

Comments by Rupanjana (Top 6 by date)

Rupanjana 1-Dec-11 2:29am View    
I want to pass value one HTML page to another HTML page and also want to show the value in second page.How it can be possible?Tell me the way.Please..
Rupanjana 22-Nov-11 6:29am View    
The first form store the value in name_fst and name_lst variable but not showing anything on the second page which is called sec.htm..

Please help to to find the solution.
Rupanjana 22-Nov-11 5:34am View    
I tried with the following HTML code:

For the first page

<html>
<head></head>
<body>

<p align="center"><img border ="0" src="C:\Documents and Settings\pawan\My Documents\My Pictures\header-bg.png" hieght="100" width="100"/>GenSet</p>



<form name="frm" action="sec.htm">
<table><tr><td>Enter First Name :</td><td><input type="text" name="t1" /></td><tr>
<tr><td>Enter Second Name :</td><td><input type="text" name="t2" /></td><tr>
<tr><td align="center" colspan="2"><input type="button" name="b1" value="Next Page" / önClick="location.href='sec.htm?name_fst='+document.frm.t1.value+'&name_lst='+document.frm.t2.value"></td><tr>
</table>
</form>
</body>
</html>

The HTML Code for the second page is

<html>
<head>
<script language="javascript">
function display()
{
origurl=document.URL;
name_fst=origurl.substring(origurl.IndexOf("name_fst")+9,origurl.IndexOf('&'));
name_lst=origurl.substring(origurl.IndexOf("name_lst")+9,origurl.length)l;
document.Write("Welcome "+name_lst+", "+name_fst);
}
</script>
</head>
<body önLoad="javascript:display();">
</body>
</html>
Rupanjana 22-Nov-11 5:32am View    
Deleted
I tried with the following HTML:

<html>
<head></head>
<body>
<img border="0" src="C:\My Pictures\header-bg.png" hieght="100" width="100" />GenSet



<form name="frm" action="sec.htm">
Enter First Name : <input type="text" name="t1" />
Enter Second Name : <input type="text" name="t2" />
</form>
</body>
</html>

And the Second page HTML code as follows:


<html>
<head>
<script language="javascript">
function display()
{
origurl=document.URL;
name_fst=origurl.substring(origurl.IndexOf("name_fst")+9,origurl.IndexOf('&'));
name_lst=origurl.substring(origurl.IndexOf("name_lst")+9,origurl.length)l;
document.Write("Welcome "+name_lst+", "+name_fst);
}
</script>
</head>
<body önload = "display();">
</body>
</html>


Second does not display anything.Please help me..
Rupanjana 2-Nov-11 6:52am View    
Just now i tried the code in my web page.it shows a compilation error that is:The name 'bytes' does not exist in the current context

What will be the solution?