Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > Use include function (newbie)
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 3rd July 16:35
bali1a
External User
 
Posts: 1
Default Use include function (newbie)



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!
  Reply With Quote


 


2 3rd July 16:36
cparker
External User
 
Posts: 1
Default Use include function (newbie)



Karina S <mailto:bali1a@freemail.hu>
on Friday, October 17, 2003 8:02 AM said:

Maybe I'm misunderstanding you but I didn't see anything wrong with the
example you gave. Maybe someone else will understand better, or you
could try rephrasing your question.


HTH,
Chris.

--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/
  Reply With Quote
3 3rd July 16:36
rfox
External User
 
Posts: 1
Default Use include function (newbie)


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
  Reply With Quote


 


4 4th July 07:23
ng
External User
 
Posts: 1
Default Use include function (newbie)


<20031017160731.25320.qmail@pb1.pair.com>
Rich Fox:

The idea is, AFAIK, when you first start, you're on html.php. Then, any
link goes to logic.php, which uses html.php to display its data.

That's a bit confusing. Try either including logic.php into html.php, or
start with logic.php and never have the browser go to html.php...
  Reply With Quote
Reply


Thread Tools
Display Modes




666