Same field content

pasqualedi 02 Feb, 2010
Hi!
I've two field: 'cognome' and 'cognome2'.
I need when write in 'cognome' field have same result in 'cognome2'.
Sorry for my english. See the picture please.
Same field content image 1

Thanks very much!
GreyHead 02 Feb, 2010
Hi pasqualedi,

I'd either use some JavaScript to do this or copy the value with PHP in the OnSubmit Before box.

Bob
pasqualedi 02 Feb, 2010
Hi Bob, thanks for your fast reply.
This is the code of field 1 (Cognome):
<input name="cognome" type="text" class="cf_inputbox" id="cognome" title="" size="30" maxlength="150" />


This is code of field 2 (Cognome 2):
<input name="cognome2" type="text" class="cf_inputbox" id="cognome2" title="" size="30" maxlength="150" />


The fields are with different id and name.
I need when i write example: john in Cognome i have john also in Cognome 2
GreyHead 02 Feb, 2010
Hi pasqualedi,

Yes, that's what I thought you wanted.

Bob
This topic is locked and no more replies can be posted.