I have a little problem here: hopefully somebody can help. Let's say i want to pass a $variable1 from page1.php to a page2.php, $variable2. How would this process go through? Anybody, Helpppp~~🙁
if you want to pass it with a link, try this:
echo "<a href=\"page2.php?variable2=".$variable1."\">page 2</a>
Or use sessions
session, Mmmm could you provide me some example regarding to my previous post. Thanks.
Starting session (on each page!):
session_start();
Saving variables and using them:
// Saving value to session: $_SESSION["varible_name"] = "value"; // use the saved variables: echo $_SESSION["variable_name"];
hope that helps!
Warning: Cannot send session cookie - headers already this is the warning that i got? What's next, 😕
Warning: Cannot send session cookie - headers already sent by Warning: Cannot send session cache limiter - headers already sent
Sigh!@ :o
use session_start() BEFORE anything is send to the browser ...