anfo Posted January 19, 2009 Share Posted January 19, 2009 is it possible to put data from a sql query into text boxes for doing an update query? what i'm doing is trying to change an address on the same page as I display results from a query to get the person's details. e.g. retrieve joe blogs address 12 smith st, have these display in text fields then change it to 21 jump st then click on a submit button which runs an UPDATE SET query. any help gratefully recieved Quote Link to comment https://forums.phpfreaks.com/topic/141412-question-on-text-boxes/ Share on other sites More sharing options...
.josh Posted January 19, 2009 Share Posted January 19, 2009 echo the data as the element's value. example: // code retrieves address from db and puts it into $address echo "Address: <input type = 'text' name = 'address' value = '$address'>"; Quote Link to comment https://forums.phpfreaks.com/topic/141412-question-on-text-boxes/#findComment-740255 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.