Hi guys,
I'm a newbie to php and need help with the script below:
At the moment when I receive the automated email of data, I'm not receiving any information with the form field names I receive blank info and the html markup
eg:
Name:
Company:
and so on.
Also how can I make the from field in the email sent to me display as that of the user who has submitted the form and included his email in the form.
Site: http://experiment.treadeverywhere.com/itmb/contact.html
Script below:
Code: [Select]<?php
/* Subject and Email Variables */
$emailSubject = 'Crazy PHP Scripting!';
$webMaster = 'dazan@treadeverywhere.com';
/*Gathering Data Varialbes */
$forenameField = $_POST['forename'];
$companyField = $_POST['company'];
$positionField = $_POST['position'];
$addressField = $_POST['address'];
$cityField = $_POST['city'];
$potscodeField = $_POST['postcode'];
$telephoneField = $_POST['telephone'];
$emailField = $_POST['email'];
$businessmobilesField = $_POST['businessmobiles'];
$blackberrysolutionsField = $_POST['blackberrysolutions'];
$otherField = $_POST['other'];
$timescaleField = $_POST['timescale'];
$body = <<<EOD
<hr>
Name: $forename
Company: $company
Postion: $position
Address: $address
City: $city
Postcode: $postcode
Telephone: $telephone
Email: $email
Business Mobiles: $businessmobiles
Blackberry Solutions: $blackberrysolutions
Other: $other
Timescale: $timescale
EOD;
$success = mail($webMaster, $emailSubject, $body);
/*Results Rendered as html*/
$theResults = <<<EOD
<html>
<head>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="author" content="Dazan Alyanai" />
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
<title>Unsupported Browser</title>
<link rel="shortcut icon" HREF="favicon.ICO">
<style type="text/css">
<!--
* {margin: 0; padding: 0}
body {font-size: 62%;
background-color: #666666;
font: 1em Arial, Verdana;
color: #333333;
}
#wrapper {margin: 10em auto;
padding-top: 0em;
position: relative;
padding: 1em;
width: 400px;
height: 200px;
background-color: #999999;
}
-->
</style>
</head>
<body>
<div id="wrapper">
<h1>! Unsupported Browser !</h1>
<p>This Browser has known compatibility issues with modern web standards.
We recommend installing or updating to one of the following browsers.</p>
<a href="http://www.mozilla.com/en-US/products/download.html?product=firefox-3.5.3&os=osx&lang=en-US" style="float: right">Firefox</a><a href="http://www.microsoft.com/windows/internet-explorer/worldwide-sites.aspx">IE 7+</a>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>
Thanks in advance
Exporting new records
Trying to figure out the best way to set this up.People register my site. Their profile has the date they registered.I've got another table called 'markets' which has some information that is specific
Coefficient of a Restitution Hints
Hello. I was wondering if anyone can give me hints on how to write this program...The coefficient of a restitution of a ball, a number between 0 and 1, specifiies how much energy is conserved when a
quotes changing
hi allin my contentopening quotes " changes to “close quotes " changes to �what should i use.example :Code: sams’s “whip lashâ€
Access website from only 1 computer...?
One of my customers wants his website to only be accessed by people in which they bought the website membership from on their computer. He's afraid that the users might share their login's with their
Having Problem with Date
l have a submit buttom where user have the possibility to add a date to specify when his message should be made reachable online.I have seen a bug which l am not having a clue to solve and l need
some query on multilingual website
Hi all,Which is the simplest and easiest method to make a website multilingual,is it putting files in different folder for different languages? or something else ?any suggestions will be
Add trigger to UpdatePanel programmatically
Hi,I'm working on a website which uses AJAX and Masterpages. What I have is an AJAX UpdatePanel which contains the ContentPlaceHolder on the MasterPage.However, on one page I have a FileUpload
single values into sql field
i have a form which i want the user to able to select multiple answers. But i want the answers to be stored into a single field on the mysql table in the back end. e.gthe user may select red + blue +
array_combine() trouble w/csv file
I have a problem with a piece of code I wrote to import some records from a csv file into mysql. I have a .csv file with about 300 records in it. The code worked perfect while testing on 3 or 4
Display error above the login forum help!
Hi guys. just so you know im not asking for someone to do this for me I just need to be pointed in the right direction...here is my problem. I have index.php in that file i have included login.php