Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 02-21-2008, 06:02 PM Contact Page
Average Talker

Posts: 15
Name: Jamie Gordon
Trades: 0
I am creating a website for myself. I have the domain hosted by Heart Internet and I have all the text fields in with the submit and reset button. It's a .html document and I've already created a thankyou.html page where that page shows someone there information has been sent. I am having trouble getting that information sent to my email inbox?

Anyone got a clue lol ??

Thanks in advance,

JAMiE
jamiegordon74 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-21-2008, 07:28 PM Re: Contact Page
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Well, the thing is, you'll be going nowhere without php lol.

Luckily for you I have a email form generator.

http://www.sgilligan.co.uk/tools/contact - The script will work, but the site is NOT finished, that is why the left and right columns are not filled in.

Just follow the instructions, if you have any questions feel free to ask, it is my script of course.

Last edited by Gilligan; 02-21-2008 at 07:30 PM..
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 02-21-2008, 08:23 PM Re: Contact Page
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Jamie there's a way to send an email directly by setting the action of the form

action="mailto:you@email.com"

but it's not the most reliable way. Scripting languages are the way to go to send a form. There are many free scripts available you can use.

If you're willing to learn PHP it's fairly easy to code your own forms. I'd bet a lot of people entered into the world of scripting because they want to mail a form. There are plenty of tutorials on how to.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 02-22-2008, 04:10 AM Re: Contact Page
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 961
Name: Darren
Location: England
Trades: 0
Quote:
Originally Posted by Gilligan View Post
Luckily for you I have a email form generator.
Pretty cool generator, well done you! *Bookmarked*
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 02-22-2008, 10:21 AM Re: Contact Page
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Quote:
Originally Posted by rolda hayes View Post
Pretty cool generator, well done you! *Bookmarked*
Thanks mate.
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 02-22-2008, 12:03 PM Re: Contact Page
Average Talker

Posts: 15
Name: Jamie Gordon
Trades: 0
Hi, thanks for the help, I've made a contact.php page and a results.php page, I've uploaded the pages to the internet but when I try and put my details in yeah the page takes me to the results page, but when I check my email there's nothing in it with the subject I chosen when I was on your website (Gilligan)...

Any ideas?

Oh yeh, the page is up at www.flashmedia.org.uk/contact.php

Thanks again,

JAMiE
jamiegordon74 is offline
Reply With Quote
View Public Profile
 
Old 02-22-2008, 04:59 PM Re: Contact Page
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Sorry, not sure what you mean. The link is dead.
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 02-22-2008, 05:25 PM Re: Contact Page
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Thats strange, not working for me either.

I'm using the Contact Form Killer script. so you might have to contact them

I suggest you forget my script and try a different one. Sorry mate.
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 02-25-2008, 01:29 AM Re: Contact Page
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
Well if we could have information about what variables you want I'm sure we could make a working solution for you.
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 02-25-2008, 06:08 PM Re: Contact Page
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
You talking to me?

If so, tel me and i'll post the script.
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 02-25-2008, 06:21 PM Re: Contact Page
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
No that was @OP
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 02-26-2008, 02:14 PM Re: Contact Page
Average Talker

Posts: 15
Name: Jamie Gordon
Trades: 0
Quote:
Originally Posted by Gilligan View Post
Sorry, not sure what you mean. The link is dead.
Sorry about that, the link is available now.

You can fill whatever you want in the form, but when I click submit, yeah it goes to the results.php page but I still recieve no e-mail with the details on the form? HELPPPP lol

The link again is: http://www.flashmedia.org.uk/contact.php


Thanks,

JAMiE

Last edited by jamiegordon74; 02-26-2008 at 02:15 PM..
jamiegordon74 is offline
Reply With Quote
View Public Profile
 
Old 02-27-2008, 08:06 AM Re: Contact Page
Average Talker

Posts: 15
Name: Jamie Gordon
Trades: 0
Quote:
Originally Posted by Gilligan View Post
Sorry, not sure what you mean. The link is dead.
The link works now, I don't understad why it didn't work the other day when I uploaded it

Thanks in advance,

JAMiE
jamiegordon74 is offline
Reply With Quote
View Public Profile
 
Old 02-27-2008, 09:41 AM Re: Contact Page
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
Two things, 1 can you give us the code of the results.php page? 2 Why do you have a page in a page?
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 02-27-2008, 10:53 AM Re: Contact Page
Average Talker

Posts: 15
Name: Jamie Gordon
Trades: 0
Quote:
Originally Posted by Arenlor View Post
Two things, 1 can you give us the code of the results.php page? 2 Why do you have a page in a page?

Yeah, not a problem. I'll PM it to you and I'll also e-mail you it (if your email address is available from your profile)...

What do you mean why do I have a page in a page?

Thanks,

JAMiE
jamiegordon74 is offline
Reply With Quote
View Public Profile
 
Old 02-27-2008, 10:58 AM Re: Contact Page
Average Talker

Posts: 15
Name: Jamie Gordon
Trades: 0
There we go, check your hotmail account and find the results.php page enclosed.

Thanks again,

JAMiE
jamiegordon74 is offline
Reply With Quote
View Public Profile
 
Old 02-27-2008, 02:24 PM Re: Contact Page
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
Err I'm not sure if it downloaded right, if it did then I know what the problem is.
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Flash Media Internet Services</title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=iso-8859-1" />
<meta name="author" content="Mike Yarmish" />
<meta name="description" content="Your website description goes here" />
<meta name="keywords" content="your,keywords,goes,here" />
<link rel="stylesheet" href="mike03.css" type="text/css" />
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
</head>

<body>
	<div id="wrapper">
		<div id="header">
			<div id="insideHeader">
				<h1>flash media</h1>
			  <p>Internet Services</p>
			</div>
	  <div id="menu">
 				<ul>
					<li><a href="index.html">Home</a></li>
				  <li><a href="about.html">About</a></li>
				  <li><a href="contact.html">Contact</a></li>
				  <li><a href="portfolio.html">Portfolio</a></li>
				  <li><a href="services.html">Services</a></li>
		</ul> 
	
			</div>
		</div>
		<div id="main">
			<div id="content">
				<div class="post" id="first">
					<h2>Thank You...</h2>
					<p>The information you submitted has been sent to Flash Media Internet Services. You will recieve a reply shortly.</p>
					<p>&nbsp;</p>
					<p>Thank you,</p>
					<p>&nbsp;</p>
					<p>Jamie Gordon</p>
					<p>Web Developer</p>
					<p>Flash Media Internet Services</p>
					<p>&nbsp;</p>
					<p align="center"><a href="privacy.html">Privacy Statement</a> | <a href="terms.html">Terms and Conditions</a></p>
			  </div>
				<div class="post"></div>
			</div>
			<div id="footer">
				<p>Copyright �� 2008  Flash Media Internet Services</p>
		  </div>
		</div>
	</div>

</body>
</html>
If that's the whole page the problem is that there is no PHP, the form isn't getting processed. One thing is don't use a copyright symbol in the text use &copy; instead. Before I get to the PHP though first is this:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <!--First page open with <html>-->
<head>
<title>Flash Media Internet Services</title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=iso-8859-1" />
<meta name="author" content="Mike Yarmish" />
<meta name="description" content="Your website description goes here" />
<meta name="keywords" content="your,keywords,goes,here" />
<link rel="stylesheet" href="mike03.css" type="text/css" />
</head>

<body>
	<div id="wrapper">
		<div id="header">
			<div id="insideHeader">
				<h1>flash media</h1>
			  <p>Internet Services</p>
			</div>
	  <div id="menu">
 				<ul>
					<li><a href="index.html">Home</a></li>
				  <li><a href="about.html">About</a></li>
				  <li><a href="contact.html">Contact</a></li>
				  <li><a href="portfolio.html">Portfolio</a></li>
				  <li><a href="services.html">Services</a></li>
		</ul> 
	
			</div>
		</div>
		<div id="main">
			<div id="content">
				<div class="post" id="first">
				  <h2>Contact  Us</h2>
					<p>Our services and advice are available to all. If you would like to   contact us about any internet related matter please complete the form below. If   you are interested in obtaining a free quote from us, please <a href="quote.html">click here</a>.<br />
					  <br />
					</p>
					<p>We always endeavour to reply via email within 24 hours.</p>
					<p>&nbsp;</p>
					<p>	<html><!--Second page opened with <html> bad, no bad.-->
	<head>
		<style>
			.required {
				font-weight:bold;
				color:red;
			}
			
			.error-div {
				border:1px solid #FF0000;
				background-color:#FFDEDE;
				padding:10px;
				margin-bottom:5px;
				color:#CC0000;
			}
			
			.success-div {
				border:1px solid #09BD00;
				background-color:#EEFFED;
				padding:10px;
				margin-bottom:5px;
				color:#006600;
			}
		</style>
		<script language="JavaScript" type="text/javascript">
		
		
		var IE = (document.all) ? 1 : 0;
var DOM = 0; 
if (parseInt(navigator.appVersion) >=5) {DOM=1};

        function txtShow( cId, txt2show ) {
            // Detect Browser
            if (DOM) {
							var viewer = document.getElementById(cId);
              viewer.innerHTML=txt2show;
            } else if(IE) {
               document.all[cId].innerHTML=txt2show;
            }
        }//txtshow
        
        function getTxt( cId ) {
            var output = "";
            // Detect Browser
            if (DOM) {
		var viewer = document.getElementById(cId);
		output = viewer.value;
            }
            else if(IE) {
                output = document.all[cId].value;
            }
            return output;
        }//getTxt
		
		function countChars(cBoxName, cTxtName, maxKeys) {
			var str = new String(getTxt(cBoxName));
			var len = str.length;
			var showstr = '<span class="alert-pos">' + len + ' characters of ' + maxKeys + ' entered</span>';
			if (len > maxKeys) showstr = '<span class="alert">' + len + ' characters of ' + maxKeys + ' entered</span><br /><span class="alert">Too many characters, please edit content</span>';
			txtShow( cTxtName, showstr );
		}
		
		function ValidChars(sText,ValidChars) {
			var IsNumber=true;
			var Char;
			for (i = 0; i < sText.length && IsNumber == true; i++) { 
				Char = sText.charAt(i); 
				if (ValidChars.indexOf(Char) == -1)  {
					IsNumber = false;
				}
			}
			return IsNumber;
		}
		
		function checkform (form) {
			
			if (form.fullname.value == "") {
			 alert( "Please enter your full name" );
			 form.fullname.focus();
				return false;
			}
		
			if (form.email.value.length < 5) {
			 alert( "Please enter your email" );
			 form.email.focus();
				return false;
			}
		
			if (form.comments.value.length < 10) {
			 alert( "Please enter 10 or more characters for the comments" );
			 form.comments.focus();
				return false;
			}
		
		}
		</script>
		<title></title>
		</head>
	<body>
						  
					<form action="results.php" onsubmit="return checkform(this);" method="post">
			<input type="hidden" name="action" value="submit_form" />
			<table>
				<tr>
					<td><span class="required">*</span>Full Name: </td>
					<td><input type="text" name="fullname" value="" size="40" /></td>
				</tr>
				<tr>
					<td><span class="required">*</span>E-mail: </td>
					<td><input type="text" name="email" size="40" value="" /></td>
				</tr>
				<tr>
					<td>Subject: </td>
					<td>
						<select name="subject" id="subject">
							<option value="" selected="selected">Please choose a subject</option>
							<option value="">----------------</option>
							<option>General Enquiry</option>
							<option>Quotation</option>
							<option>Sales</option>
							<option>Technical</option>
							<option>Support</option>
									              </select></td>
				</tr>
				<tr>
					<td>Phone: </td>
					<td><input type="text" name="phone" size="40" value="" /></td>
				</tr>
				<tr>
					<td>Company: </td>
					<td><input type="text" name="company" size="40" value="" /></td>
				</tr>
				<tr>
					<td><span class="required">*</span>Comments: </td>
					<td><textarea name="comments" cols="60" rows="6"></textarea></td>
				</tr>
			</table>
				<input type="submit" value="Submit" />
		</form>
  <br /><br /><br />
				    </p>
			  </div>
  <div class="post">
    <p>11 Norton Avenue<br />
		  Norton<br />
		  Stockton on Tees<br />
		TS20 2JQ</p>
    <p>07932 886 029 or 07518 193 703</p>
		<p>&nbsp;</p>
					<p><a href="mailto:office@flashmedia.org.uk">office@flashmedia.org.uk</a></p>
					<p>&nbsp;</p>
					<p>Alternatively <a href="http://www.flashmedia.org.uk/board">click here</a> to goto our discussion board.</p>
		<p>&nbsp;</p>
		<p>&nbsp;</p>
					<p align="center"><a href="privacy.html">Privacy Statement</a> | <a href="terms.html">Terms and Conditions</a></p>
  </div>
			  <div class="post"></div>
			</div>
			<div id="footer">
				<p>Copyright © 2008  Flash Media Internet Services</p>
		  </div>
		</div>
	</div>

<div style="font-size: 0.8em; text-align: center; margin-top: 1.0em; margin-bottom: 1.0em;"></div><!--Div does what?-->
</body>
</html>
See the comments I added in it.
Ok now onto something else that needs fixed first in your form:
HTML Code:
<!--This is the fleshed out form with no formatting-->
<form action="results.php" onsubmit="return checkform(this);" method="post">
<input type="hidden" name="action" value="submit_form" /><!--What is this for?-->
<input type="text" name="fullname" value="" size="40" />
<input type="text" name="email" size="40" value="" />
<!--Good up to this point, but all options need a value-->
<select name="subject" id="subject">
<option value="" selected="selected">Please choose a subject</option>
<option value="General_Enquiry">General Enquiry</option>
<option value="Quotation">Quotation</option>
<option value="Sales">Sales<option>
<option value="Technical">Technical</option>
<option value="Support">Support</option>
</select>
<input type="text" name="phone" size="40" value="" />
<input type="text" name="company" size="40" value="" />
<textarea name="comments" cols="60" rows="6"></textarea>
<!--Did you know you can enter default values into textareas?-->
<input type="submit" value="Submit" /></form>
Working from that, with the values added in put this into the top of results.php before the doctype declaration even:
PHP Code:
<?php $action $_POST['action'];//Still not sure why you want that...
$fullname $_POST['fullname'];
$email $_POST['email'];
$subject $_POST['subject'];
$phone $_POST['phone'];
$company $_POST['company'];
$comments $_POST['comments'];
$headers "From: ".$email."\r\n"."Reply-To: ".$email;
$message "Fullname: ".$fullname."\r\n"."Phone: ".$phone."\r\n"."Company: ".$company."\r\n"."Comments: ".$comments;
$message wordwrap($message,70);//Makes sure no line is longer than 70 chars
mail('office@flashmedia.org.uk',$subject,$message,$headers);
?>
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 02-27-2008, 02:48 PM Re: Contact Page
Average Talker

Posts: 15
Name: Jamie Gordon
Trades: 0
Thank you very much, it is working now

JAMiE
jamiegordon74 is offline
Reply With Quote
View Public Profile
 
Old 02-27-2008, 03:55 PM Re: Contact Page
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
Good I'm glad I could help. You do know, rather than typing JAMiE out under each post you can just add it to your signature right?
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 02-27-2008, 05:50 PM Re: Contact Page
Average Talker

Posts: 15
Name: Jamie Gordon
Trades: 0
Quote:
Originally Posted by Arenlor View Post
Good I'm glad I could help. You do know, rather than typing JAMiE out under each post you can just add it to your signature right?
Yeah, I'm going to ... That contact and results page is working brilliantly. Just one more enquiry... On the contact page, the 'comments' box is massive, I'd like it the same width as the other boxes above it and I am not sure with php how to do this?

Thank You...
jamiegordon74 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Contact Page

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.07035 seconds with 12 queries