Jump to content

pass a variable to a form


Guest William Sabin

Recommended Posts

Guest William Sabin

I have a password program that stores the user name and password as a cookie. I can retrieve the cookie and store the users name and passwords as a variable.I want to pass the variable to a form that will be submitted to me.. I need to know that the person who is logged in not placing someone elses name on the form. User name and password will be hidden. once I get it working.I just cant get the variable to show up in the form: var works as it is written properly.<html><head><title>...</title><script>var name = "Last Name"document.write(name)</script></head><body><form name="form1"><input type="text" value= "name" name="name" align="to" maxlength="25" size="40"></form></body></html>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...