hmmm okay... så har jeg vist endnu mindre styr på php end jeg troede

men nu er det jo os mit første login script

men altså i min register.php bliver det hele klaret i samme fil?
der er det også en form... men har ikke lavet nogen action= og den ordner det hele alligevel...
<?
ob_start();
include("config.php");
?><?
if ($_POST[register]) {
$username = $_POST[username];
$password = $_POST[pass];
$cpassword = $_POST[cpass];
$email = $_POST[emai1];
$msn = $_POST[msn];
$aim = $_POST[aim];
$realname = $_POST[realname];
$age = $_POST[age];
$location = $_POST[location];
$website = $_POST[website];
$graphic = $_POST[graphic];
$graphicstyle = $_POST[graphicstyle];
$code = $_POST[code];
$codelanguage = $_POST[codelanguage];
if($username==NULL|$password==NULL|$cpassword==NULL|$email==NULL) {
echo "A field was left blank.";
}else{
if($password != $cpassword) {
echo "Passwords do not match";
}else{
$password = md5($password);
$checkname = mysql_query("SELECT username FROM users WHERE username='$username'");
$checkname= mysql_num_rows($checkname);
$checkemail = mysql_query("SELECT email FROM users WHERE email='$email'");
$checkemail = mysql_num_rows($checkemail);
if ($checkemail>0|$checkname>0) {
echo "The username or email is already in use";
}else{
$username = htmlspecialchars($username);
$password = htmlspecialchars($password);
$email = htmlspecialchars($email);
$msn = htmlspecialchars($msn);
$aim = htmlspecialchars($aim);
$realname = htmlspecialchars($realname);
$age = htmlspecialchars($age);
$location = htmlspecialchars($location);
$website = htmlspecialchars($website);
$graphic = htmlspecialchars($graphic);
$graphicstyle = htmlspecialchars($graphicstyle);
$code = htmlspecialchars($code);
$codelanguage = htmlspecialchars($codelanguage);
$query = mysql_query("INSERT INTO users (username, password, email, msn, location, website, graphic, graphicstyle, code, codelanguage, aim, realname, age) VALUES('$username','$password','$email','$msn','$location','$website','$graphic','$graphicstyle','$code','$codelanguage','$aim','$realname','$age')");
echo "You have successfully registered!";
}
}
}
}
else
{
echo ("
<center>
<form method=\\"POST\\">
<table width=\\"100%\\" cellpadding=\\"0\\">
<center><img src=\\"images/infoimportant.gif\\"></center>
<table width=\\"90%\\" cellpadding=\\"2\\">
<tr>
<td width=\\"50%\\" align=\\"right\\"><b>*</b>Username:</td>
<td width=\\"50%\\" align=\\"left\\"><input type=\\"text\\" size=\\"15\\" maxlength=\\"25\\" name=\\"username\\"></td>
</tr>
<tr>
<td width=\\"50%\\" align=\\"right\\"><b>*</b>Password:</td>
<td width=\\"50%\\" align=\\"left\\"><input type=\\"password\\" size=\\"15\\" maxlength=\\"25\\" name=\\"pass\\"></td>
</tr>
<tr>
<td width=\\"50%\\" align=\\"right\\"><b>*</b>Confirm Password:</td>
<td width=\\"50%\\" align=\\"left\\"><input type=\\"password\\" size=\\"15\\" maxlength=\\"25\\" name=\\"cpass\\"></td>
</tr>
<tr>
<td width=\\"50%\\" align=\\"right\\"><b>*</b>Email:</td>
<td width=\\"50%\\" align=\\"left\\"><input type=\\"text\\" size=\\"15\\" maxlength=\\"25\\" name=\\"emai1\\"></td>
</tr>
</table>
<center><img src=\\"images/infogeneral.gif\\"></center>
<table width=\\"90%\\" cellpadding=\\"2\\">
<tr>
<td width=\\"50%\\" align=\\"right\\">Real name:</td>
<td width=\\"50%\\" align=\\"left\\"><input type=\\"text\\" size=\\"15\\" maxlength=\\"25\\" name=\\"realname\\"></td>
</tr>
<tr>
<td width=\\"50%\\" align=\\"right\\">Age:</td>
<td width=\\"50%\\" align=\\"left\\"><input type=\\"text\\" size=\\"15\\" maxlength=\\"25\\" name=\\"age\\"></td>
</tr>
</table>
<center><img src=\\"images/infocontact.gif\\"></center>
<table width=\\"90%\\" cellpadding=\\"2\\">
<tr>
<td width=\\"50%\\" align=\\"right\\">MSN:</td>
<td width=\\"50%\\" align=\\"left\\"><input type=\\"text\\" size=\\"15\\" maxlength=\\"25\\" name=\\"msn\\"></td>
</tr>
<tr>
<td width=\\"50%\\" align=\\"right\\">AOL:</td>
<td width=\\"50%\\" align=\\"left\\"><input type=\\"text\\" size=\\"15\\" maxlength=\\"25\\" name=\\"aim\\"></td>
</tr>
</table>
<input name=\\"register\\" type=\\"image\\" src=\\"images/register2.gif\\" value=\\"Register\\">
</form>
</center>
");
}
?>
(har slettet lidt af html'en fra formen... det er en MEGET lang form så ville komme til at fylde lidt meget

)
men... der ordner den det hele uden nogen action?