Results 1 to 8 of 8

Thread: PHP Error...AGAIN! Please help.

  1. #1
    Join Date
    Jan 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP Error...AGAIN! Please help.

    As you know the site I'm working on is http://www.qualityremodelinginc.net. On the Estimate page I have generated an email form, but I would like to change their php page to my own. I just need it to send the email and if its not too much to ask, to redirect too. If someone could wip a form up, I would DEEPLY appreciate that. Here is some information:

    Email:Jkk088@sbcglobal.net

    Form Page:http://www.Qualityremodelinginc.net/Estimates.html


    Estimates.html HTML:

    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>New Page 1</title>
    </head>

    <body>

    </body>

    </html>
    <html>
    <head>
    <title>Quality Remodeling Incorporated</title>
    <body style="text-align: center">
    <body bgcolor=ffffcc>
    </head>


    <table align=center border="1" width="848" background="http://qualityremodelinginc.net/images/lightwood.jpg" id="table3">
    <tr>
    <td align="left" width="838">
    <a href="mailto:Customerservice@Qualityremodelinginc.net">
    <img src="http://www.qualityremodelinginc.net/images/Place.gif" align="right" border=0></a><a href="http://www.qualityremodelinginc.net/"><img src="http://www.qualityremodelinginc.net/images/logowithquote.gif" border="0"></a></td>
    </tr>
    </table>


    </body>
    <p align="center">

    <MAP NAME="Image22">
    <AREA SHAPE="rect" COORDS="0, 1, 101, 26" HREF="http://www.qualityremodelinginc.net/About.html">
    <AREA SHAPE="rect" COORDS="105, 0, 227, 26" HREF="http://www.qualityremodelinginc.net/Services.html">
    <AREA SHAPE="rect" COORDS="346, 0, 474, 26" HREF="http://www.qualityremodelinginc.net/Gallery.html">
    <AREA SHAPE="rect" COORDS="478, 0, 710, 26" HREF="http://www.qualityremodelinginc.net/Testimonials.html">
    <AREA SHAPE="rect" COORDS="713, 0, 839, 26" HREF="http://www.qualityremodelinginc.net/Contact.html">
    </MAP>
    <IMG NAME="Image122" SRC="http://www.qualityremodelinginc.net/images/Image22.bmp" BORDER="0" USEMAP="#Image22" align="center"><MAP NAME="Image22"></MAP></p>
    <p align="left"><font face="Times New Roman" size="5"><u>Appointment Sheet<font color="#663300">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </font>&nbsp; </u></font></p>
    <table border="0" width="83%" id="table4">
    <tr>
    <td>
    <ul>
    <li>
    <p align="left"><font size="5"><font color="#663300">Phone:</font> (773)
    509-0200</font>
    <li>
    <p align="left"><font size="5"><font color="#663300">Fax:</font> (773)
    539-2177</font>
    </ul>


    <p align="center"><b><u>Form is down. Stay posted</u></b></p>
    <form enctype="multipart/form-data" method="post" action="http://www.freedback.com/mail.php" accept-charset="UTF-8">
    <div>
    <input type="hidden" name="acctid" id="acctid" value="3qqiprwrgz0x37l0" />
    <input type="hidden" name="formid" id="formid" value="163156" />
    </div>
    <table cellspacing="5" cellpadding="5" border="0">
    <tr>
    <td valign="top">
    <strong>First Name:</strong>
    </td>
    <td valign="top">
    <input type="text" name="field-b4a8a603bd96bab" id="field-b4a8a603bd96bab" size="40" value="" />

    </td>
    </tr>
    <tr>
    <td valign="top">
    <strong>Last Name:</strong>
    </td>
    <td valign="top">
    <input type="text" name="field-ade71a014d79530" id="field-ade71a014d79530" size="40" value="" />

    </td>
    </tr>
    <tr>
    <td valign="top">
    <strong>Address:</strong>
    </td>
    <td valign="top">
    <input type="text" name="field-369e69a5fc9b139" id="field-369e69a5fc9b139" size="40" value="" />

    </td>
    </tr>
    <tr>
    <td valign="top">
    <strong>Unit #:</strong>
    </td>
    <td valign="top">
    <input type="text" name="field-de9e1033e00a4ad" id="field-de9e1033e00a4ad" size="40" value="" />

    </td>
    </tr>
    <tr>
    <td valign="top">
    <strong>City:</strong>
    </td>
    <td valign="top">
    <input type="text" name="field-57b7f4dcd274b99" id="field-57b7f4dcd274b99" size="40" value="" />

    </td>
    </tr>
    <tr>
    <td valign="top">
    <strong>State:</strong>
    </td>
    <td valign="top">
    <input type="text" name="field-a59482b131cc135" id="field-a59482b131cc135" size="40" value="" />

    </td>
    </tr>
    <tr>
    <td valign="top">
    <strong>Zip:</strong>
    </td>
    <td valign="top">
    <input type="text" name="field-1f5ced33413b410" id="field-1f5ced33413b410" size="40" value="" />

    </td>
    </tr>
    <tr>
    <td valign="top">
    <strong>Phone:</strong>
    </td>
    <td valign="top">
    <input type="text" name="field-177db82ff488f8a" id="field-177db82ff488f8a" size="40" value="" />

    </td>
    </tr>
    <tr>
    <td valign="top">
    <strong>Cell:</strong>
    </td>
    <td valign="top">
    <input type="text" name="field-823f6e592efefe1" id="field-823f6e592efefe1" size="40" value="" />

    </td>
    </tr>
    <tr>
    <td valign="top">
    <strong>Work:</strong>
    </td>
    <td valign="top">
    <input type="text" name="field-d56d36f8a7da341" id="field-d56d36f8a7da341" size="40" value="" />

    </td>
    </tr>
    <tr>
    <td valign="top">
    <strong>Email Address:</strong>
    </td>
    <td valign="top">
    <input type="text" name="email" id="email" size="40" value="" />

    </td>
    </tr>
    <tr>
    <td valign="top">
    <strong>Services Requested:</strong>
    </td>
    <td valign="top">
    <input type="checkbox" name="field-a2dd81ac461ef9d[]" id="field-a2dd81ac461ef9d_0[]" value="Kitchen" /> Kitchen<br/>
    <input type="checkbox" name="field-a2dd81ac461ef9d[]" id="field-a2dd81ac461ef9d_1[]" value="Bathroom" /> Bathroom<br/>
    <input type="checkbox" name="field-a2dd81ac461ef9d[]" id="field-a2dd81ac461ef9d_2[]" value="Basement" /> Basement<br/>
    <input type="checkbox" name="field-a2dd81ac461ef9d[]" id="field-a2dd81ac461ef9d_3[]" value="Porch/Deck" /> Porch/Deck<br/>
    <input type="checkbox" name="field-a2dd81ac461ef9d[]" id="field-a2dd81ac461ef9d_4[]" value="Roofing" /> Roofing<br/>
    <input type="checkbox" name="field-a2dd81ac461ef9d[]" id="field-a2dd81ac461ef9d_5[]" value="Room Addition" /> Room Addition<br/>
    <input type="checkbox" name="field-a2dd81ac461ef9d[]" id="field-a2dd81ac461ef9d_6[]" value="Dormer/Attic" /> Dormer/Attic<br/>
    <input type="checkbox" name="field-a2dd81ac461ef9d[]" id="field-a2dd81ac461ef9d_7[]" value="Siding" /> Siding<br/>
    <input type="checkbox" name="field-a2dd81ac461ef9d[]" id="field-a2dd81ac461ef9d_8[]" value="Windows" /> Windows<br/>
    <input type="checkbox" name="field-a2dd81ac461ef9d[]" id="field-a2dd81ac461ef9d_9[]" value="Tuckpointing" /> Tuckpointing<br/>

    </td>
    </tr>
    <tr>
    <td valign="top">
    <strong>Other:</strong>
    </td>
    <td valign="top">
    <input type="text" name="field-91675b3489158a9" id="field-91675b3489158a9" size="40" value="" />

    </td>
    </tr>
    <tr>
    <td colspan="2" align="center">
    <input type="submit" value=" Submit Form " />
    </td>
    </tr>
    </table>
    </form>

    </p>


    </td>
    </tr>
    </table>

    <table id="table2" height="46" width="32%" background="http://qualityremodelinginc.net/images/lightwood.jpg" border="1">
    <tr>
    <td>
    <p align="center"><a href="http://www.qualityremodelinginc.net">
    <img src="http://qualityremodelinginc.net/images/homebutton.bmp" border="0"></a></td>
    </tr>
    </table>

    </html>
    Form Html (created in Dreamweaver. The form HTML I want.):
    <html>

    <FORM METHOD="POST" ACTION="http://www.qualityremodelinginc.net/contact.php">
    <p><br>
    <b>First Name:</b>
    <input type="text" name="name2" size="30">
    </p>
    <p><strong>Last Name:</strong>
    <input type="text" name="name22" size="30">
    </p>
    <p><strong>Address:</strong>
    <input type="text" name="name23" size="45">
    <strong>Unit #:</strong>
    <input type="text" name="name24" size="20">
    </p>
    <p><strong>City:</strong>
    <input type="text" name="name25" size="30">
    </p>
    <p><strong>State:</strong>
    <input type="text" name="name26" size="8">
    </p>
    <p><strong>Zip:</strong>
    <input type="text" name="name27" size="15">
    </p>
    <p><strong>Phone:</strong>
    <input type="text" name="name28" size="30">&nbsp;
    <strong>Cell:</strong>
    <input type="text" name="name29" size="25">&nbsp;
    <strong>Work:</strong>
    <input type="text" name="name210" size="25">
    </p>
    <p><strong>Email Address :</strong>
    <input type="text" name="name211" size="45">
    <br><br>
    <strong>Services Requested:</strong><br>
    <INPUT TYPE="checkbox" NAME="Kitchen" VALUE="Kitchen">
    Kitchen<br>
    <INPUT TYPE="checkbox" NAME="Bathroom" VALUE="Bathroom">
    Bathroom<br>
    <INPUT TYPE="checkbox" NAME="Basement" VALUE="Basement">
    Basement<br>
    <INPUT TYPE="checkbox" NAME="Porch/Deck" VALUE="Porch/Deck">
    Porch/Deck<br>
    <INPUT TYPE="checkbox" NAME="Roofing" VALUE="Roofing">
    Roofing<br>
    <INPUT TYPE="checkbox" NAME="Room Addition" VALUE="Room Addition">
    Room Addition<br>
    <INPUT TYPE="checkbox" NAME="Dormer/Attic" VALUE="Dormer/Attic">
    Dormer/Attic<br>
    <INPUT TYPE="checkbox" NAME="Siding" VALUE="Siding">
    Siding<br>
    <INPUT TYPE="checkbox" NAME="Windows" VALUE="Windows">
    Windows<br>
    <INPUT TYPE="checkbox" NAME="Tuckpointing" VALUE="Tuckpointing">
    Tuckpointing<br><br>
    <INPUT TYPE="submit">
    <INPUT TYPE="reset">
    </p>
    </FORM>
    </html>

    thanks SO much, you guys rock.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    The following code is going off of the second html form you posted.

    Code:
    <?php
    /*Contact.php*/
    
    //configuration:
    
    $mailto = "me@mydomain.com"; //your email address to send to
    $subject = "Contact Form"; //subject of the email.
    $redirect = "index.php"; //where to redirect to after email sent.
    
    /*######### End Config #########*/
    
    $header = "From: ".$_POST['name2']." ".$_POST['name22']." <".$_POST['name211'].">";
    
    $services = $_POST['Kitchen'].", ".$_POST['Bathroom'].", ".$_POST['Basement'].", ".$_POST['Porch/Deck'].", ".$_POST['Roofing'].", ".$_POST['Room Addition'].", ".$_POST['Dormer/Attic'].", ".$_POST['Siding'].", ".$_POST['Windows'].", ".$_POST['Tuckpointing']; 
    
    $msg = "This message is from the contact form on your website.\r\n";
    $msg .= "--------------------------------------------------------------------\r\n";
    $msg .= "Name: ".$_POST['name2']." ".$_POST['name22']."\r\n\r\n";
    $msg .= "Address: ".$_POST['name23']." Unit: ".$_POST['name24']."\r\n";
    $msg .= $_POST['name25'].", ".$_POST['name26']." ".$_POST['name27']."\r\n\r\n";
    $msg .= "Phone: ".$_POST['name28']." Cell: ".$_POST['name29']." Work: ".$_POST['name210']."\r\n\r\n";
    $msg .= "Email Address: ".$_POST['name211']."\r\n\r\n";
    $msg .= "Services Requested: ".$services."\r\n\r\n";
    $msg .= "------------------------------------------------------------------";
    
    mail($mailto, $subject, $msg, $header);
    
    header('Location: '.$redirect);
    ?>
    Please note this is not tested. Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jan 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Okay I will try it out. If this works, I will be forever grateful! Thanks, I REALLY hope it works!!! Thanks for your help.

  4. #4
    Join Date
    Jan 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Arg! No it didnt work. Something must be wrong. Is there anything else I can post to help?

  5. #5
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    So what exactly is it doing, or not doing?
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  6. #6
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Yes, you must be specific in order to geta helpful responese. What it is/isn't doing is helpful to us. Also,if you are getting error messages, or anything like that would help. The code itself should work fine as long as you use the second form in your original post because that is what I went off of when I made the script.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  7. #7
    Join Date
    Jan 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh ok. I'll have to work with it more. I think it just goes to an error 404 page. I will post asap tomorrow Thanks guys

  8. #8
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    If it goes to an error 404 page, that means the page is not uploaded to (or non existant on) the server. Another possibility could be that the form action is not set correctly. Please post any other details you may have as so we can resolve this.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

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
  •