Post variables to another php page inside a function
Posted: Mon Mar 20, 2006 9:33 am
Ok, I am totally new at this so don't throw any stones.
I have a form with lots of drop down selection boxes. Let's say these variables are $A, $B and $C. The form submit button POSTS the variables to SELF. I need to create a function ("additem") that will combine the variables $A, $B and $C into variable $D. Then POST those variables to another php page, let's call it cart.php.
I have a form with lots of drop down selection boxes. Let's say these variables are $A, $B and $C. The form submit button POSTS the variables to SELF. I need to create a function ("additem") that will combine the variables $A, $B and $C into variable $D. Then POST those variables to another php page, let's call it cart.php.
Code: Select all
function additem($A, $B, $C){
$D = $A + $B + $C;
//now how do i post $D to cart.php and leave this page
}