Re: Question
| From: | Ryan Gibson | Date: | Thu, 14 Aug 2003 08:37:55 +0000 |
| Subject: | Re: Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159537@lists.php.net to get a copy of this message | ||
Try naming it variable.inc.php or telling your webserver to parse .inc files
as php.
On 14/8/03 9:12 am, "Lito Dagodog" <ldagodog@ntsp.nec.co.jp> wrote:
> i have a question?
> i have 3 files of PHP and the codes are as follows.
>
> variables.inc
> <?php
> $host = $_POST["host"];
> $username = $_POST["user"];
> $password = $_POST["password"];
> $dbname = $_POST["dbname"];
> $tblname = $_POST["table"];
> $field = $_POST["field"];
> $value = $_POST["value"];
> ?>
>
> createDB.php
> <?php
> include ('createtbl.php');
> ?>
>
> createtbl.php
> <?php
> include ('variable.inc');
> ?>
>
>
> How come that the text inside the variable.inc will be shown in
> createtbl.php?
>
Ryan Gibson
-----------
ryan_gibson@jmp-partnerhip.co.uk