Hi Ernie, Thank you for still caring. Yes of course I want a safe web site.
I have pasted the contact.html and contact.php files in its entirety. No other files are involved with contact page except style sheet. Please keep in mind that this whole web site was put together while I was learning html and css. I am not sure of my project partner’s extent of php knowledge claim.
Here is the contact.html
[php]
Hadi Aghaee Fine Art
<div id="logo1">
![logo]()
<nav>
<ul>
<li class="hide"><a href="acrylic.html"> Acrylic Gallery</a></li>
<li class="hide"><a href="digital.html">Digital Gallery</a></li>
Gallery
</ul></li>
<li> <a href='http://fineartamerica.com/profiles/hadi-aghaee/shop/all/all/all ' target="_blank" onclick="return confirm('You will be redirected to another site for print purchaces')">Shop</a> </li>
Events
About
Contact
</ul>
</nav>
</header>
<div id="wrapper">
<section id="primary" style="padding: 0px 5% 0 5%;" >
<div id="formstyle">
<form action="contact.php" method="post">
<div>
<label class="desc" id="title1" for="cf_name">Full Name</label>
<div>
<input id="Field1" name="cf_name" type="text" class="field text fn" value="" size="8" tabindex="1">
</div>
Get In Touch
If you have any questions, comments, or would like to inquire about an original painting, please use the form provided here and I will get back to you as soon as possible.
Thank you for visiting
<div id="leftfooter">
<p id="copyright"> The images and materials in this site are copyrighted by the site owner. <br>
© All Rights Reserved, unauthorized use is prohibited. </p>
</div>
<div id="rightfooter">
<a href="https://www.facebook.com/HadiAghaeeFineArt" target="_blank"><img src="img/facebook.png" alt="facebook" class="social"></a>
<a href="https://youtu.be/fJKYqnDIUTQ" target="_blank"><img src="img/youtube.png" alt="you tube" class="social"></a>
<!-- <a href="#"><img src="img/pinterest.png" alt="pinterest" class="social"></a> -->
</div>
</footer>
[/php]
Case 1: The php code that I started with: I receive visitor data but email is replace with phone#. Unable to reply.
[php]<?php
$field_name = $_POST[‘cf_name’];
$field_email = $_POST[‘cf_email’];
$field_email = $_POST[‘cf_phone’];
$field_message = $_POST[‘cf_message’];
$mail_to = ‘[email protected]’;
$subject = 'Message from a site visitor '.$field_name;
$body_message = 'From: '.$field_name."\n";
$body_message .= 'E-mail: '.$field_email."\n";
$body_message .= 'phone: '.$field_phone."\n";
$body_message .= 'Message: '.$field_message;
$headers = 'From: '.$field_email."\r\n";
$headers .= 'Reply-To: '.$field_email."\r\n";
$mail_status = mail($mail_to, $subject, $body_message, $headers);
if ($mail_status) { ?>
<?php[/php]
[b]Case2: I won't receive any email at all.[/b]
[php]$field_name = $_POST['cf_name'];
$field_email = $_POST['cf_email'];
$field_phone = $_POST['cf_phone'];
$field_message = $_POST['cf_message'];[/php]
[b]Case 3: My workaround. I receive data. Still can't reply but senders email is available now in case I need to contact back.[/b]
[php]$field_name = $_POST['cf_name'];
$field_email = $_POST['cf_email'];
$field_email = $_POST['cf_phone'];
$field_phone = $_POST['cf_email'];
$field_message = $_POST['cf_message'];[/php]
Thanks.