Re: Re: post and variables
| From: | Jochem Maas | Date: | Thu, 10 Nov 2005 11:06:56 +0000 |
| Subject: | Re: Re: post and variables | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-225504@lists.php.net to get a copy of this message | ||
Ross wrote:
Sorry I got confused. I am using variable variables. Disregard. ""Ross"" <ross@aztechost.com> wrote in message news:08.40.45231.35323734@pb1.pair.com...$tablename = 'yourtable'; if (isset($_POST[ $tablename ]) && $_POST[ $tablename ] == 1) { echo $tablename, ' has been selected'; }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']) {
//do something } Ta, ross