[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Having Trouble With Coding

Posted on 2008-11-12
22
Medium Priority
?
204 Views
Last Modified: 2012-08-13
currently im am working on a website (www.newimagesphoto.com). On The Sign Registry / Contact page, it should redirect to a thank you page and send an email with the gathered information to the user.

Direct Links To Pages:
http://www.newimagesphoto.com/contact/index.html - Sign Registry / Contact Page
http://www.newimagesphoto.com/contact/form.php - The PHP File Used by the page.
0
Comment
Question by:mchyzik
  • 12
  • 10
22 Comments
 

Author Comment

by:mchyzik
ID: 22945994
changed the page from /index.html to /form.html, the thank you page now loads correctly but emails are still not sent
0
 
LVL 15

Expert Comment

by:quincydude
ID: 22946105
We need the part of php code for sending email to help
0
 

Author Comment

by:mchyzik
ID: 22946179
Here you go!  I dont work w/php so I am lost... I added the line to send the email to me, Maribeth, not my client glennew..so I an properly test it.  I'd really like to get this working... thank you so much!

<html>

<!-- Mirrored from www.newimagesphoto.com/contact/form.php by HTTrack Website Copier/3.x [XR&CO'2007], Fri, 08 Aug 2008 15:25:01 GMT -->
<head>
<title>New Images Photography: Contact</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Description" content="New Images Photography, owned by Glenn G. New, has been Richmond's foremost wedding, corporate, architectural and commercial photography studio since 1975."> <meta name="keywords" content="Wedding Photography Wedding Photographers Professional Photographers Wedding Portraits Bridal Portraits Images Brides Bridal Weddings Corporate Architectural Commercial Richmond Virginia VA Va.">
</head>

<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="focus()">

<form name="form1" method="post" ACTION="http://www.newimagesphoto.com/contact/form.php">
<!<INPUT TYPE="hidden" NAME="mailTo" VALUE="glennnew@msn.com">
<INPUT TYPE="hidden" NAME="mailto" VALUE="maribeth@compu-wizard.com">
<INPUT TYPE="hidden" NAME="subject" VALUE="Feedback From Contact Form">
<INPUT TYPE="hidden" NAME="htmlfile" VALUE="thankyou.html">

  <table border="0" align="center" width="585" cellpadding="0" cellspacing="0">
    <tr valign="top">
      <td width="129"><img src="images_contact/spacer.gif" width="129" height="16"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="5" height="1"></td>
      <td align="left" width="251">
        <img src="images_contact/spacer.gif" width="251" height="16"></td>
      <td rowspan="10"><img src="../images/logo_contact.gif"><br>
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/name.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="name" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/street.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="street" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/city.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="city" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/phone_1.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="home_phone" size="18">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/phone_2.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="work_phone" size="18">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/email.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="email" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/date.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <select name="date">
          <option selected>--</option>
          <option>01</option>
          <option>02</option>
          <option>03</option>
          <option>04</option>
          <option>05</option>
          <option>06</option>
          <option>07</option>
          <option>08</option>
          <option>09</option>
          <option>10</option>
          <option>11</option>
          <option>12</option>
        </select>
        <select name="select">
          <option selected>--</option>
          <option>01</option>
          <option>02</option>
          <option>03</option>
          <option>04</option>
          <option>05</option>
          <option>06</option>
          <option>07</option>
          <option>08</option>
          <option>09</option>
          <option>10</option>
          <option>11</option>
          <option>12</option>
          <option>13</option>
          <option>14</option>
          <option>15</option>
          <option>16</option>
          <option>17</option>
          <option>18</option>
          <option>19</option>
          <option>20</option>
          <option>21</option>
          <option>22</option>
          <option>23</option>
          <option>24</option>
          <option>25</option>
          <option>26</option>
          <option>27</option>
          <option>28</option>
          <option>29</option>
          <option>30</option>
          <option>31</option>
        </select>
        <select name="select2">
          <option selected>--</option>
          <option>2002</option>
          <option>2003</option>
          <option>2004</option>
          <option>2005</option>
        </select>
      </td>
    </tr>
    <tr valign="top">
      <td><img src="images_contact/wedding_location.gif" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left">
        <input type="text" name="wedding_location" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/rec_location.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left">
        <input type="text" name="reception_location" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129" align="left"><img src="images_contact/help.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" rowspan="2">
        <textarea name="comments" cols="27" rows="4" wrap="VIRTUAL"></textarea>
      </td>
      <td rowspan="2"> <img src="images_contact/spacer.gif" width="200" height="28">
        <a href="/contact/thankyou.html"><input type="image" src=images_contact/submit.gif border="0" value="Submit" name="image"></a>
        &nbsp;&nbsp;<a href="#" onClick="window.top.close(); return false"><img src=images_contact/cancel.gif border="0"></a>
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/spacer.gif" width="1" height="1"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="1"></td>
    </tr>
  </table>
</form>
</body>

<!-- Mirrored from www.newimagesphoto.com/contact/form.php by HTTrack Website Copier/3.x [XR&CO'2007], Fri, 08 Aug 2008 15:25:06 GMT -->
</html>


0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 15

Expert Comment

by:quincydude
ID: 22946187
check this line
<!<INPUT TYPE="hidden" NAME="mailTo" VALUE="glennnew@msn.com">

try change it to if this helps
<INPUT TYPE="hidden" NAME="mailTo" VALUE="glennnew@msn.com">
0
 
LVL 15

Expert Comment

by:quincydude
ID: 22946196
or may be

<INPUT TYPE="hidden" NAME="mailto" VALUE="glennnew@msn.com">

in case of  it's case sensitive.
0
 

Author Comment

by:mchyzik
ID: 22946222
nope.. didnt work.. if you look at the code, I am commenting out the glennew addy, and using the mailto addy below that maribeth@compu-wizard.com so it goes to me when tested. mailto is correct in my line.
0
 
LVL 15

Expert Comment

by:quincydude
ID: 22946259
you comment out a lline in html in this syntax
<! -- <INPUT TYPE="hidden" NAME="mailTo" VALUE="glennnew@msn.com"> -->

and if this do not work I have to see the code in
www.newimagesphoto.com/contact/form.php
0
 

Author Comment

by:mchyzik
ID: 22946298
THIS IS THE CODE for form.php below::


<html>

<!-- Mirrored from www.newimagesphoto.com/contact/form.php by HTTrack Website Copier/3.x [XR&CO'2007], Fri, 08 Aug 2008 15:25:01 GMT -->
<head>
<title>New Images Photography: Contact</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Description" content="New Images Photography, owned by Glenn G. New, has been Richmond's foremost wedding, corporate, architectural and commercial photography studio since 1975."> <meta name="keywords" content="Wedding Photography Wedding Photographers Professional Photographers Wedding Portraits Bridal Portraits Images Brides Bridal Weddings Corporate Architectural Commercial Richmond Virginia VA Va.">
</head>

<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="focus()">

<form name="form1" method="post" ACTION="http://www.newimagesphoto.com/contact/form.php">
<!<INPUT TYPE="hidden" NAME="mailto" VALUE="glennnew@msn.com">
<! -- <INPUT TYPE="hidden" NAME="mailto" VALUE="glennnew@msn.com"> -->
<INPUT TYPE="hidden" NAME="mailto" VALUE="maribeth@compu-wizard.com">
<INPUT TYPE="hidden" NAME="subject" VALUE="Feedback From Contact Form">
<INPUT TYPE="hidden" NAME="htmlfile" VALUE="thankyou.html">

  <table border="0" align="center" width="585" cellpadding="0" cellspacing="0">
    <tr valign="top">
      <td width="129"><img src="images_contact/spacer.gif" width="129" height="16"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="5" height="1"></td>
      <td align="left" width="251">
        <img src="images_contact/spacer.gif" width="251" height="16"></td>
      <td rowspan="10"><img src="../images/logo_contact.gif"><br>
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/name.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="name" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/street.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="street" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/city.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="city" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/phone_1.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="home_phone" size="18">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/phone_2.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="work_phone" size="18">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/email.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="email" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/date.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <select name="date">
          <option selected>--</option>
          <option>01</option>
          <option>02</option>
          <option>03</option>
          <option>04</option>
          <option>05</option>
          <option>06</option>
          <option>07</option>
          <option>08</option>
          <option>09</option>
          <option>10</option>
          <option>11</option>
          <option>12</option>
        </select>
        <select name="select">
          <option selected>--</option>
          <option>01</option>
          <option>02</option>
          <option>03</option>
          <option>04</option>
          <option>05</option>
          <option>06</option>
          <option>07</option>
          <option>08</option>
          <option>09</option>
          <option>10</option>
          <option>11</option>
          <option>12</option>
          <option>13</option>
          <option>14</option>
          <option>15</option>
          <option>16</option>
          <option>17</option>
          <option>18</option>
          <option>19</option>
          <option>20</option>
          <option>21</option>
          <option>22</option>
          <option>23</option>
          <option>24</option>
          <option>25</option>
          <option>26</option>
          <option>27</option>
          <option>28</option>
          <option>29</option>
          <option>30</option>
          <option>31</option>
        </select>
        <select name="select2">
          <option selected>--</option>
          <option>2002</option>
          <option>2003</option>
          <option>2004</option>
          <option>2005</option>
        </select>
      </td>
    </tr>
    <tr valign="top">
      <td><img src="images_contact/wedding_location.gif" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left">
        <input type="text" name="wedding_location" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/rec_location.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left">
        <input type="text" name="reception_location" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129" align="left"><img src="images_contact/help.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" rowspan="2">
        <textarea name="comments" cols="27" rows="4" wrap="VIRTUAL"></textarea>
      </td>
      <td rowspan="2"> <img src="images_contact/spacer.gif" width="200" height="28">
        <a href="/contact/thankyou.html"><input type="image" src=images_contact/submit.gif border="0" value="Submit" name="image"></a>
        &nbsp;&nbsp;<a href="#" onClick="window.top.close(); return false"><img src=images_contact/cancel.gif border="0"></a>
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/spacer.gif" width="1" height="1"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="1"></td>
    </tr>
  </table>
</form>
</body>

<!-- Mirrored from www.newimagesphoto.com/contact/form.php by HTTrack Website Copier/3.x [XR&CO'2007], Fri, 08 Aug 2008 15:25:06 GMT -->
</html>


0
 
LVL 15

Expert Comment

by:quincydude
ID: 22946311
No, this is only the source code of the generated html by php. I need the php source code. Go to the server and look for the folder located the file form.php, click edit and copy those code here.
0
 
LVL 15

Expert Comment

by:quincydude
ID: 22946314
oops, for the comment thing, i also typed something wrong
replace that with

<!-- <INPUT TYPE="hidden" NAME="mailTo" VALUE="glennnew@msn.com"> -->

(without space between ! and --
0
 

Author Comment

by:mchyzik
ID: 22946378
I have given you all the code I have.. dont understand..
0
 
LVL 15

Expert Comment

by:quincydude
ID: 22946402
How did you get this code? Just go to the web browser and click view source?
You should get the content directly from the file form.php
From what you gave so far, I cannot see a bit of php code, not to mention any script that help you to send an email.
0
 

Author Comment

by:mchyzik
ID: 22946482
I have  used webtrack and 'pulled' .downloaded the code from the site .   This is how I grab code from websites and never had a problem.  Any other suggestion?
0
 
LVL 15

Expert Comment

by:quincydude
ID: 22946510
Hi, if you really cannot find anything more, try to use the code below.
Hope this helps.
<?php 
 
if(isset($_POST['mailto']) && ($_POST['mailto']) != "")
{
	$Name = "www.newimagesphoto.com"; //senders name 
	$email = "no_reply@newimagesphoto.com"; //senders e-mail adress 
	$recipient = $_POST['mailto']; //recipient 
 
	$myFile = "thankyou.html";
	$fh = fopen($myFile, 'r');
	$theData = fread($fh, filesize($myFile));
	fclose($fh);
 
	$mail_body = $theData; //mail body 
	$subject = "Feedback From Contact Form"; //subject 
 
	// To send HTML mail, the Content-type header must be set
	$headers  = 'MIME-Version: 1.0' . "\r\n";
	$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
 
	// Additional headers
	$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields 
 
	mail($recipient, $subject, $mail_body, $header); //mail command :)
}
?>
 
 
<html>
 
<!-- Mirrored from www.newimagesphoto.com/contact/form.php by HTTrack Website Copier/3.x [XR&CO'2007], Fri, 08 Aug 2008 15:25:01 GMT -->
<head>
<title>New Images Photography: Contact</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Description" content="New Images Photography, owned by Glenn G. New, has been Richmond's foremost wedding, corporate, architectural and commercial photography studio since 1975."> <meta name="keywords" content="Wedding Photography Wedding Photographers Professional Photographers Wedding Portraits Bridal Portraits Images Brides Bridal Weddings Corporate Architectural Commercial Richmond Virginia VA Va.">
</head>
 
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="focus()">
 
<form name="form1" method="post" ACTION="http://www.newimagesphoto.com/contact/form.php">
<!-- <INPUT TYPE="hidden" NAME="mailto" VALUE="glennnew@msn.com"> -->
<INPUT TYPE="hidden" NAME="mailto" VALUE="maribeth@compu-wizard.com">
<!--<INPUT TYPE="hidden" NAME="subject" VALUE="Feedback From Contact Form">-->
<!--<INPUT TYPE="hidden" NAME="htmlfile" VALUE="thankyou.html"> -->
 
  <table border="0" align="center" width="585" cellpadding="0" cellspacing="0">
    <tr valign="top">
      <td width="129"><img src="images_contact/spacer.gif" width="129" height="16"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="5" height="1"></td>
      <td align="left" width="251">
        <img src="images_contact/spacer.gif" width="251" height="16"></td>
      <td rowspan="10"><img src="../images/logo_contact.gif"><br>
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/name.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="name" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/street.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="street" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/city.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="city" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/phone_1.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="home_phone" size="18">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/phone_2.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="work_phone" size="18">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/email.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="email" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/date.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <select name="date">
          <option selected>--</option>
          <option>01</option>
          <option>02</option>
          <option>03</option>
          <option>04</option>
          <option>05</option>
          <option>06</option>
          <option>07</option>
          <option>08</option>
          <option>09</option>
          <option>10</option>
          <option>11</option>
          <option>12</option>
        </select>
        <select name="select">
          <option selected>--</option>
          <option>01</option>
          <option>02</option>
          <option>03</option>
          <option>04</option>
          <option>05</option>
          <option>06</option>
          <option>07</option>
          <option>08</option>
          <option>09</option>
          <option>10</option>
          <option>11</option>
          <option>12</option>
          <option>13</option>
          <option>14</option>
          <option>15</option>
          <option>16</option>
          <option>17</option>
          <option>18</option>
          <option>19</option>
          <option>20</option>
          <option>21</option>
          <option>22</option>
          <option>23</option>
          <option>24</option>
          <option>25</option>
          <option>26</option>
          <option>27</option>
          <option>28</option>
          <option>29</option>
          <option>30</option>
          <option>31</option>
        </select>
        <select name="select2">
          <option selected>--</option>
          <option>2002</option>
          <option>2003</option>
          <option>2004</option>
          <option>2005</option>
        </select>
      </td>
    </tr>
    <tr valign="top">
      <td><img src="images_contact/wedding_location.gif" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left">
        <input type="text" name="wedding_location" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/rec_location.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left">
        <input type="text" name="reception_location" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129" align="left"><img src="images_contact/help.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" rowspan="2">
        <textarea name="comments" cols="27" rows="4" wrap="VIRTUAL"></textarea>
      </td>
      <td rowspan="2"> <img src="images_contact/spacer.gif" width="200" height="28">
        <a href="/contact/thankyou.html"><input type="image" src=images_contact/submit.gif border="0" value="Submit" name="image"></a>
        &nbsp;&nbsp;<a href="#" onClick="window.top.close(); return false"><img src=images_contact/cancel.gif border="0"></a>
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/spacer.gif" width="1" height="1"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="1"></td>
    </tr>
  </table>
</form>
</body>
 
<!-- Mirrored from www.newimagesphoto.com/contact/form.php by HTTrack Website Copier/3.x [XR&CO'2007], Fri, 08 Aug 2008 15:25:06 GMT -->
</html>

Open in new window

0
 

Author Comment

by:mchyzik
ID: 22948735
do you want me to replace my contact.php with what you have above?
0
 
LVL 15

Expert Comment

by:quincydude
ID: 22951223
replace it with the original form.php
0
 

Author Comment

by:mchyzik
ID: 22956922
sorry, it didnt work at all..
No email.. in fact, you dont even get the 'thank you' page after you hit submit...
HELP PLEASE .. anyone??
0
 
LVL 15

Assisted Solution

by:quincydude
quincydude earned 2000 total points
ID: 22957195
I really think there must be some php scripts in
http://www.newimagesphoto.com/contact/form.php 
but what you had given do not.

May be you can try to use some FTP client like Filezilla to grap the file.
And I also find out that the thankyou page is there because the submit button is just simply a link to that page. If there's really no script, I m afriad there's no way you can send a email. I have lastly modified the script a bit more, you can try it again.
<?php 
 
if(isset($_POST['mailto']) && ($_POST['mailto']) != "")
{
        $Name = "www.newimagesphoto.com"; //senders name 
        $email = "no_reply@newimagesphoto.com"; //senders e-mail adress 
        $recipient = $_POST['mailto']; //recipient 
 
        $myFile = "thankyou.html";
        $fh = fopen($myFile, 'r');
        $theData = fread($fh, filesize($myFile));
        fclose($fh);
 
        $mail_body = $theData; //mail body 
        $subject = "Feedback From Contact Form"; //subject 
 
        // To send HTML mail, the Content-type header must be set
        $headers  = 'MIME-Version: 1.0' . "\r\n";
        $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
 
        // Additional headers
        $header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields 
 
        mail($recipient, $subject, $mail_body, $header); //mail command :)
 
		header("Location: " . $myFile );
}
?>
 
 
<html>
 
<!-- Mirrored from www.newimagesphoto.com/contact/form.php by HTTrack Website Copier/3.x [XR&CO'2007], Fri, 08 Aug 2008 15:25:01 GMT -->
<head>
<title>New Images Photography: Contact</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Description" content="New Images Photography, owned by Glenn G. New, has been Richmond's foremost wedding, corporate, architectural and commercial photography studio since 1975."> <meta name="keywords" content="Wedding Photography Wedding Photographers Professional Photographers Wedding Portraits Bridal Portraits Images Brides Bridal Weddings Corporate Architectural Commercial Richmond Virginia VA Va.">
</head>
 
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="focus()">
 
<form name="form1" method="post" ACTION="http://www.newimagesphoto.com/contact/form.php">
<!-- <INPUT TYPE="hidden" NAME="mailto" VALUE="glennnew@msn.com"> -->
<INPUT TYPE="hidden" NAME="mailto" VALUE="maribeth@compu-wizard.com">
<!--<INPUT TYPE="hidden" NAME="subject" VALUE="Feedback From Contact Form">-->
<!--<INPUT TYPE="hidden" NAME="htmlfile" VALUE="thankyou.html"> -->
 
  <table border="0" align="center" width="585" cellpadding="0" cellspacing="0">
    <tr valign="top">
      <td width="129"><img src="images_contact/spacer.gif" width="129" height="16"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="5" height="1"></td>
      <td align="left" width="251">
        <img src="images_contact/spacer.gif" width="251" height="16"></td>
      <td rowspan="10"><img src="../images/logo_contact.gif"><br>
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/name.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="name" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/street.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="street" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/city.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="city" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/phone_1.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="home_phone" size="18">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/phone_2.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="work_phone" size="18">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/email.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <input type="text" name="email" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/date.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" width="251">
        <select name="date">
          <option selected>--</option>
          <option>01</option>
          <option>02</option>
          <option>03</option>
          <option>04</option>
          <option>05</option>
          <option>06</option>
          <option>07</option>
          <option>08</option>
          <option>09</option>
          <option>10</option>
          <option>11</option>
          <option>12</option>
        </select>
        <select name="select">
          <option selected>--</option>
          <option>01</option>
          <option>02</option>
          <option>03</option>
          <option>04</option>
          <option>05</option>
          <option>06</option>
          <option>07</option>
          <option>08</option>
          <option>09</option>
          <option>10</option>
          <option>11</option>
          <option>12</option>
          <option>13</option>
          <option>14</option>
          <option>15</option>
          <option>16</option>
          <option>17</option>
          <option>18</option>
          <option>19</option>
          <option>20</option>
          <option>21</option>
          <option>22</option>
          <option>23</option>
          <option>24</option>
          <option>25</option>
          <option>26</option>
          <option>27</option>
          <option>28</option>
          <option>29</option>
          <option>30</option>
          <option>31</option>
        </select>
        <select name="select2">
          <option selected>--</option>
          <option>2002</option>
          <option>2003</option>
          <option>2004</option>
          <option>2005</option>
        </select>
      </td>
    </tr>
    <tr valign="top">
      <td><img src="images_contact/wedding_location.gif" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left">
        <input type="text" name="wedding_location" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/rec_location.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left">
        <input type="text" name="reception_location" size="25">
      </td>
    </tr>
    <tr valign="top">
      <td width="129" align="left"><img src="images_contact/help.gif" width="129" height="23"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="30"></td>
      <td align="left" rowspan="2">
        <textarea name="comments" cols="27" rows="4" wrap="VIRTUAL"></textarea>
      </td>
      <td rowspan="2"> <img src="images_contact/spacer.gif" width="200" height="28">
        <a href="#" onclick="this.form.submit();" ><input type="image" src=images_contact/submit.gif border="0" value="Submit" name="image"></a>
          <a href="#" onClick="window.top.close(); return false"><img src=images_contact/cancel.gif border="0"></a>
      </td>
    </tr>
    <tr valign="top">
      <td width="129"><img src="images_contact/spacer.gif" width="1" height="1"></td>
      <td align="left"><img src="images_contact/spacer.gif" width="1" height="1"></td>
    </tr>
  </table>
</form>
</body>
 
<!-- Mirrored from www.newimagesphoto.com/contact/form.php by HTTrack Website Copier/3.x [XR&CO'2007], Fri, 08 Aug 2008 15:25:06 GMT -->
</html>

Open in new window

0
 

Author Comment

by:mchyzik
ID: 22968370
Ive been ftp'ing as the files are on MY server!  Customer had files on anoter server, which I grabbed and moved to my server.  There is a thankyou.php and thankyou.html file there on the server in the contact folder.  Dont know why it is not working! Someone said to refresh cache.

I created your file..and uploaded it along with new thank you file.  The thank you file works now.. but I still do not get an email. Is there a way to change this in to html code to send an email or something?
0
 

Author Comment

by:mchyzik
ID: 22970593
I would really like to get this fixed.. can anyone please help me.. I am truly at a loss...and appreciate what was offered so far for resolution as well as any new assistance moving forward !
0
 

Accepted Solution

by:
mchyzik earned 0 total points
ID: 22981600
Could someone PLEASE help me here... pretty please/??
0
 

Author Comment

by:mchyzik
ID: 23202250
No one was able to help me.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question