viperjts10 Posted February 13, 2012 Share Posted February 13, 2012 I have a page in my admin control panel which allows for adding and editing an existing entry on the same page. At the moment, it displays the entries on the page in a table like format. After I edit an entry and hit Submit, I display a message on that page that says "Link updated successfully!", but the table on the page doesn't load the new entry until I refresh again - obviously since the data isn't entered into the database until I hit the submit button to process the form. But I'm wondering if it's possible to update the table on the page and display that new updated table all after hitting the submit button?? Quote Link to comment https://forums.phpfreaks.com/topic/257058-update-and-display-new-data-all-at-once/ Share on other sites More sharing options...
PFMaBiSmAd Posted February 13, 2012 Share Posted February 13, 2012 Of course. Rearrange the logic so that the form processing code comes first, then the code that gets and displays the content on the page. Quote Link to comment https://forums.phpfreaks.com/topic/257058-update-and-display-new-data-all-at-once/#findComment-1317679 Share on other sites More sharing options...
viperjts10 Posted February 13, 2012 Author Share Posted February 13, 2012 aghhhh, I've been up way too long. I didn't think it was that simple. :-\ thx Quote Link to comment https://forums.phpfreaks.com/topic/257058-update-and-display-new-data-all-at-once/#findComment-1317686 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.