Please be sure to read the Documentation and Search the Support Centre . No support is provided for installations not using the Joomla 1.5.26 or Joomla 2.5.9 or Joomla 3.0.3, in other words, you must always have the latest version of Joomla. If it's not supported by Joomla, its not supported here. Please make feature requests and report suspected bugs here too .

Error upon submission of form

Monday, February 20 2012, 09:40 PM
Deprecated: Function eregi() is deprecated in /home/c737musi/public_html/modules/mod_supercontact/tmpl/send.php on line 34
Anything I can do to fix this? (screenshot image attached.)
Attachments:
Like
Responses (9)
  • Accepted Answer

    Tuesday, February 21 2012, 08:48 AM - #permalink
    Not sure, I tested now and received one Copy as the Submitter, How many copies did you receive of the form with the messahe "Test 2 Sends" ?
    Like
    ______________________________________________________________________________________________________________
    If your question has been answered, please mark it as resolved so others may find solutions ;)
    If you use any of our extensions, please consider making a review on the http://extensions.joomla.org/extensions/owner/Mustaq-S"> Joomla! Extensions Directory
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, February 21 2012, 03:03 AM - #permalink
    Do you know why it submits 2 times on one click? (2 submission emails come in)
    Like
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, February 21 2012, 01:06 AM - #permalink
    :p
    Like
    ______________________________________________________________________________________________________________
    If your question has been answered, please mark it as resolved so others may find solutions ;)
    If you use any of our extensions, please consider making a review on the http://extensions.joomla.org/extensions/owner/Mustaq-S"> Joomla! Extensions Directory
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, February 21 2012, 01:04 AM - #permalink
    It worked great!!!! Thanks again Mustaq!

    I have some questions in yootheme support I know you are dying to answer for me! LOL :)
    Like
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, February 21 2012, 12:53 AM - #permalink
    Changes made
    Like
    ______________________________________________________________________________________________________________
    If your question has been answered, please mark it as resolved so others may find solutions ;)
    If you use any of our extensions, please consider making a review on the http://extensions.joomla.org/extensions/owner/Mustaq-S"> Joomla! Extensions Directory
    The reply is currently minimized Show
  • Accepted Answer

    Monday, February 20 2012, 10:55 PM - #permalink
    I would do it, but i have been having horrible luck on this website as you know :) I will ask you to do it please. I will post my FTP info above. THANKS!
    Like
    The reply is currently minimized Show
  • Accepted Answer

    Monday, February 20 2012, 10:04 PM - #permalink
    Or, you could look st mod_supercontact/tmpl/send.php and where you see eregi, place;

      // trim whitespace and validate the submitted data
    $error = '';
    if(trim($_POST['name']) == "" || !eregi("^[A-Za-z]+ [A-Za-z]", trim($_POST['name']))) {
    // name is empty or has illegal charcters
    $error .= "Name is missing or invalid. ";
    }
    if(trim($_POST['email']) == "" || !eregi("^[A-Za-z0-9\_\.-]+@[A-Za-z0-9\_\.-]+.[A-Za-z0-9\_-]+.*", trim($_POST['email']))) {
    // email is empty or has illegal charcters
    $error .= "Invalid email address. ";
    }
    if (trim($_POST['email2']) == "" || !eregi("^[A-Za-z0-9\_\.-]+@[A-Za-z0-9\_\.-]+.[A-Za-z0-9\_-]+.*", trim($_POST['email2']))) {
    // confirm email is empty or has illegal charcters
    $error .= "Invalid confirm email address. ";
    }
    if (trim($_POST['email2']) != trim($_POST['email'])) {
    // confirm email and email do not match
    $error .= "Email and confirm email do not match.";
    }
    if (trim($_POST['tele']) == "" || !eregi("^(([0-9]{1})*[- .(]*([0-9a-zA-Z]{3})*[- .)]*[0-9a-zA-Z]{3}[- .]*[0-9a-zA-Z]{4})+$", trim($_POST['tele']))) {
    // check telephone number format
    //$error .= "Not a valid telephone number.";
    }
    replace above with ;

      // trim whitespace and validate the submitted data
    $error = '';
    if(trim($_POST['name']) == "" || !preg_match("/^[A-Za-z]+ [A-Za-z]/i", trim($_POST['name']))) {
    // name is empty or has illegal charcters
    $error .= "Name is missing or invalid. ";
    }
    if(trim($_POST['email']) == "" || !preg_match("/^[a-z0-9][a-z0-9_.-]*@[a-z0-9.-]+\.[a-z]{2,4}$/i", trim($_POST['email']))) {
    // email is empty or has illegal charcters
    $error .= "Invalid email address. ";
    }
    if(trim($_POST['email2']) == "" || !preg_match("/^[a-z0-9][a-z0-9_.-]*@[a-z0-9.-]+\.[a-z]{2,4}$/i", trim($_POST['email2']))) {
    // confirm email is empty or has illegal charcters
    $error .= "Invalid confirm email address. ";
    }
    if (trim($_POST['email2']) != trim($_POST['email'])) {
    // confirm email and email do not match
    $error .= "Email and confirm email do not match.";
    }
    if (trim($_POST['tele']) == "" || !preg_match("/^(([0-9]{1})*[- .(]*([0-9a-zA-Z]{3})*[- .)]*[0-9a-zA-Z]{3}[- .]*[0-9a-zA-Z]{4})+$/i", trim($_POST['tele']))) {
    // check telephone number format
    //$error .= "Not a valid telephone number.";
    }
    Like
    ______________________________________________________________________________________________________________
    If your question has been answered, please mark it as resolved so others may find solutions ;)
    If you use any of our extensions, please consider making a review on the http://extensions.joomla.org/extensions/owner/Mustaq-S"> Joomla! Extensions Directory
    The reply is currently minimized Show
  • Accepted Answer

    Monday, February 20 2012, 10:02 PM - #permalink
    Can you also add FTP in the Site Details section, so I can make some changes for your higher PHP version ?
    Like
    ______________________________________________________________________________________________________________
    If your question has been answered, please mark it as resolved so others may find solutions ;)
    If you use any of our extensions, please consider making a review on the http://extensions.joomla.org/extensions/owner/Mustaq-S"> Joomla! Extensions Directory
    The reply is currently minimized Show
  • Accepted Answer

    Monday, February 20 2012, 09:58 PM - #permalink
    Sure, I am having a look now
    Like
    ______________________________________________________________________________________________________________
    If your question has been answered, please mark it as resolved so others may find solutions ;)
    If you use any of our extensions, please consider making a review on the http://extensions.joomla.org/extensions/owner/Mustaq-S"> Joomla! Extensions Directory
    The reply is currently minimized Show
Your Reply

Premium Membership