farban Posted March 14, 2009 Share Posted March 14, 2009 Hey there I am making a edit profile page and this is what i have so far. I am making it so that the profile info appears with the editatble values in the form feilds which the user can then edit and change and then click on submit. here is the code i have on editprofile.php <?php session_start(); if (!isset($_SESSION['user_id'])) { $url = absolute_url(); header("Location: $url"); exit(); } include("includes/start.php"); require_once("includes/_connect.inc.php"); echo "<h1>Update Profile</h1><p>Update the profile</p>"; if (!isset($_POST['submitted'])) { $q = " SELECT user.user_first_name, user.user_surname, user.user_age, user.user_sex, user.user_city, user.user_home_phone, user.user_mobile_phone, user.user_profession, user.user_specialist_area, user.user_email, user.user_username FROM user WHERE user.user_id= '".$_SESSION['user_id']."'"; echo '<form action="editprofile.php" method="post"> <p>First name<input type="text" name="user_first_name" size="15" maxlength="15" value="'.$user_first_name.'"/> </form>'; } ?> how can i print out the firstname value into the firstname input feild of the form? Link to comment https://forums.phpfreaks.com/topic/149414-help-in-making-a-edit-profile-page/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.