Perad Posted October 13, 2006 Share Posted October 13, 2006 I know you can use value. But value doesn't show up on firefox. It also removes itself when the user selects the input box.I want to call data from the database and display it in an input box so a user can edit and change it. Does anyone know how i can do this? Quote Link to comment Share on other sites More sharing options...
AndyB Posted October 13, 2006 Share Posted October 13, 2006 Retrieve the specific data from your database and display it using the appropriate form type as shown below. It will show up with any browser.[code]<input type="text" name="something" value="<?php echo $something;?>"/>[/code][code]<textarea rows="5" cols="30" name="something"><?php echo $something;?></textarea>[/code]After the user changes the displayed data and submits the form, read the new value of 'something' and UPDATE the appropriate row of your database table.Without seeing any of your code, it's difficult to be more specific about solving your problem. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.