Orsen Cart
08-31-2004, 01:46 PM
Hi
I've searched the forum but couldn't find an answer to my specific question so I would apreciate a little help.
I have a <form> with two values. When I submit the form, I want to submit it with one value which is a concatenation of the other two.
e.g.
<form name="pay" action="https://etc" method=post>
<input type="text" name="email">
<input type="text" name="surname">
<input type =hidden" name="concatstring">
<input type="submit" value="buttontext">
</form>
I've tried
<form name="pay" action="https://etc" method=post>
<input type="text" name="email">
<input type="text" name="surname">
<script...>
document.pay.concatstring.value=document.pay.email.value+document.pay.surname.value
</script>
<input type="submit" value="buttontext">
but I can't get it working. I think I may have it all in the wrong order etc.
Any help would be much appreciated.
javascript
but I think I may have got it all in the wrong order. Have
I've searched the forum but couldn't find an answer to my specific question so I would apreciate a little help.
I have a <form> with two values. When I submit the form, I want to submit it with one value which is a concatenation of the other two.
e.g.
<form name="pay" action="https://etc" method=post>
<input type="text" name="email">
<input type="text" name="surname">
<input type =hidden" name="concatstring">
<input type="submit" value="buttontext">
</form>
I've tried
<form name="pay" action="https://etc" method=post>
<input type="text" name="email">
<input type="text" name="surname">
<script...>
document.pay.concatstring.value=document.pay.email.value+document.pay.surname.value
</script>
<input type="submit" value="buttontext">
but I can't get it working. I think I may have it all in the wrong order etc.
Any help would be much appreciated.
javascript
but I think I may have got it all in the wrong order. Have