Hello,
I'm trying to convert some javascript to a PHP equivalent (I'm a little new to PHP).
Basically, I'm using a javascript loop to automatically assign form values to similar fields. Here is my javascript code:
My question is, how do I convert the above to a PHP equivalent?
Thanks so much in advance!
I'm trying to convert some javascript to a PHP equivalent (I'm a little new to PHP).
Basically, I'm using a javascript loop to automatically assign form values to similar fields. Here is my javascript code:
Code:
var N = new Array();
for (var x = 0; x < 5; x++){
N[x] = document.forms["frmOpt1"].elements["opt1N" + x].value;
}
Thanks so much in advance!