Skip to main content

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

Could you please help me and tell what is wrong with my requirerequire?

<?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;  } ?> 

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;  } ?> 

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

Could you please help me and tell 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; } 
added 10 characters in body
Source Link
David Ansermot
  • 6.1k
  • 8
  • 51
  • 84

I am writting a code in PHP which is not fully completed, but when I open this register.phpregister.php in my browser there is only blank page, because I can get over reguire('config.php')require('config.php'), but when I delete reguire('config.php')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; } ?> 

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 reguire('config.php'), but when I delete reguire('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; } ?> 

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; } ?> 
deleted 1 character in body
Source Link
souslov
  • 44.7k
  • 11
  • 92
  • 113

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 reguire('config.php'), but when I delete reguire('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; } ?> 

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 reguire('config.php'), but when I delete reguire('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; } ?> 

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 reguire('config.php'), but when I delete reguire('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; } ?> 
Source Link
nwind
  • 89
  • 2
  • 8
Loading