There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Web Design & Development
Tag Cloud
audio bios blue screen boot bsod computer connection crash dell desktop driver drivers email error excel firefox freeze google hard drive hardware hijackthis install internet laptop linux malware network no sound outlook problem reboot redirect router screen slow sound speakers spyware startup trojan usb video virus vista webcam windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Troubles with a Custom Form

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
Joe12's Avatar
Member with 30 posts.
 
Join Date: Jun 2004
Location: KC
Experience: Intermediate
01-Jul-2009, 02:30 PM #1
Troubles with a Custom Form
I'm trying to create this form & I need some help.
http://kcgraphicshop.com/links/restoration.htm

I would like to have all the selected information and sent to an email. I don't know how to do this.

Maybe someone could help me where I could find a good tutorial, I am willing to pay someone to do this, send me a quote at joe@kcgraphicshop.com
Techmonkeys's Avatar
Senior Member with 632 posts.
 
Join Date: Feb 2005
Location: West Yorks
Experience: Advanced
02-Jul-2009, 09:41 AM #2
What you need to do is create a form using a server side technology such as PHP.

The you can easily get this working by using the PHP mail function.

First things first find out if your hosting supports php.

create a text file, open it an put in:

Code:
<?php

phpinfo();

?>
save it as phpinfo.php

Now upload it to your site and browse to it's location eg: www.yoursite.com/phpinfo.php

This should display lots of PHP related info.

Now dont worry the code you have written doesnt need completely rewriting, but it will need some work.

Post the full code of your form here and I will gladly help you out with recoding it
__________________
Regards,
Techmonkey
More free Tech Support and chat available @ www.techmonkeys.co.uk
Joe12's Avatar
Member with 30 posts.
 
Join Date: Jun 2004
Location: KC
Experience: Intermediate
03-Jul-2009, 02:58 PM #3
http://www.kcgraphicshop.com/phpinfo.php


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Custom Tee's, Decals, Print & Creative services">
<meta name="keywords" content="Design packages, Custom Tee's, Custom T-Shirts, Custom Shirts, Screen Print, Business card design, Logo design, Website design, Promo designs, Brochure designs, Kansas City, Video Production, Flash Ads, Creative, Illustration">

<meta name="author" content="www.KCGraphicShop.com">
<meta name="rating" content="General">
<meta name="classification" content="Promotional & Marketing Services">
<meta name="distribution" content="global">
<meta name="robots" content="index, follow">
<meta name="revisit-after" content="7 days">

<title>KC Graphic Shop</title>

<link rel="shortcut icon" href="../KCGRAPHICSHOP/kcgs.ico" >
<link rel="icon" href="../KCGRAPHICSHOP/animated_kcgs.gif" type="image/gif" >

<script type="text/javascript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<link href="../KCGRAPHICSHOP/css/kcgrx.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {font-size: x-large}
-->
</style>
</head>

<body onload="MM_preloadImages('../KCGRAPHICSHOP/images/website_06-09.jpg','../KCGRAPHICSHOP/images/website_06-10.jpg','../KCGRAPHICSHOP/images/website_06-12.jpg','../KCGRAPHICSHOP/images/website_06-13.jpg','../KCGRAPHICSHOP/images/website_06-14.jpg','../KCGRAPHICSHOP/images/website_06-15.jpg','../KCGRAPHICSHOP/images/slices/index_master_04.jpg','../KCGRAPHICSHOP/images/photoroll.jpg','../KCGRAPHICSHOP/images/slices/website_06r.jpg','../KCGRAPHICSHOP/images/slices/website_06rl.jpg','../KCGRAPHICSHOP/images/slices/website_06-04r.jpg','../KCGRAPHICSHOP/images/slices/website_06-06r.jpg','../KCGRAPHICSHOP/images/slices/website_06-07r.jpg','../KCGRAPHICSHOP/images/slices/website_06ir.jpg')">


<table width="100%" height="125" border="0" cellpadding="0" cellspacing="0" background="../KCGRAPHICSHOP/images/slices/bg_spacer.jpg" id="TABLE1">
<tr>
<td width="39%" background="../KCGRAPHICSHOP/images/slices/bg_spacer.jpg"><img src="http://forums.techguy.org/KCGRAPHICSHOP/images/slices/website_01.jpg" alt="1" width="602" height="125" border="0" /></td>

<td valign="middle" bordercolor="0" background="../KCGRAPHICSHOP/images/slices/bg_spacer.jpg"><div align="right"> <img src="http://forums.techguy.org/KCGRAPHICSHOP/images/slices/website_02.jpg" width="198" height="125" border="0" align="right" /></td>
</tr>
</table>

<table width="100%" height="55" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FFFFFF"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Home','','../KCGRAPHICSHOP/images/slices/index_master_04.jpg',1)"><img src="http://forums.techguy.org/KCGRAPHICSHOP/images/slices/website_04.jpg" name="Home" width="280" height="55" border="0" usemap="#HomeMap" id="Home" /></a></td>
</tr>
</table>
<table width="100%" height="477" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="12%" align="left" valign="top" bgcolor="#FFFFFF"><table width="2%" height="316" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="48" align="left" valign="top"><a href="shirts.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Custom Apparel','','../KCGRAPHICSHOP/images/slices/website_06ir.jpg',1)"><img src="http://forums.techguy.org/KCGRAPHICSHOP/images/slices/website_06i.jpg" alt="Custom Apparel" name="Custom Apparel" width="166" height="48" border="0" id="Custom Apparel" /></a></td>
</tr>
<tr>
<td height="40" align="left" valign="top"><a href="print.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Design','','../KCGRAPHICSHOP/images/slices/website_06r.jpg',1)"><img src="http://forums.techguy.org/KCGRAPHICSHOP/images/slices/website_06i-02.jpg" alt="Graphic Design" name="Design" width="166" height="40" border="0" id="Design" /></a></td>
</tr>
<tr>
<td height="40" align="left" valign="top"><a href="products/wall/wallart.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Vinyl ','','../KCGRAPHICSHOP/images/slices/website_06rl.jpg',1)"><img src="http://forums.techguy.org/KCGRAPHICSHOP/images/slices/website_06.jpg" alt="Vinyl" name="Vinyl " width="166" height="40" border="0" id="Vinyl " /></a></td>
</tr>
<tr>
<td height="40" align="left" valign="top"><a href="restoration.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Retouching','','../KCGRAPHICSHOP/images/slices/website_06-04r.jpg',1)"><img src="http://forums.techguy.org/KCGRAPHICSHOP/images/slices/website_06-04.jpg" alt="Digital Retouching" name="Retouching" width="166" height="40" border="0" id="Retouching" /></a></td>
</tr>
<tr>
<td height="40" align="left" valign="top"><a href="vector.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Vector','','../KCGRAPHICSHOP/images/slices/website_06-05r.jpg',0)"><img src="http://forums.techguy.org/KCGRAPHICSHOP/images/slices/website_06-05.jpg" alt="vectorize" name="Vector" width="166" height="40" border="0" id="Vector" /></a></td>
</tr>
<tr>
<td height="39" align="left" valign="top"><a href="web.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Web Design','','../KCGRAPHICSHOP/images/slices/website_06-06r.jpg',1)"><img src="http://forums.techguy.org/KCGRAPHICSHOP/images/slices/website_06-06.jpg" alt="Web Design" name="Web Design" width="166" height="40" border="0" id="Web Design" /></a></td>
</tr>
<tr>
<td><a href="contact.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Contact','','../KCGRAPHICSHOP/images/slices/website_06-07r.jpg',1)"><img src="http://forums.techguy.org/KCGRAPHICSHOP/images/slices/website_06-07.jpg" alt="Contact" name="Contact" width="166" height="39" border="0" id="Contact" /></a></td>
</tr>
<tr>
<td height="55" bgcolor="#000000"><img src="http://forums.techguy.org/KCGRAPHICSHOP/images/slices/website_06-16.jpg" width="166" height="93" /><br />
<img src="http://forums.techguy.org/KCGRAPHICSHOP/images/slices/website_06-16_spacer.jpg" width="166" height="872" /><br /></td>
</tr>
</table></td>
<td width="88%" valign="top" bgcolor="#FFFFFF"><table width="100%" height="440" border="0" cellpadding="5" cellspacing="5">
<tr>
<td width="78%" align="left" valign="top"><table width="75%" height="219" border="0" align="left" cellpadding="5" cellspacing="5">
<tr>
<td valign="top"><p class="style1">UNDER CONSTRUCTION</p>
<p>&nbsp;</p>
<div align="center">
<p>Let us give your old photos a touch of professional quality without the expensive investment.* We can do anything to photos*from removing blemishes to removing* your old flames from your old photos.* We can make any photo the perfect gift:* senior photos, weddings, head shots &amp; more. <br />
</p>
</div>
<div align="right"><br />
<table width="83%" height="206" border="0" cellpadding="5" cellspacing="5">
<tr>
<td>Upload your Photo</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form action="" method="post" enctype="multipart/form-data" name="form32" id="form32">
<label></label>
<label>
<input type="file" name="uploadimage" id="uploadimage" />
</label>
</form> </td>
<td>special instructions</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="63%"><form id="form1" name="form1" method="post" action="">
<label>
<input type="checkbox" name="Clear Blemish" id="Clear Blemish" />
ClearBlemish</label>
</form> </td>
<td width="63%"><form id="form22" name="form22" method="post" action="">
<label>
<input type="text" name="clearblemish" id="clearblemish" />
</label>
</form> </td>
<td width="63%">&nbsp;</td>
</tr>
<tr>
<td><form id="form2" name="form2" method="post" action="">
<label>
<input type="checkbox" name="Remove Glass Glare" id="Remove Glass Glare" />
Remove Glass Glare</label>
</form> </td>
<td><form id="form23" name="form23" method="post" action="">
<label>
<input type="text" name="remove flass glare" id="remove flass glare" />
</label>
</form> </td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form3" name="form3" method="post" action="">
<label>
<input type="checkbox" name="Eye Enhancement" id="Eye Enhancement" />
Eye Enhancement</label>
</form> </td>
<td><form id="form24" name="form24" method="post" action="">
<label>
<input type="text" name="eye enhancement" id="eye enhancement" />
</label>
</form> </td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form4" name="form4" method="post" action="">
<label>
<input type="checkbox" name="Soften Double Chin" id="Soften Double Chin" />
Soften Double Chin</label>
</form> </td>
<td><form id="form25" name="form25" method="post" action="">
<label>
<input type="text" name="soften double chin" id="soften double chin" />
</label>
</form> </td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form5" name="form5" method="post" action="">
<label>
<input type="checkbox" name="Remove Stray Hairs" id="Remove Stray Hairs" />
Remove Stray Hairs</label>
</form> </td>
<td><form id="form26" name="form26" method="post" action="">
<label>
<input type="text" name="remove stray hair" id="remove stray hair" />
</label>
</form> </td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form6" name="form6" method="post" action="">
<label>
<input type="checkbox" name="Soft Focus" id="Soft Focus" />
Soft Focus</label>
</form> </td>
<td><form id="form27" name="form27" method="post" action="">
<label>
<input type="text" name="soft focus" id="soft focus" />
</label>
</form> </td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form7" name="form7" method="post" action="">
<label>
<input type="checkbox" name="Whiten Teeth" id="Whiten Teeth" />
Whiten Teeth</label>
</form> </td>
<td><form id="form28" name="form28" method="post" action="">
<label>
<input type="text" name="remove braces" id="remove braces" />
</label>
</form> </td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form8" name="form8" method="post" action="">
<label>
<input type="checkbox" name="Remove Braces" id="Remove Braces" />
Remove Braces</label>
</form> </td>
<td><form id="form29" name="form29" method="post" action="">
<label>
<input type="text" name="remove braces2" id="remove braces2" />
</label>
</form> </td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form9" name="form9" method="post" action="">
<label>
<input type="checkbox" name="Blend Tan Lines" id="Blend Tan Lines" />
Blend Tan Lines</label>
</form> </td>
<td><form id="form30" name="form30" method="post" action="">
<label>
<input type="text" name="blend tan lines" id="blend tan lines" />
</label>
</form> </td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form10" name="form10" method="post" action="">
<label>
<input type="checkbox" name="Swap Head" id="Swap Head" />
Swap Head</label>
</form> </td>
<td><form id="form31" name="form31" method="post" action="">
<label>
<input type="text" name="swap head" id="swap head" />
</label>
</form> </td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form11" name="form11" method="post" action="">
<label>
<input type="checkbox" name="Swap Eyes" id="Swap Eyes" />
Swap Eyes</label>
</form> </td>
<td><form id="form34" name="form34" method="post" action="">
<label>
<input type="text" name="Swap Head2" id="Swap Head2" />
</label>
</form>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form12" name="form12" method="post" action="">
<label>
<input type="checkbox" name="Remove a Person" id="Remove a Person" />
Remove a Person</label>
</form> </td>
<td><form id="form35" name="form35" method="post" action="">
<label>
<input type="text" name="Remove a Person2" id="Remove a Person2" />
</label>
</form>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form13" name="form13" method="post" action="">
<label>
<input type="checkbox" name="Remove an Object" id="Remove an Object" />
Remove an Object</label>
</form> </td>
<td><form id="form36" name="form36" method="post" action="">
<label>
<input type="text" name="Remove a Object" id="Remove a Object" />
</label>
</form>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form14" name="form14" method="post" action="">
<label>
<input type="checkbox" name="Replace Sky" id="Replace Sky" />
Replace Sky</label>
</form> </td>
<td><form id="form37" name="form37" method="post" action="">
<label>
<input type="text" name="Replace Sky2" id="Replace Sky2" />
</label>
</form>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form15" name="form15" method="post" action="">
<label>
<input type="checkbox" name="Restoration (mild)" id="Restoration (mild)" />
Restoration (mild)</label>
</form> </td>
<td><form id="form38" name="form38" method="post" action="">
<label>
<input type="text" name="restoration_mild" id="restoration_mild" />
</label>
</form>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form16" name="form16" method="post" action="">
<label>
<input type="checkbox" name="Restoration (major)" id="Restoration (major)" />
Restoration (major)</label>
</form> </td>
<td><form id="form39" name="form39" method="post" action="">
<label>
<input type="text" name="restoration_major" id="restoration_major" />
</label>
</form>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form17" name="form17" method="post" action="">
<label>
<input type="checkbox" name="Colorization" id="Colorization" />
Colorization</label>
</form> </td>
<td><form id="form40" name="form40" method="post" action="">
<label>
<input type="text" name="colorization" id="colorization" />
</label>
</form>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form18" name="form18" method="post" action="">
<label>
<input type="checkbox" name="Add text, logo or graphics" id="Add text, logo or graphics" />
Add text, logo or graphics</label>
</form> </td>
<td><form id="form41" name="form41" method="post" action="">
<label>
<input type="text" name="addgraphics" id="addgraphics" />
</label>
</form>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form19" name="form19" method="post" action="">
<label>
<input type="checkbox" name="Composite a Pperson" id="Composite a Pperson" />
Composite a Pperson</label>
</form> </td>
<td><form id="form42" name="form42" method="post" action="">
<label>
<input type="text" name="composite" id="composite" />
</label>
</form>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form20" name="form20" method="post" action="">
<label>
<input type="checkbox" name="Extend Back Ground" id="Extend Back Ground" />
Extend Background</label>
</form> </td>
<td><form id="form43" name="form43" method="post" action="">
<label>
<input type="text" name="extend background" id="extend background" />
</label>
</form>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form21" name="form21" method="post" action="">
<label>
<input type="checkbox" name="Rotate a Photo" id="Rotate a Photo" />
Rotate a Photo</label>
</form> </td>
<td><form id="form44" name="form44" method="post" action="">
<label>
<input type="text" name="rotate a photo" id="rotate a photo" />
</label>
</form>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><form id="form33" name="form33" method="post" action="">
<label>
<input type="checkbox" name="Resize a Photo" id="Resize a Photo" />
Resize a Photo</label>
</form>
</td>
<td><form id="form45" name="form45" method="post" action="">
<label>
<input type="text" name="resize a photo" id="resize a photo" />
</label>
</form>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<br />
<a href="http://forums.techguy.org/index.html"><img src="http://forums.techguy.org/KCGRAPHICSHOP/images/site_art/backbtn.jpg" alt="back button" width="73" height="33" border="0" /></a></div></td>
</tr>


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

<map name="HomeMap" id="HomeMap"><area shape="rect" coords="3,17,66,46" href="http://forums.techguy.org/index.html" />
</map>
</body>

</html>
Techmonkeys's Avatar
Senior Member with 632 posts.
 
Join Date: Feb 2005
Location: West Yorks
Experience: Advanced
09-Jul-2009, 10:06 AM #4
Hello again mate here is a simple example of a php contact form, save this a file called contact.php (or whatever and try it out).

Code:
<html>
<?php
	if (isset($_POST['submit'])) {  //Checks to see if the submit button has been clicked
		$name = $_POST['name'];
		$address = $_POST['address'];
		$email = $_POST['email'];
		$phone = $_POST['phone'];
		$comments = $_POST['comments'];
		
		$to = "you@youremail.com";   //Change this to the email address that wants to receive the mails
		$subject = "Query from website from $name";
		$message = "Name: $name \n Email: $email \n Address: $address \n Phone: $phone \n Comments: $comments \n";
		$headers = "From: $email";
		mail($to, $subject, $message, $headers);
		echo "<font='#004779'>Thank you for your comments and questions,<br /> we will try to reply within 48hrs.</font>";  // Whatever message you want to display
	} else {
?>
<form name="contactus" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
	<table>
		<tr>
			<td>Name:</td>
			<td><input type="TEXT"  name="name" /></td>
		</tr>
		<tr>
			<td>Address:</td>
			<td><textarea rows="10" name="address"></textarea></td>
		</tr>
		<tr>
			<td>Email:</td>
			<td><input type="TEXT" size="26" name="email" /></td>
		</tr>
		<tr>
			<td>Phone Number:</td>
			<td><input type="TEXT" size="26" name="phone" /></td>
		</tr>
		<tr>
			<td>Comments:</td>
			<td><textarea rows="10" name="comments"></textarea></td>
		</tr>
		<tr>
			<td align="center" colspan="2"><input type="submit" name="submit" value="Send" /></td>
		</tr>
	</table>
</form>
<?php
}
?>
</html>
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 12:37 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.