Re: Variables with - in their name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il Sun, 18 Nov 2012 01:09:11 -0500, Ron Piggott ha scritto:

> echo "<select name=\"distributor-" . $row['promo_code_prefix'] . "-" .
> $row['promo_code_suffix'] . "\" style=\"text-align: center;\">\r\n";

> It could be wrote:
> 
> <?php
> echo  $distributor-42-2;

You MUST disable register_globals in your php.ini

Once you have done that (and even before that...) you find your variable 
in $_POST['distributor-42-2']

(or $_GET, depends on your form method)

Bye.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux