Hi
I think you will need javascript.
For the submit button, make it have a javascript onclick event, then the script can fetch the values, concatenate them, check the length, display a warning or submit the form, as appropriate.
Of course, this relies on java being enabled, so it is no good for defending against attacks or abuse.
It's too late at night to code it for you and check it, but here's a stab:
Assume the input fields ar named name1 and name2, and the hidden field is named hidden1 and a final field, the one to submit, named submit1
Whoops, forgot the submit!!!
Assume the form that contains the hidden submit1 field is named myform.
<script>
function combineVars()
{
var resultSTR = name1.value+name2.value;
if (resultSTR.length>100)
{
alert("The field lengths are too big.");
}
else
{
submit1.value = hidden1.value+resultSTR;
document.myform.submit();
}
}
</script>
Trevor