[php] problème echo + variable
Fermé
Miroufle
-
5 mai 2006 à 11:18
jisisv Messages postés 3645 Date d'inscription dimanche 18 mars 2001 Statut Modérateur Dernière intervention 15 janvier 2017 - 5 mai 2006 à 14:04
jisisv Messages postés 3645 Date d'inscription dimanche 18 mars 2001 Statut Modérateur Dernière intervention 15 janvier 2017 - 5 mai 2006 à 14:04
A voir également:
- [php] problème echo + variable
- Echo lors d'un appel samsung - Forum Samsung
- Easy php - Télécharger - Divers Web & Internet
- @Echo off ✓ - Forum Windows 7
- Fichier .bat, echo off - Forum Virus
1 réponse
jisisv
Messages postés
3645
Date d'inscription
dimanche 18 mars 2001
Statut
Modérateur
Dernière intervention
15 janvier 2017
934
5 mai 2006 à 14:04
5 mai 2006 à 14:04
D'abord, il manque un ';' en fin d'echo.
Essaye quelque chose du genre:
Johan
Essaye quelque chose du genre:
johan@johan:~/public_html$ cat myfile.php <?php session_start(); if(!isset($_SESSION['login'])) { readfile("login.html"); } else { echo 'Bonjour $login'; } ?> johan@johan:~/public_html$ cat login.html <html> <body> <form method="post" action="login.php"> User Name<input type="text" name="username"> Password <input type="password" name="password"> <input type="submit" name="doit"> </form> <body> </html>
Johan