i want to create an edit facility

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
nutstretch
Forum Contributor
Posts: 104
Joined: Sun Jan 11, 2004 11:46 am
Location: Leicester

i want to create an edit facility

Post by nutstretch »

I want to be able to output the results of a search into text boxes to edit and then save the changes. How do i get the results into text boxes rather than just a table displaying the results?

Any help appresiated
amithn12
Forum Newbie
Posts: 5
Joined: Thu Nov 06, 2003 5:40 am

Post by amithn12 »

Create how many text boxes u need, and the sustitue the values of the search u r performing into the text boxes, give the value of the text field to the search value

ex: value = <?=$value1?>
lostboy
Forum Contributor
Posts: 329
Joined: Mon Dec 30, 2002 8:12 pm
Location: toronto,canada

Post by lostboy »

create a form outline that accomadates the needs of your application. Then in each input box use the value attribute to set the value:

<input type=text name="$somename" value="$myDBValue">
nutstretch
Forum Contributor
Posts: 104
Joined: Sun Jan 11, 2004 11:46 am
Location: Leicester

Post by nutstretch »

Thanks that works great
Post Reply