Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 163737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:37:10+00:00 2026-05-11T11:37:10+00:00

Just noticed I get these errors if I DON’T select a checkbox and submit:

  • 0

Just noticed I get these errors if I DON’T select a checkbox and submit:

Warning: implode() [function.implode]: Invalid arguments passed in /home/content/o/l/t/oltvcb/html/feedback_mtg.php on line 148

Warning: Cannot modify header information - headers already sent by (output started at /home/content/o/l/t/oltvcb/html/feedback_mtg.php:148) in /home/content/o/l/t/oltvcb/html/feedback_mtg.php on line 162

I did notice that the form data actually came through in my email…

Has something to do with the ‘options’ field

Below is the form code:

#<?php // ------------- CONFIGURABLE SECTION ------------------------  // $mailto - set to the email address you want the form // sent to, eg //$mailto       = 'youremailaddress@example.com' ;  $mailto = 'xxxxx@xxxxxxxxx.com' ;  // $subject - set to the Subject line of the email, eg //$subject  = 'Feedback Form' ;  $subject = 'Request For Visitor Guide' ;  // the pages to be displayed, eg //$formurl      = 'http://www.example.com/feedback.html' ; //$errorurl     = 'http://www.example.com/error.html' ; //$thankyouurl  = 'http://www.example.com/thankyou.html' ;  $formurl = 'http://www.example.com/requestform_mtg.php' ; $errorurl = 'http://www.example.com/error.php' ; $thankyouurl = 'http://www.example.com/thankyou.php' ;  $email_is_required = 1; $name_is_required = 1; $address_is_required = 1; $contactname_is_required = 1; $city_is_required = 1; $zip_is_required = 1; $phone_is_required = 1; $uself = 0; $use_envsender = 0; $use_webmaster_email_for_from = 1; $use_utf8 = 1;  // -------------------- END OF CONFIGURABLE SECTION ---------------  $headersep = (!isset( $uself ) || ($uself == 0)) ? '\r\n' : '\n' ; $content_type = (!isset( $use_utf8 ) || ($use_utf8 == 0)) ? 'Content-Type: text/plain; charset='iso-8859-1'' : 'Content-Type: text/plain; charset='utf-8'' ; if (!isset( $use_envsender )) { $use_envsender = 0 ; } $envsender = '-f$mailto' ; $name = $_POST['name'] ; $contactname = $_POST['contactname'] ; $title = $_POST['title'] ; $email = $_POST['email'] ; $address = $_POST['address'] ; $city = $_POST['city'] ; $state = $_POST['state'] ; $zip = $_POST['zip'] ; $country = $_POST['country'] ; $fax = $_POST['fax'] ; $phone = $_POST['phone'] ; $mtgname = $_POST['mtgname'] ; $dates = $_POST['dates'] ; $attendance = $_POST['attendance'] ; $guestroom = $_POST['guestroom'] ; $mtgroom = $_POST['mtgroom'] ; $timeframe = $_POST['timeframe'] ; $options = $_POST['options'] ; $comments = $_POST['comments'] ; $http_referrer = getenv( 'HTTP_REFERER' );  if (!isset($_POST['email'])) { header( 'Location: $formurl' ); exit ; } if (($email_is_required && (empty($email) || !ereg('@', $email))) || ($name_is_required && empty($name)) || ($address_is_required && empty($address)) || ($contactname_is_required && empty($contactname)) || ($city_is_required && empty($city)) || ($zip_is_required && empty($zip)) || ($phone_is_required && empty($phone))) { header( 'Location: $errorurl' ); exit ; } if ( ereg( '[\r\n]', $name ) || ereg( '[\r\n]', $email ) || ereg( '[\r\n]', $address ) || ereg( '[\r\n]', $contactname ) ) { header( 'Location: $errorurl' ); exit ; } if (empty($email)) { $email = $mailto ; } $fromemail = (!isset( $use_webmaster_email_for_from ) || ($use_webmaster_email_for_from == 0)) ? $email : $mailto ;  if (get_magic_quotes_gpc()) { $comments = stripslashes( $comments ); }  $messageproper = 'This message was sent from:\n' . '$http_referrer\n' . '------------------------------------------------------------\n' . 'Organization Name: $name\n' . 'Contact Name: $contactname\n' .     'Email of sender: $email\n' . 'Address of sender: $address\n' . 'City of sender: $city\n' . 'State of sender: $state\n' . 'Zip Code of sender: $zip\n' . 'Country of sender: $country\n' .            'Fax of sender: $fax\n' .    'Phone of sender: $phone\n' . 'Meeting Name: $mtgname\n' .             'Preferred Dates: $dates\n' .            'Expected Attendance: $attendance\n' .           'Guest Rooms: $guestroom\n' . 'Largest Meeting Room Needed: $mtgroom\n' .              'Decision Timeframe: $timeframe\n' . 'Options:'.implode('\n',$options).'\n'.                              '------------------------- COMMENTS -------------------------\n\n' . $comments . '\n\n------------------------------------------------------------\n' ; $headers = 'From: \'$name\' <$fromemail>' . $headersep . 'Reply-To: \'$name\' <$email>' . $headersep . 'X-Mailer: chfeedback.php 2.13.0' . $headersep . 'MIME-Version: 1.0' . $headersep . $content_type ;  if ($use_envsender) { mail($mailto, $subject, $messageproper, $headers, $envsender ); } else { mail($mailto, $subject, $messageproper, $headers ); } header( 'Location: $thankyouurl' ); exit ;  ?> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T11:37:11+00:00Added an answer on May 11, 2026 at 11:37 am

    Aside from the fact that is some seriously hideous code, to fix your error replace this line:

    $options = $_POST['options'] ; 

    With this:

    $options = array(); if(isset($_POST['options'])) {     $options = $_POST['options']; } 

    The error is basically whenever you don’t select an option $options is not set as an array, so when you try doing implode on it PHP is unhappy because it is expecting an array.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 132k
  • Answers 132k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Gajim does it this way on Windows, OS X and… May 12, 2026 at 6:22 am
  • Editorial Team
    Editorial Team added an answer I ended up moving the hierarchy to an assembly table… May 12, 2026 at 6:22 am
  • Editorial Team
    Editorial Team added an answer This post from Scott Hanselman discusses data binding collections in… May 12, 2026 at 6:22 am

Related Questions

Just noticed I get these errors if I DON'T select a checkbox and submit:
Background In my current project - a server product with no GUI front-end, I'm
I've been mostly working with VB.Net for over a year and just noticed this
Converting my current code project to TDD, I've noticed something. class Foo { public
Disclaimer: I'm stuck on TFS and I hate it. My source control structure looks

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.