Re: [PHP] Spawning new pages

2004-12-01 Thread Christopher Weaver
 Of all the correct answers that you received you had to pick and use the 
 wrong
 answer!

What?!  I only see one answer, Brent Clements.  How is it that I could miss 
some of the messages?  I'm reading these through MS Outlook Express with 
'Show All Messages' selected.

Anyway, is there any way that I can 'imitate' the effect of a user clicking 
on a link that would open another page?  Maybe this is a javascript thing?

Thanks.


Jason Wong [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 On Wednesday 01 December 2004 15:02, Christopher Weaver wrote:
 Here's what I've got

 In first php file

 include second.php;

 createPage(withThis);
 createPage(withThat);

 ...

 Of all the correct answers that you received you had to pick and use the 
 wrong
 answer! PHP can't spawn new pages. Read your other responses.

 -- 
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-general
 --
 /*
 Carson's Observation on Footwear:
 If the shoe fits, buy the other one too.
 */ 

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



RE: [PHP] Spawning new pages

2004-12-01 Thread Chris W. Parker
Christopher Weaver mailto:[EMAIL PROTECTED]
on Wednesday, December 01, 2004 3:58 PM said:

 Of all the correct answers that you received you had to pick and use
 the wrong answer!
 
 What?!  I only see one answer, Brent Clements.  How is it that I
 could miss some of the messages?  I'm reading these through MS
 Outlook Express with 'Show All Messages' selected.

I got all the other emails. In fact I was one of the people that
responded.

 Anyway, is there any way that I can 'imitate' the effect of a user
 clicking on a link that would open another page?  Maybe this is a
 javascript thing? 

Missing emails aside, this is *not* a PHP issue. Use plain HTML (which
PHP is used to create) or Javascript (which PHP can also creates).



Chris.

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



[PHP] Spawning new pages

2004-11-30 Thread Christopher Weaver
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



Re: [PHP] Spawning new pages

2004-11-30 Thread Brent Clements
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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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


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



RE: [PHP] Spawning new pages

2004-11-30 Thread Chris W. Parker
Christopher Weaver mailto:[EMAIL PROTECTED]
on Tuesday, November 30, 2004 4:55 PM said:

 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.

PHP does not actually do anything on the client side *EXCEPT* to create
all the HTML that gets sent to the client. Javascript (not to be
confused with Java) or a target= attribute in a link are a few ways in
which to spawn a new window. PHP itself does not (and cannot) spawn new
windows on it's own. It is merely creates the HTML/Javascript that does
it.

 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?

No because PHP does not interact with the client in the way you (seem
to) think it does. The client never sees one bit of PHP.

 How do I actually open the page once it's been created?

See above.


hth,
Chris.

p.s. This is not a jab at you, but I think you've had at least one other
non-PHP related question in recent days. My suggestion is to join a web
design list that deals with things web related in nature (i.e. HTML,
Javascript, PHP, ASP, databases, etc.). You could try TheList found at
www.evolt.org or webdesign-l (not sure where that was in found).

Also, I think it's important that you seek to completely understand the
difference between the server and client and how they interact. (Not to
say you're not already doing this, and it's almost more of a natural
progression than anything else.)

Again, I'm not trying to be harsh, just helpful.

And lastly, I've been known to completely misunderstand a person's
question as well as underestimate a person's profficiency so forgive me
if I've done that here.

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



Re: [PHP] Spawning new pages

2004-11-30 Thread Greg Donald
On Tue, 30 Nov 2004 17:20:48 -0800, Chris W. Parker
[EMAIL PROTECTED] wrote:
 PHP does not actually do anything on the client side *EXCEPT* to create
 all the HTML that gets sent to the client.

From the department-of-redundancy-department no less.  :)

PHP does not do _anything_ client side.  PHP's execution begins and
ends server side.


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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



RE: [PHP] Spawning new pages

2004-11-30 Thread Chris W. Parker
Greg Donald mailto:[EMAIL PROTECTED]
on Tuesday, November 30, 2004 5:28 PM said:

 On Tue, 30 Nov 2004 17:20:48 -0800, Chris W. Parker
 [EMAIL PROTECTED] wrote:
 PHP does not actually do anything on the client side *EXCEPT* to
 create all the HTML that gets sent to the client.
 
 From the department-of-redundancy-department no less.  :)
 
 PHP does not do _anything_ client side.  PHP's execution begins and
 ends server side.

you say tomato. i say tomato.

oh wait i guess that doesn't work very well when written. :)



chris.

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



Re: [PHP] Spawning new pages

2004-11-30 Thread Christopher Weaver
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 [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 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 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 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
 

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



Re: [PHP] Spawning new pages

2004-11-30 Thread Jason Wong
On Wednesday 01 December 2004 15:02, Christopher Weaver wrote:
 Here's what I've got

 In first php file

 include second.php;

 createPage(withThis);
 createPage(withThat);

 ...

Of all the correct answers that you received you had to pick and use the wrong 
answer! PHP can't spawn new pages. Read your other responses.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Carson's Observation on Footwear:
 If the shoe fits, buy the other one too.
*/

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