0
session
These codes fail to connect to each other! 1.<?php // Start the session session_start(); ?> <!DOCTYPE html> <html> <body> <?php echo "Your name is " . $_SESSION['name']; // Outputs "Your name is John" ?> </body> </html> and <?php // Start the session session_start(); $_SESSION['color'] = "red"; $_SESSION['name'] = "John"; ?> Please help me!
5 Respuestas
+ 1
did you run it in sololearn ?
0
You need to set session in above of where you calling session, or set in another page and, first open that before open page which you using it
0
did you run it in sololearn ?
No Taste, I run it in a browser through wamp server.
0
i'm not so familiar with wamp, but i found something that may help
https://www.daniweb.com/programming/web-development/threads/456181/session-variables-working-on-wamp-but-not-on-server
0
Why session not run