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 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'>"; Link to comment https://forums.phpfreaks.com/topic/141412-question-on-text-boxes/#findComment-740255 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.