Re: Re: Can javascript or php help with this

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On May 25, 2013, at 4:30 PM, Jim Giner <jim.giner@xxxxxxxxxxxxxxxxxx> wrote:
>> 
>> 
> So - create another field on your form.  Add an onclick event to your submit button.  Have it run a js function that takes the two fields and places them into the new field.
> 
> function combineFields()
> {
>  var mm = document.getElementById("monthfld").value;
>  var yy = document.getElementById('yearfld").value;
>  document.getElementByID("mmyy").value = ""+mm+yy;
>  return true;
> }
> 
> Might have to play with this syntax to avoid the values being arithmetically added instead of concatenated, but this is one way.
> 
> And of course - you could try posting on a js site instead of a php one.
> 


Thanks so much Jim - I will check into this.... (and I did just join a javascript list)


--
Thanks,
Dave - DealTek
dealtek@xxxxxxxxx
[db-3]


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux