Sessions, need code
Posted 06 September 2006 - 12:54 AM
Posted 06 September 2006 - 01:27 AM
Posted 06 September 2006 - 01:29 AM
You might not need to call it, it depends on your php configuration.
Once sessions are active (triggered by session_start()), then any data you place into the $_SESSION array will be available between requests.
Posted 06 September 2006 - 01:32 AM
Posted 06 September 2006 - 01:36 AM
How will I get that data to the other page? If I have session_start at the top. Then where my button is that says add to cart how will I be able to add that item to the cart? $_SESSION... what do i put between the brackets and how to make the info send? Do I add that in the form somehow?
Now how am I going to get this to work?
Posted 06 September 2006 - 01:44 AM
$_SESSION['cart']['first_name'] = $_POST['first_name'];
<input name="first_name" value="Yes" type="textfield" value="<?php echo $_SESSION['cart']['first_name'] ?>">
Hope you do get it!
Posted 06 September 2006 - 09:05 AM
Posted 06 September 2006 - 11:02 AM
in my option ob_start(); is a tempary method and a lazy solution.
((EMAIL CODE THAT WORKS))
((PAYPAL INTEGRATION THAT WORKS))
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users