Pozz...zelio bi na svome sajtu da napravim ono login i registracija (imam kod i sve to)...e sad jel treba kreirati MySQL bazu podataka ili nesto drugo treba izmjeniti u kodu evo kodovi :
Login forma:
Code
<form name="loginform" method="post" action="<?php echo basename(__FILE__); ?>" id="loginform">
<input type="hidden" name="form_name" value="loginform">
<table class="loginform_table" style="width:243px;height:132px;">
<tr>
<td class="loginform_header" colspan="2" style="height:20px;">Prijavi Se</td>
</tr>
<tr>
<td style="height:20px;width:108px">Korisnicko ime:</td>
<td style="text-align:left"><input class="loginform_text" name="username" type="text" id="username" value="<?php echo $username; ?>" style="width:100px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px">Lozinka:</td>
<td style="text-align:left"><input class="loginform_text" name="password" type="password" id="password" value="<?php echo $password; ?>" style="width:100px;height:18px;"></td>
</tr>
<tr>
<td> </td><td style="text-align:left;height:20px"><input id="rememberme" type="checkbox" name="rememberme">Zapamti me</td>
</tr>
<tr>
<td> </td><td style="text-align:left;vertical-align:bottom"><input class="loginform_button" type="submit" name="login" value="Prijava" id="login" style="width:70px;height:20px;"></td>
</tr>
</table>
</form>
Registracija:
Code
<form name="signupform" method="post" action="<?php echo basename(__FILE__); ?>" id="signupform">
<input type="hidden" name="form_name" value="signupform">
<table class="signupform_table" style="width:298px;height:204px;">
<tr>
<td class="signupform_header" colspan="2" style="height:20px;">Kreiraj racun</td>
</tr>
<tr>
<td style="height:20px">Ime:</td>
<td style="text-align:left"><input class="signupform_text" name="fullname" type="text" id="fullname" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px">Korisnicko ime:</td>
<td style="text-align:left"><input class="signupform_text" name="username" type="text" id="username" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px;">Lozinka:</td>
<td style="text-align:left"><input class="signupform_text" name="password" type="password" id="password" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px">Potvrdi Lozinku:</td>
<td style="text-align:left"><input class="signupform_text" name="confirmpassword" type="password" id="confirmpassword" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td style="height:20px">E-mail:</td>
<td style="text-align:left"><input class="signupform_text" name="email" type="text" id="email" style="width:150px;height:18px;"></td>
</tr>
<tr>
<td colspan="2"><?php echo $error_message; ?></td>
</tr>
<tr>
<td> </td><td style="text-align:left;vertical-align:bottom"><input class="signupform_button" type="submit" name="signup" value="Kreriraj" id="signup" style="width:90px;height:20px;"></td>
</tr>
</table>
</form>
Ev kako bi to trebalo izgledati :
Eto zamolio bi ove webmastere sa EC da mi pomognu ukoliko znaju