I need access to variables both in php and the page's javascript -
i working on php/javascript web application must perform many calculations using many values input user. there several pages of inputs, , calculations using values input on previous pages everywhere.
i have been passing entered values between pages using $_post
, , storing them use in serialized class saved $_session
variable. 1 obvious way pass values php page use javascript populate page hidden form elements. javascript use data , modify necessary, pass values via post
.
i may have many such hidden elements, , can't think way slow down pages. there better way store data between pages? cookies?
thanks! sh
search ajax in google. it's technic helps javascript communicate php. first hard learn syntax watching videos youtube fine.
Comments
Post a Comment