lindm Posted December 1, 2008 Share Posted December 1, 2008 I have a html-page in which the user can show and hide certain elements with checkboxes. Is it possible for the user to "capture" the entire html-code including the visibility status of all elements and send this code as a variable to a php script? Link to comment https://forums.phpfreaks.com/topic/135035-capture-html-and-send-to-php/ Share on other sites More sharing options...
gevans Posted December 1, 2008 Share Posted December 1, 2008 I don't understand the question Link to comment https://forums.phpfreaks.com/topic/135035-capture-html-and-send-to-php/#findComment-703343 Share on other sites More sharing options...
lindm Posted December 1, 2008 Author Share Posted December 1, 2008 Ok. I have a html page: <html> <body> other code <div id="div"> </div> other code </body> </html> The person visiting the page can show and hide the div (visible by default) by clicking a checkbox (unchecked by default). I want to be able the send the html code of the page to a php script and the code should correspond to the "status" of the page and its elements as they were when the code was sent. In other words the div should have visibility hidden and the checkbox should be checked from the example mentioned. Possible without having to "create" the html code within the php script? Link to comment https://forums.phpfreaks.com/topic/135035-capture-html-and-send-to-php/#findComment-703360 Share on other sites More sharing options...
gevans Posted December 1, 2008 Share Posted December 1, 2008 Like using cookies to save page state? Link to comment https://forums.phpfreaks.com/topic/135035-capture-html-and-send-to-php/#findComment-703362 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.