j'ai du mal... beaucoup de mal!!!!
j'essaie http://lezartistes.org/test/choixlangue.php de récupérer et d'afficher une variable transmise par un POST et j'ai le message d'erreur suivant:
Parse error: parse error, unexpected T_VARIABLE, expecting ',' or ';' in /home/httpd/vhosts/lezartistes.org/httpdocs/test/php/langue1.php on line 5
le code lancé (choixlangue.php):
Code : Tout sélectionner
<html>
<head>
<title>test</title>
</head>
<body>
<form method="post" action="php/langue1.php">
<p>
<label>
<input type="radio" name="radio1" value="fra" checked>français</label>
<br>
<label><input type="radio" name="radio1" value="ang">anglais</label>
<br>
<label><input type="radio" name="radio1" value="esp">espagnol</label>
<br>
</p>
<table border="0" width="400" align="left">
<tr>
<td colspan="2">
<input type="submit" name="submit" value="langue">
</td>
</tr>
</table>
</form>
</body>
</html><?php
session_start();
extract($_POST);
// $_SESSION['langue'] = $data['langue'];
echo 'langue : '$_SESSION['langue']'';
?>
qui peut m'aider à résoudre mon problème de syntaxe...?merci beaucoup