elpaisa Posted July 24, 2008 Share Posted July 24, 2008 Hi all! I have an ajax function that calls a php function to update some html div in the page, but the div belongs to a php variable, this variable is called $content, later in the page is an html form that post this $content variable to a database, the problem is that the variable $contents that holds the html div modified by ajax is not updated with the new modifications. You javascript guys can tell me how I update the variable $content with the ajax modifications, my brain will crash, I don't really know much about javascript. Thxs! Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted July 24, 2008 Share Posted July 24, 2008 but the div belongs to a php variable, this variable is called $content using ajax you can update html not php the only thing javascript sees is the DOM or plain html which is the same as when you would click the "view source" so you cant update a php variable what you can do is update that div you stored in that php var $content Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.