doorbreaker
Programmer
Hi,
I have a hidden field:
<input type="hidden" name="xFirstName" value = "">
I also have a text field called FirstName. I want to set xFirstName to the value of FirstName if xFirstName is empty.
Is it possible to do this?
I tried this:
function tester()
{
document.form.xFirstName = document.form.FirstName.value;
}
I have put some text in the FirstName field. When I submit the form the value of xFirstName comes up as undefined.
On submitting I do the following:
...form action="whatever.asp" onsubmit="return tester();"....
Is this possible? Any ideas?
Many thanks in advance for any help
Chris Moore
I have a hidden field:
<input type="hidden" name="xFirstName" value = "">
I also have a text field called FirstName. I want to set xFirstName to the value of FirstName if xFirstName is empty.
Is it possible to do this?
I tried this:
function tester()
{
document.form.xFirstName = document.form.FirstName.value;
}
I have put some text in the FirstName field. When I submit the form the value of xFirstName comes up as undefined.
On submitting I do the following:
...form action="whatever.asp" onsubmit="return tester();"....
Is this possible? Any ideas?
Many thanks in advance for any help
Chris Moore