complex05 Posted March 6, 2007 Share Posted March 6, 2007 Two part question: #1. I've built a little AJAX app, but the problem is anytime I do an update, I have to delete my temp files before I can see the update. Is there anyway around this? #2. Is there a way to know all the variables submitted to a form without knowing what the variables are before hand? For example, I have a form, where there are checkboxes. Each checkbox's name is an ID value from the database. When I submit the form, I need to know all the rows that were checked... Quote Link to comment https://forums.phpfreaks.com/topic/41452-ajax-post-data/ Share on other sites More sharing options...
complex05 Posted March 6, 2007 Author Share Posted March 6, 2007 *bump* Quote Link to comment https://forums.phpfreaks.com/topic/41452-ajax-post-data/#findComment-200843 Share on other sites More sharing options...
complex05 Posted March 6, 2007 Author Share Posted March 6, 2007 *bumb again* Quote Link to comment https://forums.phpfreaks.com/topic/41452-ajax-post-data/#findComment-200882 Share on other sites More sharing options...
complex05 Posted March 6, 2007 Author Share Posted March 6, 2007 Well since nobody helped me I managed to research it and find it myself... here are the answers.. no cache: Header('Cache-Control: no-cache'); Header('Pragma: no-cache'); then to get all the checkboxes to another page, name them as follows <input type=checkbox name=checkbox[$id]> then in the php page, treat $_POST['checkbox'] as an array. Hope this helps someone in the future. Quote Link to comment https://forums.phpfreaks.com/topic/41452-ajax-post-data/#findComment-200949 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.