| Server IP : 23.94.149.180 / Your IP : 216.73.216.147 Web Server : nginx/1.20.1 System : Linux deadrock 5.14.0-741.22.1.el9_9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 12 15:18:14 UTC 2026 x86_64 User : nginx ( 991) PHP Version : 8.6.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /files/www/hacklab/peterson/ |
Upload File : |
<html>
<head>
<script language = "JavaScript">
<!--Begin JavaScript hide
/*JavaScript Homework #5 Page 1 CIS25, Spring 2000, Thursday evening class
Using Netscape 4.7
by: Linda Peterson
URL: http://www.hacklab.net/peterson/
*/
// Find out the users first name Save that name in a cookie.
function processinfo(){
var AddEntry = new String() ; // create a variable to hold the user's Address Information
AddEntry=document.MailInfo.FrstName.value;
document.cookie="FrstName=" + escape(AddEntry) //store the cookie FrstName and the users 1st name
}
function displayCookie(){
var addressCookie = new String() // create a variable to hold the cookie
addressCookie = unescape(document.cookie) // get the cookie from the disk
alert ("Thank you, " + AddEntry + "for your order!") // show the user the cookie
}
// end JS hide -->
</script>
</head>
<body background="IvyBG.gif" onLoad="displayCookie">
<center><img src="GardTitle.gif" width="556" height="128"></center>
<center> <H4> Please fill in the following information to receive your FREE catalog. </H4>
<p> <a href="javascript:displayCookie()"> Show me the cookie from the last page.</a>
</center>
<!-- Create a group form named MailInfo.
Javascript uses document. catalog to get information from the form.-->
<form name="MailInfo">
<!-- Create a group of Textboxs and AddEntry them.
Javascript access these strings by saying document.MailInfo.FrstName
-->
<p> <p>
<br>
First Name:
<input type="text" name=FrstName" value="enter your name" size="30">
<br>
Last Name:
<input type="text" name=LstName" value="enter your last name" size="30">
<br>
Street Address:
<input type="text" name="StAdd" value="enter your street address" size=30>
<br>
City:
<input type="text" name="City" value="City" size=30>
<br>
State:
<input type="text" name="State" value="State" size=30>
<br>
Zip Code:
<input type="text" name="ZipCode" value="zipcode" size=10>
<br>
<br>
<a href="cookies2.html"><input type="button" onClick="processinfo()" value="Enter">
<a href="cookies2.html"><input type="reset" name="resetbutton" value="Reset">
</form>
<p><a href="javascript:displayCookie()"> Show me my cookie. <a/>
</body>
</html>