(right now Im trying ti pass it just to an alert window). I looked on the web and tried different variations of what I saw, and I eithier got an undefined error, or nothing at all.
Here is the html I have using a text field
<form subject="myname" enctype="text/plain">
<p class="guesttext">Please enter your name to our guest book: <INPUT TYPE="text" NAME="firstname" SIZE=20/> <input type="button" onClick="show_alert()" value="Guest Book"/> </p>
var text = document.myname.firstname
Can anyone see what I'm missing in my code?
Try changing the following lines as shown...
<form name="myname" enctype="text/plain">
var text = document.myname.firstname.value;