PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Quick Form - how to update data base tables - SOLVED

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML
View previous topic :: View next topic  
Author Message
bhende19



Joined: 12 Apr 2009
Posts: 10

PostPosted: Wed Jun 03, 2009 5:04 am    Post subject: Quick Form - how to update data base tables - SOLVED Reply with quote

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
View user's profile Send private message
bhende19



Joined: 12 Apr 2009
Posts: 10

PostPosted: Wed Jun 03, 2009 4:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement