Results 1 to 5 of 5

Thread: Unwanted code in auto response of form.

  1. #1
    Join Date
    May 2011
    Posts
    8
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Unwanted code in auto response of form.

    I don't know why but I'm getting a line of unwanted text in both my response form after someone contacts me, and the page that tells me of an improperly formatted email address.

    http://www.positivemotivationdesigns.com/contact.html

    the message reads: Deprecated: "Function eregi() is deprecated in /home/content/p/o/s/posi0621/html/ProcessForm.php on line 645"

    But when I look in the form code at line 645 I don't see the problem.

    This is my first website,

    Thanks in advance, Bill

    Here is some code from my form"
    PHP Code:
    <?php

    // ProcessForm 3.0.15 by Nate Baldwin, [url]www.mindpalette.com[/url] - copyright 2007 (last updated November 20, 2007)
    @$suppress error_reporting(0);
    unset(
    $recipients);
    $badIPs = array();

    // -------------------------------------------------------------------------------------------------------------------------------
    //   START USER-EDITABLE SETTINGS...
    // -------------------------------------------------------------------------------------------------------------------------------

        // LIST OF EMAIL RECIPIENTS...
        
    $recipients[0] = "info@positivemotivationdesigns.com";
        
    $recipients[1] = "email_address_here";
        
    $recipients[2] = "email_address_here";
        
    $recipients[3] = "email_address_here";
        
    $recipients[4] = "email_address_here";
        
    $recipients[5] = "email_address_here";
        
    $recipients[6] = "email_address_here";
        
    $recipients[7] = "email_address_here";
        
    $recipients[8] = "email_address_here";
        
    $recipients[9] = "email_address_here";

    // ...add as many "$recipients" lines as you need, just give each address a different number inside the [brackets]

    // OPTIONAL SETTINGS -------------------------------------------------------------------------------------------------------------
        
        
    $dateFormat 1;      // see options listed below (1, 2 or 3)...
        
        /*
        Date/Time Formatting Options (enter the key number, 1 - 3)...
        1 = "January 4, 2004 @ 6:00 pm";
        2 = "2004-01-04 @ 18:00";
        3 = "4 January 2004, 18:00";
        */
        
        
    $replaceUnderscores true;     // enter true or false - changes underscores to spaces in field names if true
        
    $initialCaps true;             // enter true or false - capitalizes the first letter of every word in field names if true
        
    $attachmentMax 2000;             // in KB (1000 = 1 MB) Maximum file attachment/upload size
        
    $serverTimeOffset = -1;             // number of hours to add or subtract from server time to get your local time (-1, +2, 0, etc.)
        
    $doubleSpaceEmail true;        // true to double space between fields in email message. false for single space.
        
    $forceAttachText true;        // false to let text attachments become email text. true to force as attached text file.
        
    unset($referrerCheck);
        
    $referrerCheck true;            // make sure form is on same server as script (recommended - to avoid hacking)
        
        
        // Styling for Thank You / Confirmation page (in CSS)...
        
        // Page background color and styling for <body> <div> <td> <p>...
        
    $pageStyle 'background-color: white';
        
        
    // Main page text...
        
    $MPinfo 'color: black; font-size: 13px; font-family: Verdana, Arial, Helvetica, sans-serif';
        
        
    // Form field names and values...
        
    $MPFieldNames 'color: black; font-weight: bold; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif';
        
    $MPFieldValues 'color: #00327d; font-style: normal; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif';
        
        
    // Headline (Thank You) text...
        
    $MPthankyou 'color: #00327d; font-size: 36px; font-family: "Times New Roman", Times, Georgia, serif';
        
        
    // Sub-Head (sent from and date/time text)...
        
    $MPsubhead 'color: #7d8287; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif';
        
        
    // Error message text...
        
    $MPerror 'color: #c80019; font-size: 13px; font-family: Verdana, Arial, Helvetica, sans-serif';
        
    $MPerrorlist 'color: #c80019; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif';
        
        
    // JavaScript back to form text...
        
    $MPsmall 'color: black; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif';
        
        
    // Text links (back to home)...
        
    $MPlink 'color: #00327d; font-size: 13px; font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none';
        
        
    // Text link rollovers...
        
    $MPlink_hover 'color: #0093ff; font-size: 13px; font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: underline';
        
        
    // Credit text...
        
    $MPcredit 'color: #7d8287; font-size: 9px; font-family: Verdana, Arial, Helvetica, sans-serif';

    // The following optional settings are only used if writing form results to a mysql database -------------------------------------

        
    $mysql_access_file "";
        
    // between the double quotes, enter the path to your file that establishes a MySQL database connection for the script to use.
        // there is a default file you can use as a template in the Extras folder included with this download - "ProcessFormDB.php"
        // it's recommended for security reasons to keep the file above your web root directory. Consult the manual for details.

    // The following optional settings are only used if writing form results to a text file ------------------------------------------

        
    $includeFieldNames false;        // true if field names are written into text file, false if only values
        
        // if $includeFieldName = true, then specify character(s) to separate names from values...
        
    $sepNameVals ": ";            // character(s) to separate field names and values (": " = colon and space)
        
        
    $sepFormFields "\t";            // character(s) to separate form fields ("\t" = tab)
        
    $sepFormEntries "\n";            // character(s) to separate form entries ("\n" = unix line break - or a RETURN)
        
        // the values below say what character to replace special characters with above, if used in text entry form fields, etc...
        
    $changeNameVals " ";            // replace extra name/value separation characters with this (a space by default)
        
    $changeFormFields " ";        // replace extra form field separation characters with this (a space by default)
        
    $changeFormEntries " ";        // replace extra form entry separation characters with this (a space by default)

    // the following optional settings determine the confirmation message the visitors see after a successful submission -------------

        // Thank you / confirmation title...
        
    $confirmMsgTitle "Thank You!";
        
        
    // Thank you / confirmation message text...
        // NOTE: do not change the "[message recipient]" text (though it can be moved)
        // the "[message recipient]" text will be replaced by either the recipient email address, or
        // the value of the "recipient_name" form field. If you want neither, just delete the "[message recipient]" text.
        
    $confirmMsgText "Below is the information you submitted to [message recipient]:";

    // the following optional settings determine the error message the visitors see when the script finds a problem ------------------

        // error message for when "required" fields are left blank...
        // NOTE: will be followed by list of field names
        
    $reqErrMsg "The following REQUIRED field(s) were left empty:";
        
        
    // error message for when "email_only" fields aren't valid email formats...
        // NOTE: do not change the "[email field]" text (though it can be moved) - will be replaced with offending field name
        
    $emailErrMsg "The value entered for [email field] does not appear to be a valid email address.";
        
        
    // error message for when "numbers_only" fields contain more than just numbers...
        // NOTE: do not change the "[number field]" text (though it can be moved) - will be replaced with offending field name
        
    $numErrMsg "The value entered for [number field] can only be numbers.";
        
        
    // error message for when "letters_only" fields contain more than just numbers...
        // NOTE: do not change the "[letter field]" text (though it can be moved) - will be replaced with offending field name
        
    $letterErrMsg "The value entered for [letter field] can only be upper or lower case letters.";
        
        
    // error message for when "force_match" field entries do not match...
        // NOTE: will be followed by list of field names
        
    $matchErrMsg "The following field values must match:";
    Last edited by keyboard; 01-21-2013 at 01:19 PM. Reason: Format: Php tags [php][/php]

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    The error means that the script is using a php function that is no longer supported in the version of php running on your server. See here for info and possible solution routes: http://stackoverflow.com/questions/4...-is-deprecated

    The error is coming from the "ProcessForm.php" file but it looks like you've posted the code for a config file. If you are unable to update/fix the script yourself, please post the code for the "ProcessForm.php" file and somebody may be able to look at it for you.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. The Following User Says Thank You to Beverleyh For This Useful Post:

    livingagain75 (01-21-2013)

  4. #3
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Update :

    You're in luck! The developer has uploaded an updated script that addresses compatability in newer versions of php. You can download their revised script file from July 2012 here: http://www.mindpalette.com/archives/processform/
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  5. The Following User Says Thank You to Beverleyh For This Useful Post:

    livingagain75 (01-21-2013)

  6. #4
    Join Date
    May 2011
    Posts
    8
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Thanks Beverley, I must admit I am a little lost when it comes to PHP or any programming for that matter. Lol I will read the manual and try again. Thank you for your responses...

    I really like your web site too...

    BTW Everything is working great now...

    Bill
    Last edited by livingagain75; 01-21-2013 at 07:39 PM.

  7. #5
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Thanks Bill - it was very nice of you to say so
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. php auto response help!
    By nathanw in forum PHP
    Replies: 1
    Last Post: 08-17-2010, 02:59 PM
  2. How to create auto response number
    By ratih in forum PHP
    Replies: 3
    Last Post: 11-13-2008, 04:09 AM
  3. php form auto response
    By hamfast in forum PHP
    Replies: 8
    Last Post: 11-06-2008, 10:40 PM
  4. automated response (auto number)
    By ratih in forum Looking for such a script or service
    Replies: 0
    Last Post: 06-09-2008, 03:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •