[PHP] Select multiple payment mode

2003-10-01 Thread irinchiang
Hi all, I am working on a receipt payment system whereby there is a select box with a list of payment mode: eg.By cash, By Nets, By Cheque etc...for customers to select the kinda payment mode they going to make their payment. How ever, there is cases in which instead of selecting only

RE: [PHP] Select multiple payment mode

2003-10-01 Thread Ralph Guzman
using a different payment method. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 11:58 PM To: PHP General list Subject: [PHP] Select multiple payment mode Hi all, I am working on a receipt payment system whereby

[PHP] SELECT MULTIPLE form variable?

2003-06-14 Thread Noel Wade
Hi all, So I was under the impression that an HTML form SELECT MULTIPLE item would return an array with all of the selected items. This array can then be used with any of the standard PHP array functions, yes? I have 1 HTML page that seems to work fine... However, another page that is nearly

Re: [PHP] SELECT MULTIPLE form variable?

2003-06-14 Thread Leif K-Brooks
You need to name it formfield[], not formfield. Noel Wade wrote: Hi all, So I was under the impression that an HTML form SELECT MULTIPLE item would return an array with all of the selected items. This array can then be used with any of the standard PHP array functions, yes? I have 1 HTML page

Re: [PHP] SELECT MULTIPLE form variable?

2003-06-14 Thread Noel Wade
Message - From: Leif K-Brooks [EMAIL PROTECTED] To: Noel Wade [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, June 14, 2003 1:26 PM Subject: Re: [PHP] SELECT MULTIPLE form variable? You need to name it formfield[], not formfield. Noel Wade wrote: Hi all, So I was under

Re: [PHP] Select multiple boxes

2003-01-21 Thread Chris Hewitt
John W. Holmes wrote: How does php know what suitable form data is? I guess it could look for multiple names in the GET or POST data. But then that would mean for every variable it goes to create, it would have to go and look if it's already created one by that name. If it did, erase the old

RE: [PHP] Select multiple boxes

2003-01-20 Thread Ford, Mike [LSS]
-Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: 18 January 2003 14:41 use [] in your select box name. When it comes back in the $_POST array you will have an array of options. It breaks HTML standard No, it does not break HTML standards -- that is a PHP

Re: [PHP] Select multiple boxes

2003-01-20 Thread Sean Burlington
Ford, Mike [LSS] wrote: -Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: 18 January 2003 14:41 use [] in your select box name. When it comes back in the $_POST array you will have an array of options. It breaks HTML standard No, it does not break HTML standards --

RE: [PHP] Select multiple boxes

2003-01-20 Thread John W. Holmes
use [] in your select box name. When it comes back in the $_POST array you will have an array of options. It breaks HTML standard No, it does not break HTML standards -- that is a PHP urban myth (which, to my chagrin, I helped to propagate before a wiser head sent me to read said

Re: [PHP] Select multiple boxes

2003-01-20 Thread Sean Burlington
John W. Holmes wrote: use [] in your select box name. When it comes back in the $_POST array you will have an array of options. It breaks HTML standard No, it does not break HTML standards -- that is a PHP urban myth (which, to my chagrin, I helped to propagate before a wiser head sent

RE: [PHP] Select multiple boxes

2003-01-18 Thread Cal Evans
:14 PM To: [EMAIL PROTECTED] Subject: [PHP] Select multiple boxes Hi- Is there any way to get all of the elements in a SELECT MULTIPLE box, not just the ones that are selected? Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Select multiple boxes

2003-01-18 Thread John W. Holmes
Is there any way to get all of the elements in a SELECT MULTIPLE box, not just the ones that are selected? Thanks! No. You create the box, so you should know all of the possible values. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today.

RE: [PHP] Select multiple boxes

2003-01-18 Thread Cal Evans
To: Gregory Chagnon; [EMAIL PROTECTED] Subject: RE: [PHP] Select multiple boxes use [] in your select box name. When it comes back in the $_POST array you will have an array of options. It breaks HTML standard therefore it is a Bad Thing (tm) but it does work. SELECT name=mySelect[] multi option name

Re: [PHP] Select multiple boxes

2003-01-18 Thread Gregory Chagnon
The problem is I have 2 seelect boxes...it's for creating a user and adding them to a list of available groups...so I have one select box that is initially empty called memberOf and another box that has all of the available groups listed in it called availableGroups. I have a script that can move

RE: [PHP] Select multiple boxes

2003-01-18 Thread John W. Holmes
The problem is I have 2 seelect boxes...it's for creating a user and adding them to a list of available groups...so I have one select box that is initially empty called memberOf and another box that has all of the available groups listed in it called availableGroups. I have a script that

RE: [PHP] Select multiple boxes

2003-01-18 Thread Cal Evans
PROTECTED]] Sent: Saturday, January 18, 2003 9:31 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Select multiple boxes The problem is I have 2 seelect boxes...it's for creating a user and adding them to a list of available groups...so I have one select box that is initially empty called memberOf

[PHP] Select multiple boxes

2003-01-17 Thread Gregory Chagnon
Hi- Is there any way to get all of the elements in a SELECT MULTIPLE box, not just the ones that are selected? Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SELECT MULTIPLE...

2002-11-11 Thread Bsantos PHP
Hello: I'm building an internal messaging system for small biz companies and I can't really go longer Problem is, I use some fields to make the message form and one of them must be a select multiple form element wich refers to messaging persons. This is my form: table tr td

Re: [PHP] SELECT MULTIPLE...

2002-11-11 Thread Jason Wong
On Monday 11 November 2002 17:51, Bsantos PHP wrote: Hello: I'm building an internal messaging system for small biz companies and I can't really go longer Problem is, I use some fields to make the message form and one of them must be a select multiple form element wich refers to

Re: [PHP] SELECT MULTIPLE...

2002-11-11 Thread Bsantos PHP
Sorry People: I really forget that: Line 110: VALUES ('$receptor[1]', '$mfi-email', '$frm[priority]', '$frm[title]', '$frm[description]', now(), '$on_special') which makes part of: if (!isset ($receptor[])) { $receptor[] = {0,0,0,0,0,0}; } else { } for ($i=0;$i6;$i++) { $qid =

RE: [PHP] SELECT MULTIPLE...

2002-11-11 Thread John W. Holmes
Line 110: VALUES ('$receptor[1]', '$mfi-email', '$frm[priority]', '$frm[title]', '$frm[description]', now(), '$on_special') Those errors are just warnings. It's telling you that $receptor[1] does not have a value when it reaches that statement. Does that matter to you? You may want to throw

[PHP] select multiple

2002-07-31 Thread [EMAIL PROTECTED]
Hello, i have done as told to select multiple value from a html form, but i cannot insert all of them into MySql database. it inserts Array into the field, instead of the list of values. What can i do? Is there a special script to insert them? i tried, $str = ; foreach ($tableau as $k=$v) $str=

Re: [PHP] select multiple

2002-07-31 Thread Martin Clifford
It depends on how you want them to be in the database. If you want comma-delimited, then just use implode(). $array = array(Red, Blue, Green); $comma_seperated = implode(, , $array); $space_seperated = implode( , $array); There really is no limit to how you want to do this. Then just use

Re: [PHP] select multiple

2002-07-31 Thread 1LT John W. Holmes
] select multiple Hello, i have done as told to select multiple value from a html form, but i cannot insert all of them into MySql database. it inserts Array into the field, instead of the list of values. What can i do? Is there a special script to insert them? i tried, $str = ; foreach ($tableau as $k

[PHP] select multiple within for-each

2002-07-15 Thread William S.
This works OK with creating buttons but is not what I want. POST/INPUT xsl:for-each select=. . . xsl:sort/ form xsl:attribute name=namemyform/xsl:attribute xsl:attribute name=actionlist.php/xsl:attribute

Re: [PHP] select multiple within for-each (SOLVED)

2002-07-15 Thread William S.
Please disregard the previous posting I made. I figured it out. On Mon, Jul 15, 2002 at 10:52:23AM +0200, William S. wrote: This works OK with creating buttons but is not what I want. POST/INPUT xsl:for-each select=. . . xsl:sort/ form