Code:
<form action="#"
onsubmit="var e = this.elements, v = 'value', n = 'county';
e['your'+n][v] = e['our'+n][v] = e[n][v]; return true;">
<input type="text" name="county" size="5" maxlength="5" value="55555">
<input type="hidden" id="age" name="yourcounty" value"">
<input type="hidden" id="DOB" name="ourcounty" value"">
<input type="submit" value="Go!">
</form>
But, as I was hinting at, with javascript disabled, this will not work. Also, since the value of "county" is already known in the PHP submit environment, it would be easier and better to set whatever you are currently setting from "yourcounty" and "ourcounty" from "county". The result would be the same, no javascript required.
Bookmarks