Jump to content

Recommended Posts

Yes, I know. This is very common noob question...(and yes, I know I shouldn't be using REQUEST)

 

Here's my code:

 

  $parking[] = $_REQUEST['parking'];

        while(list($key, $val) = each($parking)) {

    $print_parking .=$val .= " ";

    }

 

Oddly, this code worked fine on netfirms servers, but when I moved to hostpapa it now only emails 'ARRAY' instead of the values entered.

 

I tried removing the [] but that just throws an error if the user doesn't select anything (the field is optional).

 

Can any of you code gurus fix my code?

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/174848-emailing-checkbox-data/
Share on other sites

Your welcome,

and welcome to PHP Freaks :)

 

responses here are normally in minute to hours, just remember to rules ;)

 

Now this thread is solved can you click "Topic solved" bottom left, (it saves other opening this thread hoping to help and finding it solved ;))

 

and Happy PHPing

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.