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> 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? 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. 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 Link to comment https://forums.phpfreaks.com/topic/116662-self-update/#findComment-599841 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.