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 
Quickform select from database
Goto page Previous  1, 2
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions
View previous topic :: View next topic  
Author Message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Sat Mar 08, 2008 8:21 pm    Post subject: Reply with quote

Pain wrote:
Ok, I get it now, but when I keep the order => first delete, second fetch then I can't get the id from $data['name'] since the array is filled later


Wrong. It'll work if you use the following order:

- create the form
- add the select element
- check for submission / validity (and delete)
- fetch the records to the select element
- show the form
Back to top
View user's profile Send private message
Pain



Joined: 13 Feb 2008
Posts: 19

PostPosted: Sun Mar 09, 2008 12:16 am    Post subject: Reply with quote

OMG it works Razz , never would thought to do it this way

THANKS FOR ALL!!!
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions All times are GMT + 2 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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