This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > December 2005 > Repost II: Saving Login ID as a Variable?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Repost II: Saving Login ID as a Variable?
Holland87

2005-12-14, 10:40 pm

Hey everyone.

This is more of a coding question than a design question. Below I've attached
the code I'm using for a Login Screen, in which the user enters a Login ID and
a Password. My question is, is it possible to store the "Login ID" they enter
as a variable of some sort, and then call it later (i.e. print the Login ID
they enter on another page)?

Here is the code:

<form name="htform" action="java script:htaction()">
<p>Login ID:&nbsp;
<input name="mtusr" type="text" class="textfield2" id="mtusr"
size="25"><br><br>Password:
<input name="mtpwd" type="password" class="textfield2" id="mtpwd"
size="25"><br><br>
<input type="submit" name="submitbutton" value="Log In" class="textbutton
bmarg" style="margin-left:60px;">
<input type="reset" name="resetb" value="Reset" class="textbutton">
</p>
</form>

Since it's JavaScript, I'm hoping I can use: document.write(some variable) ,
but I'm not sure how I would "save" the Login ID. Make sense?


------
Shane H
http://www.deceptivemagic.com

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews