MrRSMan
02-03-2008, 01:15 PM
What I am trying to do is take text from one page, and place it on another page. The text MUST only be between <name="body"> and </name>.
This is the page with the text on;
index.htm
<html>
<body>
<name="text">
Hello and welcome to the website.
</name>
</body>
</html>
Then, I have another page, which the text from index.htm is placed onto;
show.php
<html>
<body>
<?php
$text = $_POST['text'];
?>
The text you wanted was;
<?php echo $name ?>
</body>
</html>
Ok, firstly, is there any reason why that wouldn't work?
Now, what i really came here for;
I have 3 pages, index.htm, services.htm and help.htm. Each of these will be set up the same as index.htm, with some text in <name> tags.
When a user click a link, they must go to show.php (the page where the text is placed onto). I want to be able to identify the page from which they came from, and place the text from that page on this show.php.
If I haven't been very clear, please ask as I rally need this help.
Thanks
This is the page with the text on;
index.htm
<html>
<body>
<name="text">
Hello and welcome to the website.
</name>
</body>
</html>
Then, I have another page, which the text from index.htm is placed onto;
show.php
<html>
<body>
<?php
$text = $_POST['text'];
?>
The text you wanted was;
<?php echo $name ?>
</body>
</html>
Ok, firstly, is there any reason why that wouldn't work?
Now, what i really came here for;
I have 3 pages, index.htm, services.htm and help.htm. Each of these will be set up the same as index.htm, with some text in <name> tags.
When a user click a link, they must go to show.php (the page where the text is placed onto). I want to be able to identify the page from which they came from, and place the text from that page on this show.php.
If I haven't been very clear, please ask as I rally need this help.
Thanks