This is a discussion on Display Query Result As Editable Form within the PHP General forums, part of the PHP Programming Forums category; Hi all, I am creating a user form whereby I will do an "INSERT" , "SELECT" , "...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi all, I am creating a user form whereby I will do an "INSERT" , "SELECT" , "UPDATE" and of course "DELETE" for the form. Right now I am trying to create a form whereby when user choose to update their info, they wil be directed to a form where the fields region are EDITABLE , before that, the fields should contain their "old" info...so can i know how should i go about creating this kinda "Editable" fields using php scripting ???Fields should contain old info retrieved from the DB.....Anyone have any idea?? Realli need some help here. Thanks in advance =) Irin. |
|
|||
|
<input type="text" name="name" value="<?=$value?>">
irinchiang@justeducation.com wrote: >Hi all, > >I am creating a user form whereby I will do an "INSERT" , "SELECT" , "UPDATE" >and of course "DELETE" for the form. Right now I am trying to create a form >whereby when user choose to update their info, they wil be directed to a form >where the fields region are EDITABLE , before that, the fields should contain >their "old" info...so can i know how should i go about creating this >kinda "Editable" fields using php scripting ???Fields should contain old info >retrieved from the DB.....Anyone have any idea?? > >Realli need some help here. >Thanks in advance =) > >Irin. > > > |
|
|||
|
Sophie Mattoug schrieb:
> <input type="text" name="name" value="<?=$value?>"> > > irinchiang@justeducation.com wrote: > >> Hi all, >> I am creating a user form whereby I will do an "INSERT" , "SELECT" , >> "UPDATE" and of course "DELETE" for the form. Right now I am trying to >> create a form whereby when user choose to update their info, they wil >> be directed to a form where the fields region are EDITABLE , before >> that, the fields should contain their "old" info...so can i know how >> should i go about creating this kinda "Editable" fields using php >> scripting ???Fields should contain old info retrieved from the >> DB.....Anyone have any idea?? >> >> Realli need some help here. Thanks in advance =) >> >> Irin. .... or the long version, if you work with other namespaces or your webserver doesn't support these short tags: <input type="text" name="name" value="<?php echo $value; ?>"> |
|
|||
|
irinchiang@justeducation.com wrote:
> > Hi all, > > I am creating a user form whereby I will do an "INSERT" , "SELECT" , "UPDATE" > and of course "DELETE" for the form. Right now I am trying to create a form > whereby when user choose to update their info, they wil be directed to a form > where the fields region are EDITABLE , before that, the fields should contain > their "old" info...so can i know how should i go about creating this > kinda "Editable" fields using php scripting ???Fields should contain old info > retrieved from the DB.....Anyone have any idea?? > > Realli need some help here. > Thanks in advance =) > > Irin. Or instead of doing it yourself, you could use PEAR's DB_DataObject_Formbuilder, which will create forms for you from records in the database. Or, if that's going to far, you could just use DB_DataObject to get/insert/update/delete your data and use HTML_QuickForm to create the form yourself. http://pear.php.net/package/DB_DataObject http://pear.php.net/package/HTML_QuickForm http://pear.php.net/package/DB_DataObject_FormBuilder -- paperCrane <Justin Patrin> |