Ok I have 3 pages. First is the fill out form for the order. Second is the calculations of what they wanted. Or a confirmation page. On the second page they click yes to confirm the order. On the third page I have it email me with those values.
I know the values are sent to the second page from the first, but how do I pass those values to the third page? I want to assign it to $message and echo the values into an html email to myself.
I tried using hidden values but it seems not to work.
Here is a simple simple form here for example purposes only. To get a visual of it since i dont think im describing this good enough
PAGE 1
<form method="POST" action="request.php">
Name: <input type="text" name="test">
<input type="submit" name="something">
</form>
PAGE 2
Is this correct?
<?php
$name=$test;
echo $name;
$subtest='<form method="post" action="mail.php">
<input type="submit" value="yes">
<input type="HIDDEN" name=\"name\" value=\"$name\">';
echo $subtest
?>
PAGE 3
<?php
echo $name;
?>
The third page i did that to see if it would hold the $name value. I guess it isnt. this isnt what i am using. like i said it is a basic example
And yes i am fairly new and sloppy code