Lalla Posted April 17, 2009 Share Posted April 17, 2009 i want to submit values from one web page to another web page , using javascript this is a shopping cart program, a user selects items he/she wishes by checking the checkboxes provided. then all these should go on to a shopping cart which is in another page. and my web page consist of several pages, where the user can select alot of products from each page. Quote Link to comment https://forums.phpfreaks.com/topic/154457-shopping-cart-script/ Share on other sites More sharing options...
Lalla Posted April 17, 2009 Author Share Posted April 17, 2009 Sorry the post should look like this: i want to submit values from one web page to another web page this is a shopping cart program, a user selects items he/she wishes by checking the checkboxes provided. then all these should go on to a shopping cart which is in another page. and my web page consist of several pages, where the user can select alot of products from each page. Quote Link to comment https://forums.phpfreaks.com/topic/154457-shopping-cart-script/#findComment-812138 Share on other sites More sharing options...
Adam Posted April 17, 2009 Share Posted April 17, 2009 I'm guessing you want this to happen without submitting any forms or anything then? So like when the user clicks the check box, it's automatically added to the shopping cart without refreshing the page or submitting a form? Regards NB This is the PHP board, not JS! Quote Link to comment https://forums.phpfreaks.com/topic/154457-shopping-cart-script/#findComment-812139 Share on other sites More sharing options...
Axeia Posted April 17, 2009 Share Posted April 17, 2009 Think this one would be better suited for the Ajax board even, if you want it to happen the second the checkbox is clicked you'll have to attach onchange eventlisteners to the checkboxes which then fire a xmlhttp requests posting the value to a PHP script which in turn adds the things to a database which the "Shopping cart" page you mention makes use of. If you're using an existing webshop system you may want to check if it provides an API against which you can fire the requests. Quote Link to comment https://forums.phpfreaks.com/topic/154457-shopping-cart-script/#findComment-812148 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.