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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.