note 59757 added to function.include
| From: | iepuraspufos at gmail dot com | Date: | Thu, 15 Dec 2005 05:52:15 +0000 |
| Subject: | note 59757 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-100170@lists.php.net to get a copy of this message | ||
I have this code in php that is bugging me..:
<?php
$target = $_Get['$target'];
if ($target=="") {
$target="1.txt";
}
?>
<a href = "2.php?target=1.txt">text 1</a><br>
<a href="2.php?target=2.txt">text 2</a><br>
<?php
include $target;
?>
I'm trying to make the files apear in the same content.. the thing is that it just actions only
on 1.txt... Can anyone help me pls!?
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59757
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59757&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59757&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59757&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59757&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59757&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59757&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59757&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59757&report=yes
Search -- http://master.php.net/manage/user-notes.php