Skip to main content
3 of 4
added 10 characters in body
David Ansermot
  • 6.1k
  • 8
  • 51
  • 84

Require PHP doesn't work

I am writting a code in PHP which is not fully completed, but when I open this register.php in my browser there is only blank page, because I can get over require('config.php'), but when I delete require('config.php') everything appear in my browser.

Could you please help me what is wrong with my require?

<?php require('config.php'); if(isset($_POST['submit'])){ }else{ $form = <<<EOT <form action="register.php" method="POST"> First Name: <input type="text" name="name" /> <Br/> Last Name: <input type="text" name="lname" /> <Br/> Username: <input type="text" name="uname" /> <Br/> Email: <input type="text" name="email1" /> <Br/> Email2: <input type="text" name="email2" /> <Br/> Pass: <input type="password" name="pass1" /> <Br/> Pass2: <input type="password" name="pass2" /> <Br/> <input type="submit" value="register" name="submit" /> </form> EOT; echo $form; } ?> 
nwind
  • 89
  • 2
  • 8