|
-
Aug 2nd, 2006, 06:25 AM
#1
Thread Starter
Fanatic Member
how to pass information from PHP to JS, and from JS to PHP?
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
I do like the reward system. If you find that my post was useful, rate it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|