You are here: Re: Populating a form with data from a database « PHP Programming Language « IT news, forums, messages
Re: Populating a form with data from a database

Posted by Rik Wasmus on 01/11/08 23:18

On Fri, 11 Jan 2008 23:42:54 +0100, Melih Onveral
<melih.onvural@gmail.com> wrote:

> I am trying to create an edit function. It will grab the data which
> already exists from the item being edited, fill the appropriate text
> fields/drop downs/etc. and then allow the user to change the values
> and resubmit. I don't know how to set the value of form fields from
> PHP. Is this possible? Could someone please link me an example, or
> give me an idea of how this can be accomplished? Thanks,

This would be basic tutorial stuff (usually the existing data is in a
database). Google for PHP + MySQL + form + tutorial, and you'll find
plenty of reading material. Even if the existing data doesn't come from a
database you can use the examples they give you by just substituting the
calls to the database to use your own logic of retrieving/saving.
--
Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация