How do i make a user status update for my website?

Status
Not open for further replies.

Unidentified

Living the Developer Life...
Jun 19, 2012
144
20
could someone help me with a php script i want an update status script so that it update into the specific users data base

database table: usersystem
html form for the script:
HTML:
<form action="status.php" method="post"> 
<input type="text" class="form-textbox2" id="input_4" size="20"  name="status" value="Update your status..." onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;">
<input type="hidden" name="hidden" value="">
<input type="submit" name="update">
</form>
idk if this will help but more info...:
PHP:
<?php
include 'core/init.php';
protect_page ();
?>
<?php
if (logged_in() === true) {
    $session_user_id = $_SESSION['id'];
    $user_data = user_data($session_user_id, 'first_name', 'last_name', 'status', 'location', 'education', 'home_town');
    
}
 
$data = array();
?>
 
Status
Not open for further replies.

Users who are viewing this thread

Top