View Full Version : Retrieving Info For Modification
07-31-2008, 05:40 PM
I have a drop down select box and need to know how to recall all the info that option has and have it post it's info into the form fields below it. How is that done. Because it'll give the user the ability to edit the info and then click "Update" and it'll change the info.
07-31-2008, 05:59 PM
Do you mean like
EDIT: Or do you mean pulling the information from the database? Like
$titlename = $row["titlename"];
<input type="text" name="titlename" value="$titlename">
So whatever value they have in the database, it will keep that value in the box, so you can see what is currently in the database? So if you have "Champion" as a title in the database, the title name text box would say "Champion" in it at all times, until its changed.
07-31-2008, 06:03 PM
Go to the page I listed and notice how I have the drop down select menu above a form. Upon selection of a title it will go to my database and retrieve that titles info and place it's corresponding info into the form fields below so that the user can edit it and the click update and it'll replace the new info with the old info.
07-31-2008, 06:58 PM
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.