So let's say I have a PHP script which takes the POST
data out of a HTML form, like this:
<?php
$data = $_POST['data'];
echo $data;
?>
And I have a HTML form in a PHP file, when the button is pressed it sends the data to the other PHP file, and the data will be echo'd, now I want the data to be echo'd in the file that has the form, not in the single PHP file. I hope I explained correctly. I know I can put the HTML and PHP in one file, but I don't really want to do that.
EDIT: OK, this is a better explanation, I need to take the data that's POSTED to a PHP file and echo it in another PHP file, understand now? I hope so.