schimpfk Posted October 22, 2013 Posted October 22, 2013 I have the "Jpmaster77's login script" on my site and I wanted to add "Biography's" on the profiles.I created a new row in the 'users' table called 'bio' so I added this code to the 'userinfo.php' file: /* Bio*/ echo "<b><u>Biography:</b></u> <br/> ".$req_user_info['bio']."</p></div>"; I copied it from the E-mail one, which is: /* Email */ echo "<b><u>E-mail:</b></u> <br/> ".$req_user_info['email']."</p><hr/>"; (I just changed the 'email' to 'bio' ) And here is the 'useredit.php' (edit profile) file for the editing bio: <div class="clear"></div> <p class="grid_2"><div align="center">Biography: </p> <p class="center"> <input class="center" type="textarea" name="bio" maxlength="10000" value="<?php if($form->value("bio") == ""){ echo $session->userinfo['bio']; }else{ echo $form->value("bio"); } ?>"> <?php echo $form->error("bio"); ?> </p> <div class="clear"></div> <p> And I also just copied that from the "E-mail" edit profie, which is: <div class="clear"></div> <p class="grid_2"><div align="center">E-mail: </p> <p class="center"> <input class="center" type="text" name="email" maxlength="50" value="<?php if($form->value("email") == ""){ echo $session->userinfo['email']; }else{ echo $form->value("email"); } ?>"> <?php echo $form->error("email"); ?> </p> <div class="clear"></div> <p> <br/> But my problem is when the user edits his profile nothing get submitted to the database and nothing obviously shows up on their profile.What am I doing wrong? What I said above is ALL did. Any nice help is really appreciated. [i also attached a picture of the 'bio' database row.] 1
Ice IT Support Posted October 24, 2013 Posted October 24, 2013 If you manually add information through phpMyAdmin to the bio column, does that info display on userinfo.php and/or the textarea on useredit.php? Also, consider using this for your textarea code: <textarea class="center" name="bio" maxlength="10000"> <?php if($form->value("bio") == ""){ echo $session->userinfo['bio']; }else{ echo $form->value("bio"); } ?> </textarea>
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now