I've got two files. Let's call them a.php and b.php. In a.php, I want to show the result of b.php, when post data is submitted to this b.php.
If it's not totally clear yet, here's what the files kind of look like.
a.php:
$one = "apple";
$two = "pear";
$three = "phone";
$array = array(
"one" => $one,
"two" => $two,
"three" => $three
);
$string = postformdataintoafile($array, "b.php");
Obviously, postformdataintoafile(
) is not a real function, but I hope you get the idea. So, what I would like to know is how this is going to work and with what functions I should do it.
And $string
should actually be the whole HTML-page, that is created.
If anyone could help me with this, it would be very appreciated.