Hello,
If I have a variety of submit buttons all called 'add' but with different
vaues, (food types fish, pork, beef )
I want to feed this into a function to increment the corresponfding cookies
value by 1. This is what I have so far
if (isset($add)){
$variable= $.$add;
echo the variable
the syntax for variable variables is:
$variable= $$add;
or alternatively:
$variable= ${$add};
Jordan
On Sep 14, 2005, at 2:25 PM, Ross wrote:
$variable= $.$add;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, September 14, 2005 2:25 pm, Ross wrote:
Hello,
If I have a variety of submit buttons all called 'add' but with
different
vaues, (food types fish, pork, beef )
I want to feed this into a function to increment the corresponfding
cookies
value by 1. This is what I have so far
if
3 matches
Mail list logo