hi, I have a shoutbox and there is an <input> tag that is of the text type and has a name of ‘name’ and a submit button.
how can i make a cookie remeber the user’s name so that when they press the button it saves their name and the name is the default value of the <input> tag the next time the user enters the page?
thanks.
b.t.w, if it helps, this is the form:
[CODE]
<form action=”/shoutbox/sign.php” method=”GET” target=”tags”>
<div id=”Layer1″ style=”border-width: 1 1 1 1; border-color: #000000; border-style: solid; width: 100%;”>
<iframe src=”shoutbox/tags.php?show=limit” name=”tags” width=”100%” height=”200″ frameborder=”0″ ></iframe>
</div>
<div align=”center”>
<small>Shout:</small><br><input type=”text” size=”12″ name=”Shout” value=”Shout” class=”input” maxlength=”150″ onFocus=”if(this.value==’Shout’)this.value=”;”><br>
<small>Name:</small><br><input type=”text” size=”12″ name=”name” value=”Name” class=”input” maxlength=”15″ onFocus=”if(this.value==’Name’)this.value=”;”><br>
<br><input type=”submit” value=” Punch It! ” class=”button”>
</div></div></form>