foreach result into a single variable


Posted on 16th Feb 2014 07:03 pm by admin

Hi,

I have this code...

Did you know?Explore Trending and Topic pages for more stories like this.
Code: [Select]foreach ($_POST['Interests'] as $interest => $value) {
echo "Interests: $interest; Value: $value
";}
How do I store the multiple results in a single variable?
No comments posted yet

Your Answer:

Login to answer
329 Like 54 Dislike
Previous forums Next forums
Other forums

Passing PHP variables from one page to another
Hello-

I'm having trouble figuring out how to transport a variable from one php file to anoth

reating a background image
I am building a site in drupal and have a php form in it, due to certain annoyances with module buil

Hashing?
Hi, I was hoping to take a string value then convert it - consistently - across each of our pages in

Inserting into MySQL Newbie
Hi ive got a slight problem where ive made a simple web form where the customer inserts the ammount

GET * FROM _____ Except?
I have a site that is for stock photography.

This section of the code calls images to display

New Search Engine
Hey everyone,

I have a ZIP Code Radius search engine already functional. it displays all of t

how to use two buttons with php
hi i have one form. there are three fields which are to be filled by the user. and then there are tw

Mail Script Problems
I have created a PHP mail script. I am having a problem though. In $body i am trying to put two va

BAPI BBP_INB_DELIVERY_CREATE - material number missing in delivery
Hi Experts,

I was able to successfully create an Inbound delivery with reference to a PO

Taking an HTML form and a PHP program and making it into one working file.
Hello,

So I would like to display everything INSIDE a specific directory. In other words, I

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash