vozzek Posted December 7, 2007 Share Posted December 7, 2007 Hi everyone, real quick question: I'm on a page with a whole bunch of $_POSTed data. Is there a way I can jump to another .php page (to accomplish an SQL function) and then jump back to this page... somehow keeping the $_POST data? Or I am pipe-dreaming? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted December 7, 2007 Share Posted December 7, 2007 Why not just run the query on that page instead of going to a new one? Quote Link to comment Share on other sites More sharing options...
vozzek Posted December 7, 2007 Author Share Posted December 7, 2007 Because to run the query on the page I'd need to call a php function. Writing the function is no problem, but the function will run on page load... which IS a problem. The only way around that (or so I've been told) is to learn AJAX. If there's another way, I'm open to it. Two weeks ago I spent two days working on adding some AJAX to my shopping cart, in an effort to make things easier. I ended up punching a hole in a sheetrock wall (for real), and I have to say, I'm a pretty easy going guy. Javascript, CSS, php... I picked that stuff up pretty fast. But AJAX? I hit a brick wall on that one. I really did make an effort though, and I want you guys to know that. Quote Link to comment Share on other sites More sharing options...
revraz Posted December 7, 2007 Share Posted December 7, 2007 Why do you need to use a function just to do a query? Quote Link to comment Share on other sites More sharing options...
vozzek Posted December 7, 2007 Author Share Posted December 7, 2007 I guess I don't really need a function. It's not a query, actually... I need to do an UPDATE to my shopping cart table: tbl_cart. A radio button on my checkout page will allow the user to choose a gift certificate denomination ($25, $50, $75, $100) and once they hit the "Add to Order" button I want to add this selection to the shopping cart and then refresh the page. Quote Link to comment 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.