Code
<?php $title = "xx - Register"; ?>
<?php require("styles/top.php"); ?>
<div id='full'>
<?php
$form = "<form action='register.php' method='post'>"
<table>
<tr>
<td>First Name:</td>
<td><input type='text' name='firstname'></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type='text' name='lastname'></td>
</tr>
<tr>
<td>Username:</td>
<td><input type='text' name='username'></td>
</tr>
<tr>
<td>Email:</td>
<td><input type='text' name='email'></td>
</tr>
<tr>
<td>Password:</td>
<td><input type='password' name='password'></td>
</tr>
<tr>
<td>Verify Password:</td>
<td><input type='password' name='repassword'></td>
</tr>
<tr>
<td>Avatar:</td>
<td><input type='file' name='avatar'></td>
</tr>
<tr>
<td>Country:</td>
<td><input type='text' name='country'></td>
</tr>
<tr>
<td></td>
<td><input type='submit' name='submitbtn' value='Register'></td>
</tr>
</table>
</form>;
echo "$form";
?>
</div>
<?php require("styles/bottom.php"); ?>
Does anybody see anything wrong with my code?
My index.php page is showing my styles etc, but my register.php page is showing an error.
Quote
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
I am not sure what I am doing wrong, I figured out that I am connecting to mysql properly.
Code
include_once "connect_to_mysql.php";
This post was edited by earStash on Jun 28 2014 02:18am