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>

12th Jan 2019, 11:24 PM
jack
jack - avatar
1 Resposta
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>
12th Jan 2019, 11:25 PM
jack
jack - avatar