Having Trouble With Coding

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.
mchyzikAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mchyzikAuthor Commented:
changed the page from /index.html to /form.html, the thank you page now loads correctly but emails are still not sent
0
quincydudeCommented:
We need the part of php code for sending email to help
0
mchyzikAuthor Commented:
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
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

quincydudeCommented:
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
quincydudeCommented:
or may be

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

in case of  it's case sensitive.
0
mchyzikAuthor Commented:
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
quincydudeCommented:
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
mchyzikAuthor Commented:
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
quincydudeCommented:
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
quincydudeCommented:
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
mchyzikAuthor Commented:
I have given you all the code I have.. dont understand..
0
quincydudeCommented:
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
mchyzikAuthor Commented:
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
quincydudeCommented:
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
mchyzikAuthor Commented:
do you want me to replace my contact.php with what you have above?
0
quincydudeCommented:
replace it with the original form.php
0
mchyzikAuthor Commented:
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
quincydudeCommented:
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
mchyzikAuthor Commented:
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
mchyzikAuthor Commented:
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
mchyzikAuthor Commented:
Could someone PLEASE help me here... pretty please/??
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mchyzikAuthor Commented:
No one was able to help me.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.