You are here: Re: Quickform - edit form « PHP « IT news, forums, messages
Re: Quickform - edit form

Posted by Leonie on 10/05/51 11:10

Leonie wrote:
> I've set up a form using Quickform. I've got it working a dream. My
> problem is at the moment it only adds records to the database. I would
> like to also have an edit form. I don't know what is easiest. Amend the
> existing form so it enters data and edits it, or have two different
> webpages.
>
> Also I'm having trouble working out how to assign data to the form. Can
> anyone point me to an example?




Ahhh - got it!


Here's how to assign the value:

$date = &$form->addElement('text', 'year', 'Year:');
$date->setValue('1992');

Thank you
Cheers Leonie

 

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

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