Yahoo Form Problem

Discussion in 'PHP' started by jawinn, Aug 14, 2007.

  1. #1
    I can't get this email form to work properly on Yahoo's hosting service. It woks just fine on other hosts like Godaddy. Can some one have a look and see if there is anything that could be changed to make this thing work?

    Yahoo's online help constantly references this page.

    Any help is much appreciated.

    
    
                      <?php
    
    /*** Enter the email submissions are going to here ***/
    $to = "xxx@domain.com";
    
    ?>
    <HTML>
    <HEAD>
    <TITLE>Consultation</TITLE>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    <style type="text/css">
    
    </style>
    </HEAD>
    <BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
    <!-- ImageReady Slices (home.ai) -->
    <div align="center">
      <TABLE WIDTH=707 BORDER=0 CELLPADDING=0 CELLSPACING=0 bordercolor="#333333" bgcolor="#FFFFFF">
        <TR>
          <TD ALIGN=left VALIGN=top><TABLE WIDTH=707 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    
              <TR>
                <TD ALIGN=left VALIGN=top><blockquote>
                    <p><br>
                        <span class="style3"><strong>Lynn Chevalier, ASP, IAHSP</strong><br>
                    703.992.6353 or 202.412.6445<br>
                    <a href="mailto:lynn@stagedrightva.com ">lynn@stagedrightva.com </a><br>
                      </span></p>
    
                </blockquote></TD>
                <TD ALIGN=left VALIGN=top>&nbsp;</TD>
              </TR>
              <TR>
                <TD ALIGN=left VALIGN=top><IMG SRC="images/home_05.jpg" WIDTH=377 HEIGHT=77 ALT=""></TD>
                <TD ALIGN=left VALIGN=top><img src="images/home_06.jpg" alt="" width=330 height=77 border="0" usemap="#Map2Map"></TD>
              </TR>
            </TABLE>
              <table width="707" border="0" cellspacing="0" cellpadding="0">
    
                <tr>
                  <td width="707" valign="top"><blockquote>
                      <p><span class="style3"><span class="style2">Consultation Packages </span></span></p>
                      <p><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>A consultation offers assistance to owners and realtors at many levels:</SPAN></FONT></p>
                    <BLOCKQUOTE>
                        <p><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><B>Level 1</B> - After meeting with you and touring &nbsp;the house, a personalized step-by-step &quot;how to&quot; report is prepared &nbsp;containing recommendations complete with photos, color selections, and suggestions of furniture and/or fixture placement/ replacements &nbsp;including links to websites containing examples of choices. &nbsp;Unlimited e-mail support is also provided until your house is sold.<BR>
    
                                <BR>
                                <B>Level 2</B> &nbsp;- In addition to the report and e-mail &nbsp;support, 3 hours of &quot;hands-on&quot; assistance with decluttering, house &nbsp;fluffing, furniture placement, etc. is provided.<BR>
                                <BR>
                      <B>Level 3</B> - All of the above, plus assistance with furniture rental/purchase, coordinating contractors, and more.</SPAN></FONT></p>
    
                     <p class="style11">Call and mention this webpage to receive $25.00 off a home consultation!<br>
                     Or fill out the form below:</p>
    
    <!-- Start Form -->
    <?php
    if($_POST['Submit'])
    	{
    	$name = $_POST['name'];
    	$phone = $_POST['phone'];
    	$email = $_POST['email'];
    	$person = $_POST['person'];
    	
    	$time = $_POST['time'];
    	
    	// error check
    	
    	if(!$name || !$phone || !$email || !$person || !$time)
    		{
    		echo '<script type="text/javascript">alert("Please make sure all fields are complete");</script>';
    		}else{
    
    $headers = "From: $name <$email>" . "\r\n";
    
    
    		
    		mail($to, "Submission on form", "You have received a new submission, the form results are as follows \n Person Name: $name \n Persons Email: $email \n Phone: $phone \n Selection Type: $person \n Best time to contact is $time \n Many Thanks.", $headers) or die ("Mail Failed please try again");
    		echo "<p>Thankyou $name your submission has been sent we will get back to you asap</p>";
    	}		
    }
    ?>
    <blockquote>
     <form name="form1" method="post" action="">
    <input name="name" type="text" id="name">
    <span class="style12">Name</span>  <br /> <br />                 
    <input name="phone" type="text" id="phone">
    <span class="style12">Phone Number </span>  <br /> <br />              
    <input name="email" type="text" id="email">
    <span class="style12">Email Address </span>  <br /> <br />                
    <p>
    <input name="person" value="realtor" type="radio">
    <span class="style12">Realtor</span></p>
    <p class="style12">
    <input name="person" value="homeowner" type="radio">
    
    Homeowner</p>
    <input name="time" type="text" id="time">
    <span class="style12">Best Time to Contact</span> <br /> <br />                   
    <input name="Submit" value="Send" type="submit">
    </form>
    </blockquote>
    <!-- end form -->
                        <p class="style11">&nbsp;</p>
                        <p class="style11">&nbsp;</p>
                    </BLOCKQUOTE>
                      </blockquote>
    
                  <span class="style3"></span></td>
                </tr>
                <tr>
                  <td valign="top"><p align="center"><span class="style3"><span class="style5"><a href="living.html"><img src="images/flower.jpg" width="18" height="18" border="0"> </a><a href="sale.html">Staging for Sale</a><img src="images/spacer.gif" width="15" height="8" border="0"></span><img src="images/flower.jpg" width="18" height="18"> <span class="style5"><a href="living.html">Staging for Living <img src="images/spacer.gif" width="15" height="1" border="0"><img src="images/flower.jpg" width="18" height="18" border="0"> </a><a href="organize.html">Home Organization</a><a href="living.html"><img src="images/spacer.gif" width="15" height="1" border="0"></a><img src="images/flower.jpg" width="18" height="18" border="0"> <a href="artwork.html">Original Artwork</a><a href="living.html"><img src="images/spacer.gif" width="14" height="8" border="0"></a><img src="images/flower.jpg" width="18" height="18" border="0"> <a href="testimonials.html">Testimonials</a> </span></span></p>
    
                      <p align="center"><span class="style3"><span class="style5"><a href="faq.html"><img src="images/flower.jpg" width="18" height="18" border="0"></a> <a href="faq.html">FAQ</a><a href="living.html"><img src="images/spacer.gif" width="15" height="8" border="0"></a><img src="images/flower.jpg" width="18" height="18" border="0"> <a href="index.html">Home</a></span></span></p>
                      <hr>
                      <div align="center">
                        <p class="style4">&copy; 2006 Staged&reg; Right. All rights reserved. </p>
                        <p class="style4">&nbsp;</p>
    
                        <p class="style4">&nbsp;</p>
                        <p class="style4"><img src="images/MWStudiologo.gif" width="183" height="38" border="0" usemap="#MapMap2"><br>
                            <br>
              Web site design by MW Studio.</p>
                      </div>
                      <p>&nbsp;</p></td>
                </tr>
                <tr>
    
                  <td valign="top">&nbsp;</td>
                </tr>
              </table>
              <map name="MapMap2">
                <area shape="rect" coords="1,1,180,39" href="http://www.mwstudio.net" target="_blank">
              </map>          <p>
                <map name="Map2Map">
                  <area shape="rect" coords="28,8,305,72" href="index.html">
    
                </map>
            </p>
              <p>&nbsp; </p></TD>
        </TR>
      </TABLE>
      <!-- End ImageReady Slices -->
      <br>
    </div>
    <p>&nbsp;</p>
    
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <map name="Map">
      <area shape="rect" coords="1,1,180,39" href="http://www.mwstudio.net" target="_blank">
    </map>
    <map name="Map2">
      <area shape="rect" coords="28,7,273,72" href="index.html">
    </map>
    <map name="Map3">
      <area shape="rect" coords="79,18,325,69" href="index.html">
    </map>
    <map name="Map4">
      <area shape="rect" coords="1,1,133,134" href="living2.html">
    
    </map>
    <map name="Map5">
      <area shape="rect" coords="1,1,136,136" href="living3.html">
    </map>
    <map name="Map6">
      <area shape="rect" coords="1,1,135,134" href="living4.html">
    </map>
    </BODY>
    </HTML>
    
    
    Code (markup):
     
    jawinn, Aug 14, 2007 IP
  2. ecentricNick

    ecentricNick Peon

    Messages:
    351
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ecentricNick, Aug 14, 2007 IP
  3. jawinn

    jawinn Active Member

    Messages:
    1,024
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    88
    #3
    Yes and called them. Those directions are worthless. Plus their phone support ranks as the worst I have every used for a company that large.
     
    jawinn, Aug 14, 2007 IP
  4. ecentricNick

    ecentricNick Peon

    Messages:
    351
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The only other thing I can think of is to try adding the -f paramter into the call.

    mail($to, "Submission on form", "You have received a new submission, the form results are as follows \n Person Name: $name \n Persons Email: $email \n Phone: $phone \n Selection Type: $person \n Best time to contact is $time \n Many Thanks.", $headers, "-f ") or die ("Mail Failed please try again");
     
    ecentricNick, Aug 14, 2007 IP