 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
bhende19
Joined: 12 Apr 2009 Posts: 10
|
Posted: Wed Jun 03, 2009 5:04 am Post subject: Quick Form - how to update data base tables - SOLVED |
|
|
Another simple question =
I have QuickForm pages. On some pages I run queries on my database to get the data and then display in QF by calling out each text box as "value=$_POST['something']" - it works and I like it. On one page we display the data and allow the user to edit as needed. Now I am stuck -
Question - how does the 'submit' button know which php page to go to?
Question - How to bind the data to a QF page? When I do it I get error message that I need to specify the datasource type. I got my data by using mysql_query('select * from table1', $linkID) type of call and not some pear function. |
|
| Back to top |
|
 |
bhende19
Joined: 12 Apr 2009 Posts: 10
|
Posted: Wed Jun 03, 2009 4:37 pm Post subject: |
|
|
WOW - Think 'head slap' - do I feel dumb. The answer was almost too obvious. "Read the module file and the header".
HTML_QuickForm($formName='', $method='post', $action='', $target='', $attributes=null, $trackSubmit = false)
HOWEVER having said that -- I searched for hours and found NO documentation to identify this or any examples that specified the parameters for QF nor any discussion of the other parameters. SO at this point, I do not know what the $target, $attributes or $trackSubmit accomplish.
When I figure it out I will post them and hope someone will include them in the documents in an easy to find spot.
In spite of my immediate issues, this is a VERY USEFUL package. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|