/    Sign up×
Community /Pin to ProfileBookmark

hello,
i am having problem in fetching the data in a “select” input type in a form.

it looks something like this

<td colSpan=”3″><select multiple name=”some_data”>
<option value>select
<option value=”O”>Oily
<option value=”MO”>Medium-Oily
<option value=”M”> Medium
<option value=”MD”>Medium-Dry
<option value=”D”>Dry</option>
</select></td>

IN this whats happening is a user can select one or multiple values

what i want is to fetch that one(or more) values into some other php page where processing is occuring

how can i do this???
thanks
-gaurav

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@themartyJun 06.2006 — Rename [b]some_data[/b] to [b]some_data[][/b]

On the page you submit the form to, do [b]print_r($_POST['some_data'])[/b] and you'll see that now you have a nice array you can work with
Copy linkTweet thisAlerts:
@gaurav_095authorJun 07.2006 — thanks;its working
×

Success!

Help @gaurav_095 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...