Re: Spawning new pages
| From: | Christopher Weaver | Date: | Wed, 01 Dec 2004 07:02:27 +0000 |
| Subject: | Re: Spawning new pages | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203207@lists.php.net to get a copy of this message | ||
Here's what I've got
In first php file
include second.php;
createPage("withThis");
createPage("withThat");
In second php file
function createPage
{
echo "<HTML>";
echo "<BODY>";
echo "more stuff here";
echo "</HTML>";
echo "</BODY>";
}
Here's the problem. I get only one page, not two. I want a new page each
time the function is called.
Any ideas?
"Brent Clements" <bclem@imaginative-enterprises.com> wrote in message
news:001a01c4d744$710e5850$110110ac@maggie...
> This is simple.
>
> echo "<html>";
> echo "<body>";
> echo "Hello World";
> echo "</body>";
> echo "</html>";
>
> There are many ways to do what you want to do. It's at the core of PHP.
>
> -Brent
> ----- Original Message -----
> From: "Christopher Weaver" <booktues@yahoo.com>
> To: <php-general@lists.php.net>
> Sent: Tuesday, November 30, 2004 6:54 PM
> Subject: [PHP] Spawning new pages
>
>
>> I want one of my functions to create and open a new page. I know how to
>> call an existing page from PHP ala form action, but in this case I want
>> to
>> dynamically create and then display several pages. I'm thinking that
>> perhaps I should assemble some HTML, write it out to a files, then open
> the
>> HTML file.
>>
>> Is this the best way of going about it?
>>
>> Can it be done without actually writing the HTML to the disk?
>>
>> How do I actually open the page once it's been created?
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>