 |
|
02-21-2008, 07:02 PM
|
Contact Page
|
Posts: 15
Name: Jamie Gordon
|
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
|
|
|
|
02-21-2008, 08:28 PM
|
Re: Contact Page
|
Posts: 1,618
Name: Stefan
Location: London, UK
|
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 08:30 PM.
|
|
|
|
02-21-2008, 09:23 PM
|
Re: Contact Page
|
Posts: 8,923
Name: Steven Bradley
Location: Boulder, Colorado
|
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.
|
|
|
|
02-22-2008, 05:10 AM
|
Re: Contact Page
|
Posts: 587
Name: Darren
Location: England
|
Quote:
Originally Posted by Gilligan
Luckily for you I have a email form generator.
|
Pretty cool generator, well done you! *Bookmarked*
__________________
"I always wanted the adoration of John Lennon - With The Anonimity of Ringo Starr..."
QuizBay Help with the testing of this Beta site!
|
|
|
|
02-22-2008, 11:21 AM
|
Re: Contact Page
|
Posts: 1,618
Name: Stefan
Location: London, UK
|
Quote:
Originally Posted by rolda hayes
Pretty cool generator, well done you! *Bookmarked*
|
 Thanks mate.
|
|
|
|
02-22-2008, 01:03 PM
|
Re: Contact Page
|
Posts: 15
Name: Jamie Gordon
|
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
|
|
|
|
02-22-2008, 05:59 PM
|
Re: Contact Page
|
Posts: 1,618
Name: Stefan
Location: London, UK
|
Sorry, not sure what you mean. The link is dead.
|
|
|
|
02-22-2008, 06:25 PM
|
Re: Contact Page
|
Posts: 1,618
Name: Stefan
Location: London, UK
|
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.
|
|
|
|
02-25-2008, 02:29 AM
|
Re: Contact Page
|
Posts: 463
Name: Jerod Lycett
Location: /home/arenlor
|
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>
|
|
|
|
02-25-2008, 07:08 PM
|
Re: Contact Page
|
Posts: 1,618
Name: Stefan
Location: London, UK
|
You talking to me?
If so, tel me and i'll post the script.
|
|
|
|
02-25-2008, 07:21 PM
|
Re: Contact Page
|
Posts: 463
Name: Jerod Lycett
Location: /home/arenlor
|
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>
|
|
|
|
02-26-2008, 03:14 PM
|
Re: Contact Page
|
Posts: 15
Name: Jamie Gordon
|
Quote:
Originally Posted by Gilligan
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 03:15 PM.
|
|
|
|
02-27-2008, 09:06 AM
|
Re: Contact Page
|
Posts: 15
Name: Jamie Gordon
|
Quote:
Originally Posted by Gilligan
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
|
|
|
|
02-27-2008, 10:41 AM
|
Re: Contact Page
|
Posts: 463
Name: Jerod Lycett
Location: /home/arenlor
|
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>
|
|
|
|
02-27-2008, 11:53 AM
|
Re: Contact Page
|
Posts: 15
Name: Jamie Gordon
|
Quote:
Originally Posted by Arenlor
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
|
|
|
|
02-27-2008, 11:58 AM
|
Re: Contact Page
|
Posts: 15
Name: Jamie Gordon
|
There we go, check your hotmail account and find the results.php page enclosed.
Thanks again,
JAMiE
|
|
|
|
02-27-2008, 03:24 PM
|
Re: Contact Page
|
Posts: 463
Name: Jerod Lycett
Location: /home/arenlor
|
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> </p>
<p>Thank you,</p>
<p> </p>
<p>Jamie Gordon</p>
<p>Web Developer</p>
<p>Flash Media Internet Services</p>
<p> </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 © 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> </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" /> | |