Menu

Email problems

Help
tyriek
2006-04-01
2013-06-03
  • tyriek

    tyriek - 2006-04-01

    I cant get it to email the responses to me.  1 of the many problems im experiencing with this darn site.  Heres quote page

    http://www.rangermoving.com/phpform/use/quote/form1.html

    and heres the process

    <?php
    include("global.inc.php");
    $errors=0;
    $error="The following errors occured while processing your form input.<ul>";
    pt_register('POST','Name');
    pt_register('POST','Phone');
    pt_register('POST','AdditionalPhone');
    pt_register('POST','Email');
    pt_register('POST','MovingFrom');
    $MovingFrom=preg_replace("/(\015\012)|(\015)|(\012)/","&nbsp;<br />", $MovingFrom);pt_register('POST','Whattypeofbuildingatloadlocation');
    pt_register('POST','Aretherestairsattheloadlocation');
    pt_register('POST','Ifyeshowmanyflights');
    pt_register('POST','Isthereanelevatoratloadlocation');
    pt_register('POST','MovingTo');
    $MovingTo=preg_replace("/(\015\012)|(\015)|(\012)/","&nbsp;<br />", $MovingTo);pt_register('POST','Whattypeofbuildingatunloadlocation');
    pt_register('POST','Aretherestairsattheunloadlocation');
    pt_register('POST','Ifyeshowmanyflightsatunloadlocation');
    pt_register('POST','Isthereanelevatoratunloadlocation');
    pt_register('POST','AdditionalComments');
    $AdditionalComments=preg_replace("/(\015\012)|(\015)|(\012)/","&nbsp;<br />", $AdditionalComments);if($Name=="" || $Phone=="" || $MovingFrom=="" || $Whattypeofbuildingatloadlocation=="" || $MovingTo=="" || $Whattypeofbuildingatunloadlocation=="" ){
    $errors=1;
    $error.="<li>You did not enter one or more of the required fields. Please go back and try again.";
    }
    if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$Email)){
    $error.="<li>Invalid email address entered";
    $errors=1;
    }
    if($errors==1) echo $error;
    else{
    $where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
    $message="Name: ".$Name."
    Phone: ".$Phone."
    Additional Phone: ".$AdditionalPhone."
    Email: ".$Email."
    Moving From: ".$MovingFrom."
    What type of building at load location: ".$Whattypeofbuildingatloadlocation."
    Are there stairs at the load location: ".$Aretherestairsattheloadlocation."
    If yes how many flights: ".$Ifyeshowmanyflights."
    Is there an elevator at load location: ".$Isthereanelevatoratloadlocation."
    Moving To: ".$MovingTo."
    What type of building at unload location: ".$Whattypeofbuildingatunloadlocation."
    Are there stairs at the unload location: ".$Aretherestairsattheunloadlocation."
    If yes how many flights at unload location: ".$Ifyeshowmanyflightsatunloadlocation."
    Is there an elevator at unload location: ".$Isthereanelevatoratunloadlocation."
    Additional Comments: ".$AdditionalComments."
    ";
    $message = stripslashes($message);
    mail("rangermoving@yahoo.com","Form Submitted at your website",$message,"From: phpFormGenerator");
    ?>

    <!-- This is the content of the Thank you page, be careful while changing it -->

    <h2>Thank you! Someone will be contacting you within 24 hours.  If you need to move today please call us at. 817-929-3336</h2>

    <table width=50%>
    <tr><td>Name: </td><td> <?php echo $Name; ?> </td></tr>
    <tr><td>Phone: </td><td> <?php echo $Phone; ?> </td></tr>
    <tr><td>Additional Phone: </td><td> <?php echo $AdditionalPhone; ?> </td></tr>
    <tr><td>Email: </td><td> <?php echo $Email; ?> </td></tr>
    <tr><td>Moving From: </td><td> <?php echo $MovingFrom; ?> </td></tr>
    <tr><td>What type of building at load location: </td><td> <?php echo $Whattypeofbuildingatloadlocation; ?> </td></tr>
    <tr><td>Are there stairs at the load location: </td><td> <?php echo $Aretherestairsattheloadlocation; ?> </td></tr>
    <tr><td>If yes how many flights: </td><td> <?php echo $Ifyeshowmanyflights; ?> </td></tr>
    <tr><td>Is there an elevator at load location: </td><td> <?php echo $Isthereanelevatoratloadlocation; ?> </td></tr>
    <tr><td>Moving To: </td><td> <?php echo $MovingTo; ?> </td></tr>
    <tr><td>What type of building at unload location: </td><td> <?php echo $Whattypeofbuildingatunloadlocation; ?> </td></tr>
    <tr><td>Are there stairs at the unload location: </td><td> <?php echo $Aretherestairsattheunloadlocation; ?> </td></tr>
    <tr><td>If yes how many flights at unload location: </td><td> <?php echo $Ifyeshowmanyflightsatunloadlocation; ?> </td></tr>
    <tr><td>Is there an elevator at unload location: </td><td> <?php echo $Isthereanelevatoratunloadlocation; ?> </td></tr>
    <tr><td>Additional Comments: </td><td> <?php echo $AdditionalComments; ?> </td></tr>
    </table>
    <!-- Do not change anything below this line -->

    <?php
    }
    ?>

     
    • TNTEverett

      TNTEverett - 2006-04-01

      I have used the generator for many forms and have help many people overcome whatever problems they might have.  I'm not sure what to make of your problem yet but have you contacted your host to see if you should be capable of using PHP and the PHP mail function? 

       
    • tyriek

      tyriek - 2006-04-01

      I believe that is the problem.  This site is hosted by Yahoo.  And it said something or the other about enabling PHP/Email.  Its sends me to this

      http://www.webmaster-showcase.net/yahoo/SendMail.php

       
      • TNTEverett

        TNTEverett - 2006-04-01

        Have you enabled it?  Are you still having problems.

         
    • tyriek

      tyriek - 2006-04-02

      I enabled it and still having problems

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.