<?php
require('config.php');
if(isset($_POST['submit'])){
}else{
$form =<<<EOT
<form action="reg.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 />
Confirm Email: <input type="text" name="email2"/><br />
Password: <input type="password" name="pass1"/><br />
Confirm Password: <input type="password" name="pass2"/><br />
<input type="submit" value="Register" name="submit"/>
</form>
EOT;
echo $form;
}
?>
Your "EOT" can't be indented, it has to be in the beginning of the line (sadly).
You can't have intendation when beginning and ending the definition of EOT ... ...look at code below. It's not nice (it screws up the intendation for the rest of the code), but this is the only way.
<?php
require('config.php');
if(isset($_POST['submit'])){
}else{
$form =<<<EOT
<form action="reg.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 />
Confirm Email: <input type="text" name="email2"/><br />
Password: <input type="password" name="pass1"/><br />
Confirm Password: <input type="password" name="pass2"/><br />
<input type="submit" value="Register" name="submit"/>
</form>
EOT;
}
echo $form;
?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With