Passing Data To Another Page After Form Submit With Php
I've read through a number of similar questions, so I know this has been answered before, but now my question is why isn't what I'm doing working? I'm new to web development, devel
Solution 1:
The way I would normally tackle passing values between pages is to use session variables.
You can do this in your form.php page
session_start();
$SESSION_["result"] = $result;
Then do the following in your other page
session_start();
if(isset($SESSION_["result"]) {
$result = $SESSION_["result"];
}
Just make sure you destroy or unset any session variables when you're done with them.
Post a Comment for "Passing Data To Another Page After Form Submit With Php"