Re: Spawning new pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message 
news:001a01c4d744$710e5850$110110ac@xxxxxxxxx
> 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@xxxxxxxxx>
> To: <php-general@xxxxxxxxxxxxx>
> Sent: Tuesday, November 30, 2004 6:54 PM
> Subject:  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
>> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux