parani 0 Newbie Poster

Hi

Can you please go through the HTML files and let me know where am I going wrong?

Page1.html :

<html>
<head>
<title>PAGE 1</title>
</head>
 
<body>
<form action="page2.html" method="get" name="LoginForm" id="LoginForm">
 
Username : <input name="username" size="20"> 
Password :<input name="password" type=password size="20">
 
<input type="submit" name="Login" value="Login" >
<input type="reset" name="Reset2" value="Reset">
 
</form>
</body>
</html>

Page2.html :

<html>
<head>
<title> Page2.html </title>
<script type="text/javascript">
function GetParam(rname)
{
var rstart=location.search.indexOf("?"+rname+"=");
if (rstart<0) rstart=location.search.indexOf("&"+rname+"=");
if (rstart<0) return ' ';
rstart += rname.length+2;
var end=location.search.indexOf("&",rstart)-1;
if (end<0) { end=location.search.length; }
var result='';
for(var i=rstart;i<=end;i++)
{
var c=location.search.charAt(i);
result=result+(c=='+'?' ':c);
}
return unescape(result);
}
</script>
 
<body>
<form name="page2" method=get action="page3.html">
 
<input type="hidden" name="uname" value=GetParam(username)>
 
<input type="button" name="button" value="click">
</form>
</body>
 
</html>

When I tried to invoke GetParam(Username) javascript function, it didnt get the hidden element "UNAME" value instead it returned "GetParam(username)" itself.Can you put your ideas into this?

In Page3.html, I should be able to get the Hidden Values and Name for INPUT "UNAME".Is there any concept available??

Regards,
Parani.:rolleyes:

parani 0 Newbie Poster

Hi Katharnakh,

Can you please check the POST "Tomcat-Perl-Perl" and reply if you are aware of the problem?

Thanx
/Parani.

parani 0 Newbie Poster

Hi,

I am having two scripts [Hello.pl and Hi.pl]

Hello.pl

#!/usr/bin/perl
printf "Hello world";
system("perl Hi.pl")

Hi.pl

#!/usr/bin/perl
printf "Hi";

When I tried to execute the script "Hello.pl" in command prompt,the output is as below

D:\Perl\bin>perl hello.pl
Hello world
Hi

I kept this two scripts in TOMCAT and tried to invoke the Script[Hello.pl] through a HTML page.It looks the "Hello.pl" is invoked and generated the output but it failed to invoke the script "Hi.pl".

Can any one of you explain where am I going wrong??

/Parani.

parani 0 Newbie Poster

Hi All,
I want to know if there is any way to exit from both the parent and child loop simultaneously without adding any kind of conditional statement.
********************************************************
#!bin/ksh
a=5
if[[ $a -gt 5 ]]
then
echo "a=5 and not went to else cdn."
else
if [[ $a==5 ]]
then
echo "a=6"
fi
echo "a=5 and not worked"
fi
echo "got it"
********************************************************
Once the program prints "a=6" it should print "got it".
Will any thing work here without going for label,goto command.
I tried with break but it din't work at all.
Please suggesst me your views.

/Nandoo.