Hi all, i'm very new to programming and was trying to do a webpage with forms and javascript.
I tried submitting some data to another webpage but with javascript, i can't seem to retreive the data correctly. I always get a error saying data or object is null. I wanted to do this in javascript instead of asp. Pls help.
Page 1 :
<html>
<head>
<title>testingt</title>
<SCRIPT LANGUAGE="Javascript">
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<FORM NAME="testing" ACTION="test2.htm" METHOD="POST">
<INPUT TYPE="TEXT" NAME="GYY" VALUE="1234567890">
<INPUT TYPE="submit" value="Send">
</FORM>
</body>
</html>
Page 2:
<html>
<head>
<title>Untitled Document</title>
<SCRIPT LANGUAGE="JAVASCRIPT">
document.write("hhhhhh"
;
doh=document.testing.GYY.value
document.write("this is a test"+doh);
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
I tried submitting some data to another webpage but with javascript, i can't seem to retreive the data correctly. I always get a error saying data or object is null. I wanted to do this in javascript instead of asp. Pls help.
Page 1 :
<html>
<head>
<title>testingt</title>
<SCRIPT LANGUAGE="Javascript">
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<FORM NAME="testing" ACTION="test2.htm" METHOD="POST">
<INPUT TYPE="TEXT" NAME="GYY" VALUE="1234567890">
<INPUT TYPE="submit" value="Send">
</FORM>
</body>
</html>
Page 2:
<html>
<head>
<title>Untitled Document</title>
<SCRIPT LANGUAGE="JAVASCRIPT">
document.write("hhhhhh"
doh=document.testing.GYY.value
document.write("this is a test"+doh);
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>