RE: [PHP] has anyone seen this done?
| From: | Jay Blanchard | Date: | Wed, 30 Jul 2003 18:51:58 +0000 |
| Subject: | RE: [PHP] has anyone seen this done? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-157574@lists.php.net to get a copy of this message | ||
[snip]
i know this is possible with php, but have been wracking my brain trying
to
figure this out, in any case, i am just a beginning php programmer, but
what i want to do is...when a link is clicked, i need to be able to pull
some text from a static html page and dynamically create a new window in
which to display a specific block of text...can this be done and has
anyone
seen something like this implemented...
[/snip]
Aloha
The link needs to contain target="_blank" so ...
<a href="new_window.php target="_blank">
In new_window.php you will need to fopen the static html file, read the
file and then find the text you want from it (ereg or some other regex
matching facility). Make sure to fclose the file. Head for the manual at
http://www.php.net to learn the definition of the terms used
herein.
HTH!