[UPHPU] javascript issue

Merrill Oveson moveson at gmail.com
Thu Nov 19 09:39:48 MST 2009


Fellow phpers:

>From what I've read using eval is a sin:

function getValue(counter) {

   var packitemValue = "document.item_form.PackItem_" + counter + ".value";
   packitemValue = eval (packitemValue);

}

Am I sinning?  And if so, how and can someone help me repent?

i.e. how else would I code this?

Thanks

Merrill


More information about the UPHPU mailing list