TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kashif Ali
NA
78
9.9k
how to pass multiple values to an array PHP
Jan 15 2019 6:11 AM
<select id="framework" name="framework" placeholder="Users" multiple class="form-control" style="width:width: 400px; overflow-y: all; max-height: 200px;">
<option value="
[email protected]
"> one</option>
<option value="
[email protected]
"> two</option>
</select>
<?php
$students = $_POST["framework"];
/*keep in mind $students takes multiple values like one,two */
Now i want to show these value in
$emails = array(',' , $students);
Is it correct?
For example
$students have these values: one, two, three, four
It should be go in array like
$emails = array(',' , 'one', 'two', 'three', 'four') ;
Please guide me, how i can do this please!
Reply
Answers (
4
)
select all checkbox
Unable to display result in an array PHP