0
SyntaxError: expected expression, got '<'
dont know why i get this error the code i want to exectute is: <?php $passModul=$_POST['modul']; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <script type="text/javascript"> var passModul = <?php echo passModul; ?>;</script> </body> </html>
1 Réponse
0
the
$passModul=$_POST['modul'];
comming from
<form action="lessons.php" method="post">
<input type="hidden" name="modul" value="3">
<div class="margin" onClick="this.parentNode.submit()"><p>"test"</p></div>
</form>