The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
cutomized edit form - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: cutomized edit form (/showthread.php?tid=850) |
cutomized edit form - Hannes - Sep 17th, 2010 i would like to have a file editform.php for example for formtools form1 with fields user, name and birthday when I enter editform.php?user=xx it should load the current data for user xx from the database and use them as default entries for the form: user: [xx] name: [sample user] birthday: [01.01.1991] [submit] when submitting the form it should write the changes to the database row of this user and stay on the editform with the new entries (no confirmation or done screen). can you give me instruction how to realize that? RE: cutomized edit form - Ben - Sep 19th, 2010 Hey Hannes, So this is to be used outside of Form Tools, presumably? I just checked the API, but (rather surprisingly) there's nothing in it to let you easily do this, so I'm afraid you'll need to either do it manually or utilize the Form Tools Core functions. Hmm... this seems like it would be a good addition to the API. Let me get back to you on this - I'm going to look through the code a bit and see how difficult it would be to add a new API function. - Ben |