FORUM HOME | WHUK BLOG   
WEB HOSTING UK AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM
PHP LINUX SHARED HOSTING WINDOWS ASP.NET HOSTING PACKAGES
ECOMMERCE HOSTING ASP MSSQL MS ACCESS ODBC FRONTPAGE HOSTING
CPANEL WHM FANTASTICO RESELLER DEDICATED SERVER WEB HOSTING
CHEAP PLESK CPANEL HTML MYSQL BEST UK VPS HOSTING COMPANY
CHEAP RELIABLE UK HOSTING PROVIDER SINCE 2001
MANAGED WEB HOSTING SERVICE
AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM

Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum » Technical Support » PHP Hosting

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 19-03-11, 01:40 PM
new member
 
Join Date: Mar 2011
Posts: 4
Default newbie ..need help with form please

hi all . i am new to webdesign and made a little site for my company.
As i have very little understanding of how to it ,i used a template and changed its contents (weeks later).
The site looks ok (wilkinsandsons.co.uk) but the problem i have is the php contact form ,it sends to my email but i get no text in it it just says this

Name:
Email :
Subject:

and none of the fileds have the text i sent. my php form code is

<?php

/* Email Variables */

$emailSubject = 'contactformprocess!';
$webMaster = 'willywonker1@aol.com';


/* Data Variables */


$name = $_POST['name'];
$email = $_POST['email address'];
$subject = $_POST['subject'];



$body = <<<EOD
<br><hr><br>
Name: $Name <br>
Email : $Email <br>

Subject: $Subject <br>
EOD;

$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);


/* Results rendered as HTML */

$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="4;URL=http://wilkinsandsons.co.uk">
<style type="text/css">
<!--
body {
background-color: #444;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #fec001;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}

-->
</style>
</head>
<div align="center">Your email will be answered soon as possible!
You will return to Wilkins and Sons plastering in a few seconds !</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>


hope someone can help as its driving me insane and its all i need to finish it
Reply With Quote

  #2 (permalink)  
Old 19-03-11, 06:33 PM
MrTWS's Avatar
Senior Member
 
Join Date: May 2008
Posts: 203
Default

I'm not up on PHP but try this link to a free script
You can compare like for like and maybe work out the problem

LINK
Thanks
__________________
Web Design Services
Reply With Quote

  #3 (permalink)  
Old 20-03-11, 09:43 AM
new member
 
Join Date: Mar 2011
Posts: 4
Default

ok thanks for the reply ,trying to work it out but im no computer wiz and finding it very hard.
did'nt really want to change my script because i am getting even more confused,but looks like i will have to .
Thanks for your reply
Reply With Quote

  #4 (permalink)  
Old 20-03-11, 03:20 PM
MrTWS's Avatar
Senior Member
 
Join Date: May 2008
Posts: 203
Default

Why don't you use an ASP script for the contact pages - at least I could help you then LOL
I assume that the script you've put below is the actual script (including the aol address?
Because I guess that might be the problem as you should be using an email account that you have setup already on WHUK, something like for example info@wilkinsandsons.co.uk not sending it to an AOL email

I suspect it is to with validation as well as authentication with sending emails through a contact form
__________________
Web Design Services
Reply With Quote

  #5 (permalink)  
Old 20-03-11, 10:00 PM
new member
 
Join Date: Mar 2011
Posts: 4
Default

tried what you said still can not get it to work .
is a asp script just as hard to understand and can i use it on my linux shared hosting?
christ how long did it take you guys to learn all this stuff!
thanks for helping
Reply With Quote

  #6 (permalink)  
Old 21-03-11, 12:26 AM
new member
 
Join Date: Mar 2011
Posts: 4
Default

a few hours later and i have worked it out..
just went through the code and a space in the wrong place here and there will not let it work .. christ thought i would never get there..
thanks for helping Mr TWS
Reply With Quote

  #7 (permalink)  
Old 21-03-11, 12:24 PM
MrTWS's Avatar
Senior Member
 
Join Date: May 2008
Posts: 203
Default

Bonus then - glad you got it sorted. If you require any further help then just give us a shout
Bye for now
__________________
Web Design Services
Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 08:19 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Copyright 2001-2010 Web Hosting UK. All rights reserved.
Web Hosting UK Forum





Site Map

Shared Cloud
Shared Cloud From £1

Affiliate Program
Earn up to £300 Per Sale

Dedicated Servers
Dedicated Server Hosting

Cloud Hosting
Cloud Server Hosting

Load Balanced Server
Load Balancing Server

VPS Hosting
Linux VPS Hosting

Windows VPS
Windows 2003 VPS

Zimbra Hosting
Zimbra Email Hosting

cPanel Hosting
Shared Linux Hosting

Windows Hosting
Shared Windows Hosting

Coldfusion Hosting
Windows Coldfusion Hosting

cPanel Reseller Hosting
Reseller Hosting

Windows Reseller
Windows Reseller Hosting

Email Web Hosting
Email Hosting

Semi-Dedicated Server
Semi-Dedicated Hosting

Remote Backup Plans
Offsite Backup Service


cpanel hosting
Knowledgebase Articles

Pre-Sales Question
Web Hosting FAQ's

Dedicated Hosting
Dedicated Server FAQ's

Virtual Private Servers
VPS Hosting

PHP MySQL Hosting
cPanel Hosting

Windows Hosting
ASP MSSQL Hosting

Domain Name
Domain registration FAQ's

CMS Hosting
CMS Hosting FAQ's

Payment Gateways
Payment FAQ's


Support Tutorials

cPanel Tutorials
cPanel Flash Tutorials

Wordpress Tutorials
Wordpress Flash Tutorials

Plesk Tutorials
Plesk Flash Tutorials

PhpMyadmin Tutorials
PhpMyadmin Flash Tutorials

Drupal Tutorials
Drupal Flash Tutorials

Mambo Tutorials
Mambo Flash Tutorials

Joomla Tutorials
Joomla Flash Tutorials

More Hosting Tutorials