Bluehost.com Web Hosting $6.95

Display Query Result As Editable Form

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" , "...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-10-2003
irinchiang@justeducation.com
 
Posts: n/a
Default Display Query Result As Editable Form



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.
Reply With Quote
  #2 (permalink)  
Old 12-10-2003
Sophie Mattoug
 
Posts: n/a
Default Re: [PHP] Display Query Result As Editable Form

<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.
>
>
>

Reply With Quote
  #3 (permalink)  
Old 12-10-2003
Sven
 
Posts: n/a
Default Re: [PHP] Display Query Result As Editable Form

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; ?>">
Reply With Quote
  #4 (permalink)  
Old 12-10-2003
Justin Patrin
 
Posts: n/a
Default Re: Display Query Result As Editable Form

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>
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0