View Full Version : Can Someone Check my PHP Mail Form Please?

10-23-2009, 05:51 PM
I can not get this gdform.php to work right, can anybody help?
Any help would be greatly appreciated!

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii">
<title>Miguel Perez Photo.com Contact/Quote Orlando, FL</title>
<link href="style2.css" rel="stylesheet" type="text/css">
<style type="text/css">
.style16 {font-family: "Century Gothic"; color: #FFFFFF; }
.style17 {color: #666666}
.style7 {color: #FF0000}
.style18 {font-family: "Century Gothic"}
.style19 {color: #ddc5ae}
.style4 { font-size: xx-small;
color: #666666;
.style14 {font-family: "Century Gothic"; font-size: medium; }
.style20 {font-size: xx-small}

<script type="text/JavaScript">
function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
<div id="wrapper">
<div id="top-section">
<div class="top-links"><a href=
"photo%20gallery.html">GALLERY</a>********<a href=
"clients.html">CLIENTS</a>********<a href=
"photography%20services.html">PRODUCTS &amp;
SERVICES</a>********<a href=
"about%20miguel%20perez%20photo.html">ABOUT</a>********<a href=
"miguel%20perez%20photo%20sitemap.html">SITE MAP</a></div>
<div id="nav-bar">
<div class="nav-area"><span class="style14"><a href="index.html"
class="nav-link">home</a>**** *** <a href=
"commercial%20photography.html" class=
"nav-link">commercial</a>**** * * *<a href=
"architectural%20photography.html" class=
"nav-link">architecture</a>***** * *<a href=
"fashion%20photography.html" class="nav-link">fashion</a>***** *
*<a href="aviation%20photography.html" class=
"nav-link">aviation</a> *** *** *<a href=
"editorial%20photography.html" class=
"nav-link">editorial</a>***** * *<a href="antique%20cars.html"
class="nav-link">vehicles</a>***** * *<a href=
"art%20photography.html" class="nav-link">arts</a>***** **
<a href="photo%20shoot%20booking.html" class=
"nav-link">booking</a>***** * *<a href=
"photo%20shoot%20contact-quote.html" class=
<div id="main-photo-section"></div>
<div id="int-top-slice"></div>
<div id="int-stretch-slice">
<div class="int-content">
<div align="center"><span class="headline style18">Contact &amp;
<div style="padding-top:10px"></div>
<form method="post" action="gdform.php" enctype=
"multipart/form-data" name="quote" id="quote" style=
"margin:0; padding:0">
<span class="style18">Contact:</span></strong> <span class=
"style18">Go straight to the last box below. (<strong>Your
Quote:</strong> Fill-in all the boxes. <strong><br>
Your Full Name:</strong><br>
<input type="text" name="realname" id="realname"></span></label>
<span class="style18"><br></span></p>
<p class="style18"><br style="line-height:8px">
<b>E-mail Address:</b><br>
<input name="email" type="text" class="form"><br>
<br style="line-height:8px">
<input name="phone" type="text" class="form"><br>
<p class="style18"><b>Shoot Address:</b><br>
<input name="address" type="text" class="form" id="address">
Zip Code:</strong><br>
<input type="text" name="Zip" id="Zip"></label><br></p>
<p class="style18">*</p>
<p class="style18"><label><strong>Date of Shoot:</strong><br>
<input type="text" name="Date" id="Date"></label></p>
<p class="style18">*</p>
<p class="style18"><label><strong>Time of Shoot:</strong><br>
<input type="text" name="Time" id="Time"></label>
<label><input type="checkbox" name="AM" id="AM"> AM</label>
<label><input type="checkbox" name="PM" id="PM"> PM</label></p>
<p class="style18">*</p>
<p class="style18"><strong>Location:</strong></p>
<p class="style18"><br></p>
<p class="style18"><label><em><input type="radio" name="radio"
id="Indoors" value="Indoors"> Indoors</em></label> <em>*******
<label><input type="radio" name="radio" id="Outdoors" value=
"Outdoors"> Outdoors</label> ******* <label><input type="radio"
name="radio" id="Both" value="Both"> Both</label> <label>********
<input type="radio" name="radio" id="Studio" value="Studio">
Studio</label> ******** <label><input type="radio" name="radio"
id="Aerial" value="Aerial"> Aerial</label></em></p>
<p class="style18">*</p>
<p><span class="style18"><label><strong>Concept: (Photo, Video,
Commercial, Catalog, Fashion ect.)</strong></label></span>
<textarea name="Concept" id="Concept" cols="75" rows="6">
<p><a href="photo%20shoot%20payments.html" class=
"events-date style18">*Click here to make a deposit now</a></p>
<p><br style="line-height:4px">
<span class="style18"><b>Your Message/Question:</b></span><br>
<textarea name="message" cols="75" rows="6" class="contactForm">
<p><input type="hidden" name="redirect" value=
"customer_service.html"> <input type="hidden" name="subject"
value="Quote request from miguelperezphoto.com"> <input type=
"hidden" name="form_order" value="default"> <input type="hidden"
name="form_delivery" value="default"> <input type="hidden" name=
"form_format" value="html"></p>
<p><a href="info@miguelperezphoto.com"><br>
<input name="imageField" type="image" onclick="MM_callJS('test')"
"YY_checkform('quote','realname','#q','0','Please enter your full name.','email','#q','0','Please enter your email.','phone','#q','0','Please enter your telephone number.','address','#q','0','Please enter the Photo Shoot Address.','Date','#q','0','Please enter the Date of Photo Shoot.','Time','#q','0','Please enter the Time of Photo Shoot.');return document.MM_returnValue"
src="images/send.png" border="0">
<!-- <input name="Submit" type="image" value="Send" style="margin:0" align="top" src="images/send.png"> --></a></p>
<p class="style18"><br>
*Your quote request will be answered withing a few hours. Thank
<p align="left">*</p>
<p align="center"><span class="style4"><span class=
"style18">Miguel Perez <span class="style7">Photo</span></span>
<span class="style19">Commercial Photography (c)copyright
2006-2009</span></span> <span class=
"headline style15 style18 style20"><span class="style17">Miguel
Perez</span> <span class="style7">Video</span></span></p>
<div id="int-bottom-slice"></div>
<div id="footer">
<div id="footer-left">
<div class="low-text">
<div id="div">
<p><span class="style16"><span class="style17">Miguel
Perez</span> <span class="style7">Photo</span><br>
<span class="headline style15"><span class="style17">Miguel
Perez</span> <span class="style7">Video</span></span>, FL
[321].945.2676 Direct<br>
[321].221.1713 Studio</span><br>
<span class="events-date">EMAIL:
<div id="footer-right">
<div class="low-links"><a href="index.html">HOME</a> : <a href=
"photo%20shoot%20contact-quote.html">CONTACT</a> : <a href=
"photo%20studio%20clients.html">CLIENTS</a> : <a href=
"about%20miguel%20perez%20photo.html">ABOUT</a> : <a href=

10-23-2009, 06:53 PM
It's a PHP form pointed to itself with no PHP form handling code.

10-23-2009, 07:42 PM
I am not sure about what you are stating about PHP form handling code.

10-23-2009, 08:19 PM
Well, you want to do something with the form data, right? Then you must include code to handle the data, which in your case should be some sort of validation and then sending by email.

Perhaps I misunderstand your problem, though. What are you trying to fix? A problem description is quite useful when asking for help.

10-23-2009, 08:56 PM
hey tom,
I am trying to fix a form that somebody broke, deleted code, well come to find out the gdform.php is missing and I am trying to recreate this gdform.php but I am unsucessful. I am trying to send the data form to a email address to first test the change it to a email address that will be permenant. It seems to be looking for the gdform.php when you hit the summit buttom.

10-23-2009, 09:04 PM
Ah! Well, that information certainly helps.

gdform.php is associated with GoDaddy hosting. Is your site currently hosted there or have you moved it to another host? There's some information available here (http://help.godaddy.com/article/510#gdform) through their Help Center.

10-23-2009, 10:03 PM
I am aware of the godaddy nonsence, Tom how can I make this form simple were any info collected can be posted right to the form and sent as email, so I do not have to deal with going to the server

10-24-2009, 03:22 AM
You can't. Form handling and mailing doesn't work like that. You'll need to pass it off to GoDaddy's form handler, or another that's similar, or write one yourself. That's just the nature of the web.

10-24-2009, 06:00 AM
The following pages might be helpful:
How does a web form work (http://www.javascript-coder.com/html-form/how-to-make-a-form.phtml)

How to get email from html form submission (http://www.html-form-guide.com/email-form/html-email-form.html)