Jump to content

Javascript and passing values to iFrame + some php perhaps


nezbie

Recommended Posts

Hi

 

I have a small question, would be nice if you could give me at least some hints or point me to the right direction.. anyways:

 

My page has a list of products in a javascript-generated table. I'd need some help with my "add to cart" -button. It's not really a shopping cart but works kinda the same way. For you to understand let's call it shopping cart. I have an inframe php-page which should display all the items i add from the products list to the shopping cart. I thought the shopping cart would use PHP session variables. Now my question is, what would be the easiest way to perform this action? I use the iFrame becase I need to use PHP in the cart and also - the main page which contains the products table should not reload itself unless user decides to (else loses search and sorting options)

 

So, shortly:

 

Button that contains a certain value -> when clicked, pass that value to inframe -> update this value into PHP session variable with possible inframe pagereload :)

 

Any suggestions and replies are more than welcome

 

a big thank you

 

- nez

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.