|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
i am writing a little reminders script (because i have some short -term memory!) in php and i have all of the bugs worked out... it connects to a database called reminders, and one single table called "rems" and so i was wondering when i go to edit the reminder (by clicking on it and re-filling the form out) how i can have the content of the form already filled in... i have three main variables (which are connected to its respective row in the mysql db); those are $id, $title, and $content. Somehow, the "title" field of the edit page is filled it...but since i changed the "reminder" field to the <textarea> tag, from its prior <input ...> tag, it does not fill itself in from the variables....!?!?
anyone know where ive gone wrong here??
__________________
-Alexander |
|
#2
|
|||
|
|||
|
What's the code you're currently using? You should be able to fill in the textarea by using this code:
PHP Code:
That should populate your textarea with the data retrieved from your database table.
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
|
#3
|
|||
|
|||
|
thanks a lot!
i was using.. PHP Code:
when i should have been using PHP Code:
rule #1 of php: its those minor things that get you lol thanks |
|
#4
|
|||
|
|||
|
Glad to help... Anytime!
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > question on calling info from db to form field? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|