Re: Re: post and variables

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

 



Ross wrote:
Sorry I got confused. I am using variable variables.

Disregard.
""Ross"" <ross@xxxxxxxxxxxxx> wrote in message news:08.40.45231.35323734@xxxxxxxxxxxxxxx

Thanks fpr all the feedback on the password but I have another one...

How do I use $_POST with variables. Cant find an example of this anywhere on php.net


if ($_POST['$table_name== 1']) {

$tablename = 'yourtable';

if (isset($_POST[ $tablename ]) && $_POST[ $tablename ] == 1) {
	echo $tablename, ' has been selected';
}


//do something

}

Ta,

ross



--
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