I have a list box with multiple selects. I define the name as numList[]. I
get the values from
$picked = $_POST['numList'];
It retrieves values for all those selected.
If the entries are, say,
First
Second
Third
and the first and third are select then $picked[0] has "First" and
$picked[1] has "Third".
If, however, the entries are:
First one
Second one
Third one
Then the values are for $picked[0] and $picked[1] are "First" and "Third"
respecticely.
How do I retrieve the entire value and not just the first word?
Shelly 6 1639
Shelly wrote: If, however, the entries are:
First one Second one Third one
Then the values are for $picked[0] and $picked[1] are "First" and "Third" respecticely. How do I retrieve the entire value and not just the first word?
How are you determining what is in each entry?
If you do a
<?
echo '<pre>';print_r($_POST);echo '</pre>';
?>
after entering your processing script, what do you see?
Ken
"Ken Robinson" <ke******@rbnsn.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Shelly wrote: If, however, the entries are:
First one Second one Third one
Then the values are for $picked[0] and $picked[1] are "First" and "Third" respecticely. How do I retrieve the entire value and not just the first word? How are you determining what is in each entry?
$picked = $_POST['numList'];
If you do a <? echo '<pre>';print_r($_POST);echo '</pre>'; ?> after entering your processing script, what do you see?
I see:
Array
(
[numList] => Array
(
[0] => First
[1] => Third )
[filename] =>
[description] =>
[submit] => Delete Entries
) Ken
Shelly wrote: "Ken Robinson" <ke******@rbnsn.com> wrote in message news:11**********************@f14g2000cwb.googlegr oups.com...
Shelly wrote: If, however, the entries are:
First one Second one Third one
Then the values are for $picked[0] and $picked[1] are "First" and "Third" respecticely. How do I retrieve the entire value and not just the first word?
How are you determining what is in each entry?
$picked = $_POST['numList'];
If you do a <? echo '<pre>';print_r($_POST);echo '</pre>'; ?> after entering your processing script, what do you see?
I see: Array ( [numList] => Array ( [0] => First [1] => Third )
[filename] => [description] => [submit] => Delete Entries )
So what you see is what you got.
Next question: what does your form look like?
Ken
"Ken Robinson" <ke******@rbnsn.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Shelly wrote: "Ken Robinson" <ke******@rbnsn.com> wrote in message news:11**********************@f14g2000cwb.googlegr oups.com... > > > Shelly wrote: >> If, however, the entries are: >> >> First one >> Second one >> Third one >> >> Then the values are for $picked[0] and $picked[1] are "First" and >> "Third" >> respecticely. >> How do I retrieve the entire value and not just the first word? > > How are you determining what is in each entry?
$picked = $_POST['numList'];
> If you do a > <? > echo '<pre>';print_r($_POST);echo '</pre>'; > ?> > after entering your processing script, what do you see?
I see: Array ( [numList] => Array ( [0] => First [1] => Third )
[filename] => [description] => [submit] => Delete Entries )
So what you see is what you got.
Next question: what does your form look like?
The list show:
First one
Second one
Third one
Shelly
Shelly wrote (in part): Next question: what does your form look like?
The list show:
First one Second one Third one
No, what I mean is how are you defining your form, i.e. the HTML code.
Ken
Looks like someone forgot to put quotation marks around the value
attribute in the option tag... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dave Hopper |
last post by:
Hi
I am using the following SQL to retrieve a value in a list box using a
unique ID held in the list box call cntID. The list box is used on an
order form to list appointments that have been...
|
by: Vijay Kumar R Zanvar |
last post by:
I have following questions:
1. Appendix C of K&R says:
Trigraph sequences introduced by ?? allow
representation of characters lacking in some
character sets. ...
Can somebody explain how...
|
by: Ian Williamson |
last post by:
Greetings,
My company has an ASP.NET based enterprise product that is undergoing some
changes and I need some community input to help solve a problem.
In the current implementation, any given...
|
by: David L Wright II |
last post by:
I have a data bound listbox that I want to select multiple lines then
process each line.
I bound a two column datatable to the listbox and set the DisplayMember
property to the appropriate column...
|
by: himilecyclist |
last post by:
I have a query screen where the user has an option to search by name
fields in the database. There are first, middle and last name fields
and the results returned should be sorted last, first,...
|
by: bmallett |
last post by:
First off, i would like to thank everyone for any and all help with this. That being said, I am having a problem retrieving/posting my dynamic form data. I have a form that has multiple options...
|
by: Jankie |
last post by:
I need to dispaly a user's multiple images in one entry.Right now,say if a user uploads 3 images,three entries for the same id display to match 3 images.
I only want 1 entry to display all of a...
|
by: Wingot |
last post by:
Hey,
I have a program I am trying to write using Visual C#, SQL Server
2005/2008, and Visual Studio 2008, and one part of it includes a Schema
called Client. Inside this schema, three tables...
|
by: phpnewbie26 |
last post by:
I currently have two drop down menus where the second one is populated from the first one. My second drop down menu should be able to do multiple selection. I have searched online and found out how...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |