Adobe Dreamweaver 0
Adobe Muse 0
ASP.net 0
.htaccess 6
CSS 5
Perl 0
PHP 57
PHP - User System 79
HTML 11
Java 0
Javascript 13
Ruby on Rails 0
General Web Development 4
Operating Systems
Video & Audio Editing
Adobe After Effect 0
Adobe Audition 0
Adobe Premiere 0
Final Cut 0
FruityLoops 0
iMovie 0
Windows Movie Maker 0
App Development
Hardware
Miscellaneous
<?php
session_start(); //allows session
include "config.php";
echo "<center>";
//checks see if there logged in
if($logged[id]) {
if(isset($_GET['update'])) {
$pincode = addslashes(htmlspecialchars($_POST[pincode]));
//updates there profile in the db
$update = mysql_query("UPDATE `members` SET `pincode` = '$pincode' WHERE `username` = '$logged[username]'");
echo "<font color='black'>Account Pincode Updated!</font>";
}else{
$getuser = mysql_query("SELECT * FROM `members` WHERE `username` = '$logged[username]'");
$user = mysql_fetch_array($getuser);
echo "<font color='black'><p>Please keep this pincode in a safe as you will be required to use it in the event of your password being forgotten or lost</font></p><Br><form action='changepin.php?update' method='post'><table border='0'><tr>
<td align='left'><font color='black'>Account Pincode</font></td></tr><tr>
<td><input type='text' name='pincode' size='5' maxlength='5' value='$user[pincode]'></td></tr>
<tr>
<td colspan='2'><br><input type='submit' value='Update'></td></tr>
</table>
</form>";
}
}else{
echo "You are not logged in.";
}
echo "<center>";
?>