Search found 17 matches
- 22 Oct 2009, 20:09
- Forum: phpBB Development discussion
- Topic: Form with multiple submit buttons?
- Replies: 8
- Views: 12191
Re: Form with multiple submit buttons?
<!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed" /><!-- s:oops: --> ...can anyone take a moment to see my last post above and critique the code? I'm stuck trying to get a looping update to work. I'm only able to edit/update the last row displayed in my form...
- 14 Oct 2009, 21:41
- Forum: phpBB Development discussion
- Topic: Form with multiple submit buttons?
- Replies: 8
- Views: 12191
Re: Form with multiple submit buttons?
:mrgreen: a person reading this thread could skip down to here, since I've managed (with this forum's help) to fix several of the problems mentioned above. Where I'm getting stuck is this: a) my form page displays data fields with pre-existing data in uniquely numbered rows b) if I want to make any ...
- 14 Oct 2009, 21:28
- Forum: phpBB 3.0.x "Olympus" discussion
- Topic: what code to use to update sql table?
- Replies: 6
- Views: 12115
Re: what code to use to update sql table?
Thanks for the replies! I think I'm making progress on most of the fields including the decimals, but I can't seem to get checkbox values UPDATEd correctly: the original selections display fine, but subsequent changes which I UPDATE seem to override any future changes I make. Working backwards, here...
- 13 Oct 2009, 13:43
- Forum: phpBB 3.0.x "Olympus" discussion
- Topic: what code to use to update sql table?
- Replies: 6
- Views: 12115
Re: what code to use to update sql table?
Ah! Thanks for clarifying all that for me. Taking the explanation a step farther, if my UPDATE is taking data from a form and that data is either pre-existing (i.e. already displayed in the field) or newly entered/altered, I suppose this would be the best way of receiving in that kind data: $data_in...
- 13 Oct 2009, 07:47
- Forum: phpBB 3.0.x "Olympus" discussion
- Topic: what code to use to update sql table?
- Replies: 6
- Views: 12115
what code to use to update sql table?
In PHPBB 2 I'm trying to receive data from form fields and upload them into an sql table, but I've seen variations of sql UPDATEs and I don't know which kind to use: I've seen data received in like this: $data_input = $HTTP_POST_VARS['data_input']; Or like this: $data_input = ( isset($HTTP_POST_VARS...
- 11 Oct 2009, 13:17
- Forum: phpBB Development discussion
- Topic: Form with multiple submit buttons?
- Replies: 8
- Views: 12191
Re: Form with multiple submit buttons?
I tried to solve my problem again and this time I check code from a mod call "User list 2.0.6c" (it doesn't matter so much which mod it was, just that the User List mod also relies on checked boxes to mark which lines to "action"). The checked boxes have to be in an array :mrgree...
- 09 Oct 2009, 09:58
- Forum: phpBB Development discussion
- Topic: Form with multiple submit buttons?
- Replies: 8
- Views: 12191
Re: Form with multiple submit buttons?
Well, if phpbb-auction.com's support is anything to go by, also their support with this mod is "restricted" <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> They'd be best able to help me modding their mod, but I can't ge...
- 08 Oct 2009, 21:54
- Forum: phpBB Development discussion
- Topic: Form with multiple submit buttons?
- Replies: 8
- Views: 12191
Re: Form with multiple submit buttons?
In the last couple of days I've tried to get the form and the server side scripting to work. The form is presently designed to show 1 listed item per row with a checkbox at the end of each line. If the box is ticked, the 1 main "submit" button is supposed to take that row into account when...
- 06 Oct 2009, 07:54
- Forum: phpBB Development discussion
- Topic: Form with multiple submit buttons?
- Replies: 8
- Views: 12191
Form with multiple submit buttons?
I'm working on designing an ACP form page in phpbb2 which displays arrays of data (in rows; each row is an array) . At the end of each row is a "submit" button which is supposed to trigger a "mode" which enables an UPDATE of an sql table for that specific line item (i.e. not for ...
- 02 Oct 2009, 16:55
- Forum: phpBB Development discussion
- Topic: Need help updating sql via template form
- Replies: 13
- Views: 14675
Re: Need help updating sql via template form
Thanks for the suggestions above anyway - everything helps. I've posted my question at the site above and also at phpbbhacks. Separately, would you be able to tell me what is the difference between this (from profile.php): if ( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) { $mod...
- 01 Oct 2009, 22:53
- Forum: phpBB Development discussion
- Topic: Need help updating sql via template form
- Replies: 13
- Views: 14675
Re: Need help updating sql via template form
the QA continues and I think the source of my problems is on the template/"submit" side, because sql debugging mode indicates no values I enter are being picked up - including now the critical offer id number. Here's what I have for the relevant portion of the form: <tr> <td class="ro...
- 01 Oct 2009, 20:26
- Forum: phpBB Development discussion
- Topic: Need help updating sql via template form
- Replies: 13
- Views: 14675
Re: Need help updating sql via template form
If you were referring to this: "value="{L_ADMIN_AUCTION_OFFER_FIELD_EDIT}"" that's just a preset text variable for the button. This mod uses that approach a lot instead of hardcoding a text phrase in the site pages.
- 01 Oct 2009, 15:59
- Forum: phpBB Development discussion
- Topic: Need help updating sql via template form
- Replies: 13
- Views: 14675
Re: Need help updating sql via template form
Hi, to make sure I understand: if my <form> is already referencing "S_ADMIN_OFFER_EDIT" here: <form enctype="multipart/form-data" method="post" action="{S_ADMIN_OFFER_EDIT}"> and "S_ADMIN_OFFER_EDIT" is really associated with this: 'S_ADMIN_OFFER_EDI...
- 01 Oct 2009, 07:58
- Forum: phpBB Development discussion
- Topic: Need help updating sql via template form
- Replies: 13
- Views: 14675
Re: Need help updating sql via template form
Thanks! I'll try that line of code and see what happens... If I may trouble you, I have a few more questions: 1. From the lines of code you've seen so far in the various segments, do you see any glaring mistakes in how I'm trying to define values or call them up? I've been modding this mod (successf...
- 30 Sep 2009, 21:40
- Forum: phpBB Development discussion
- Topic: Need help updating sql via template form
- Replies: 13
- Views: 14675
Re: Need help updating sql via template form
What I'm trying to use (unsuccessfully) in the meantime is this: my "mode" which is activated when clicking to edit/update the data fields: if ( $mode == "admin_offer_edit" ) { $total_offers = 0; while( $row = $db->sql_fetchrow($result) ) { $offer_rowset[] = $row; $total_offers++...