Paul EC1 Posted July 25, 2008 Share Posted July 25, 2008 Hi all, Not sure how to go about this, basically i need to get a page to update some data without having to use the sumit / save button. This works using the drop down box, but i need the update happen when a user lands on the page. Any ideas ? This is basically a landing pad from paypal back to a shopping cart (a Paid function) Many thanks for your help Paul <td> <form action="" method="get" class="form"> <div align="left"> <input type="hidden" name="p" value="$p" /> <input type="hidden" name="iOrder" value="$iOrder" /> <input type="hidden" name="sOption" value="save" /> <select name="iStatus" class="input" > $sStatusSelect </select> <input type="submit" value="$lang[save]" /> </div> </form> </td> Quote Link to comment https://forums.phpfreaks.com/topic/116662-self-update/ Share on other sites More sharing options...
timmah1 Posted July 26, 2008 Share Posted July 26, 2008 You need the page to update or do you need a database to update? Quote Link to comment https://forums.phpfreaks.com/topic/116662-self-update/#findComment-599835 Share on other sites More sharing options...
Paul EC1 Posted July 26, 2008 Author Share Posted July 26, 2008 It's a flat file system, no database it saves to a text file. just need to drop the save button, it works great if you click save but i prefer to have the data saved when the user lands on the page. Quote Link to comment https://forums.phpfreaks.com/topic/116662-self-update/#findComment-599839 Share on other sites More sharing options...
DeanWhitehouse Posted July 26, 2008 Share Posted July 26, 2008 I think you need AJAX Quote Link to comment https://forums.phpfreaks.com/topic/116662-self-update/#findComment-599841 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.