[UPHPU] help with a snippet of code

Merrill Oveson moveson at gmail.com
Wed Dec 9 13:04:08 MST 2009


Fellow phpers:

This is actually a javascript question...

This works:

   eval ("document.item_form.FinalPrice_" + counter + ".value =" +
final_price);

This doesn't:

  document.item_form.FinalPrice_[counter].value = final_price;

What I am doing wrong.

I need the second to work because toFixed(2) doesn't work 100% with eval.

Thanks

Merrill


More information about the UPHPU mailing list