Hello guys,

I'm bulding a rich user interface, with a lot of javascript interaction (it creates rows in a table, cells, textboxes, select lists, buttons, etc) and on the onclick of the form submit, I'm calling a JS function that retrieves this information and stores it in a string in a hidden field, so PHP can retrieve the information on the server side and process it.

Is there a better way to achive this and is this considered bad programming practice??

And what about when I want to pass information from PHP to JS that's not visible to the normal user?

Thanks
HoraShadow