Larry wrote:
I have a form that submits some js created data through a formmail script.
One field of the form is a text box for the person's name. I'd like the
subject line of the resulting email to be "Some Specific Text " + the_name.
I believe it's possible, but am lost as to the strategy?
Do you mean formmail as in a server script (e.g. PHP, Perl, etc.)? If
so, do it at the server. Making your page dependent on JavaScript for
no good reason is pointless.
If you want to show your visitor what the subject will be before the
form is sent, do something like:
<form action="">
<input type="text" name="uName" size="50">Enter your name<br>
<input type="text" name="uSub" size="50" onchange="
this.form.gSub.value = this.value + ': ' + this.form.uName.value;
">Enter a subject<br>
<input type="text" name="gSub" size="50" readonly
style="border-width:0;" onfocus="
if(this.blur)this.blur();
"><br>
</form>
--
Zif