Re: Use include function (newbie)
| From: | Rich Fox | Date: | Fri, 17 Oct 2003 16:07:31 +0000 |
| Subject: | Re: Use include function (newbie) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166486@lists.php.net to get a copy of this message | ||
But *why* does logic.php need html.php?
There is no recursion issue, or endless nesting of includes, because
html.php refers to logic.php as an action for a form... this does not
"include" the logic.php code into the html.php page.
Rich
"Karina S" <bali1a@freemail.hu> wrote in message
news:20031017150128.12350.qmail@pb1.pair.com...
> I make a site where I list data from a mysql database. I want to divide
the
> task into 2 parts. The 1. php is the logic.php an the 2. is the html table
> (html.php) with field values.
> I plan that the form action in the html.php file call the logic.php but
the
> logic.php includes the html.php.
>
> I mean:
> html.php
> <form action="logic.php">
> ...
>
> logic.php
> ...
> include('html.php');
>
> On the html.php user can view data and use last, first, next,... buttons
to
> see the whole table.
>
> Question:
> Is it a right way to do this task or this reqursive calls overloads the
> server?
>
> Thanks!