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
Calculating n! using vector
#include <cstdio>
Help with parsing this html
Hi, I've got some html i just need a couple of strings from.. argh, it's freaking me out. I've tried a lot.Here is the html:Code: <div id="Tab01" style="overflow: auto;
Calling strings from other php class
I have test1.php{$string1;$string2;....... //10 strings in this class $string10;}Another class test2.php{.........I want to use those 10 strings here, how should I do it?}
Registration
ok so i have a site where people can register and login which works now thanks to someone on here that pointed out my error :-)Now my users click my links they can view the content without logging in,
Hashing?
Hi, I was hoping to take a string value then convert it - consistently - across each of our pages into a alphanumeric value. I figured the hash function would be able to accomplish this; the results
Need a fuction to count entries in a field
HiI need a fuction to count how many times a email address is entered in to a field.I making a for wordpress that counts how many timesa user has made comments.Thanks
Problem displaying "scraped" XML data
I'm basicly having trouble displaying XML data scraped from an URL using cURL.What the code should do:Using Curl the code should "grab" the xml data from a specified URL.It should then
CHECH A STRING FOR ' " ' (DOUBLE QUOTES)
I am checking for delimiter (.!?) and if there is a " after a sentence then it should neglect and start from next sentenceI am splitting into two sentences"This is first sentence." This
hiCode: <?phpecho "<td width=\"$columnWidth%\" align=\"center\"><a href=\"" . $_SERVER['PHP_SELF'] .
Extracting URL pointer within XML tag
Hi.I'm trying to extract text between two quotation marks in XML. For example, I want to extract:<a href="www.thisisanexample.com">Click here</a>. I want to