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
Inserting a check in checkbox from array value
Hello all,I have a bit of code that works for a select option box, but does not work for my checkboxes. I need multiple selections on this code and I really don't like the look of multiple select
Retrieving the 25 most recently added entries from all tables in a MySQL databas
Hello,The code below works great. It creates a table that shows the 25 most recently added tables to a MySQL database called "sitefeather."Each one of these tables has the following
Trying to add functions to table
I have this list of characters and I'm trying to figure out what I have to do to put the results of these functions into the table or what not. Keep in mine that these functions are included in a file
Get content from table into a list, without repeating.
Alright this is kinda an odd thing, so I need some help.I have a table "quote" with the three columns `id`, `quote`, and `author`.Now I am wondering if there is anyway that I can output all
Multiple submit forms inside a mysql array page
Hi all,Im having trouble to get the beneath script to work the thing i can't seem to get workin is the following.The page requests the data from a mysql table using mysql array so there are mutliple
how to load a Sys file with system load and call images?
normally you need register the module as a service with CreateService, and start the service
I need help with formatting date from mysql! with php!
Hello guys*Note: this is a php question not MySQL question, please do not move it to mysql section! Thank you.anyway, I have a record from the database as 2009-12-31 23:59:59I needed to when ever I
search query in mysql in php problem
my search query wont work, i know, that my codes are correct.please helpCode: [Select]<table width="300" border="0" align="center" cellpadding="0"
ClientScript.RegisterClientScriptBlock Issue
This is what I haveview plaincopy to clipboardprint?Protected Sub posrback_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles posrback.Click
Can't find the problem (no error message)!
OK, here's the deal. This code is really weirdly formatted (sorry!) and hard to understand, so I'm going to try and make it as easy as possible. Here's a breakdown of what the user should do:1. The