Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Help Assistance Please
Old 03-15-2009, 02:21 PM Re: Help Assistance Please
Average Talker

Posts: 27
Name: Steve
Trades: 0
This is the revised HTML code:

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>ContactForm</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<form action="contactformprocess.php" method="get" enctype="multipart/form-data" name="contactform" id="contactform">
<table width="414" border="0" align="center">
<tr>
<td width="200">Name</td>
<td width="200"><input name="name" type="text" id="name"></td>
</tr>
<tr>
<td width="200">Street Address </td>
<td width="200"><input name="street" type="text" id="street"></td>
</tr>
<tr>
<td width="200">City</td>
<td width="200"><input name="city" type="text" id="city"></td>
</tr>
<tr>
<td width="200">Zipcode</td>
<td width="200"><input name="zipcode" type="text" id="zipcode"></td>
</tr>
<tr>
<td width="200">Phone Number </td>
<td width="200"><input name="phone" type="text" id="phone"></td>
</tr>
<tr>
<td width="200">E-mail</td>
<td width="200"><input name="email" type="text" id="email"></td>
</tr>
<tr>
<td width="200">Please Provide a Short Description of the Project </td>
<td width="200"><textarea name="description" id="description"></textarea></td>
</tr>
<tr>
<td width="200">How Soon You Need This Project Done </td>
<td width="200"><select name="time" id="time">
<option value="0">Emergency</option>
<option value="1" selected>Immediately within 1-2 days</option>
<option value="2">Within a week</option>
<option value="3">Within a month</option>
</select></td>
</tr>
<tr>
<td width="200">Please Indicate Your Availability </td>
<td width="200"><select name="availability" id="availability">
<option value="0" selected>Monday</option>
<option value="1">Tuesday</option>
<option value="2">Wednesday</option>
<option value="3">Thursday</option>
<option value="4">Friday</option>
<option value="5">Saturday</option>
<option value="6">Sunday</option>
</select></td>
</tr>
<tr>
<td>Preference</td>
<td><select name="preference" id="preference">
<option value="0">Morning</option>
<option value="1">Afternoon</option>
<option value="2">Evening</option>
<option value="3" selected>No Preference</option>
</select></td>
</tr>
<tr>
<td>How Did You Hear About Us </td>
<td><textarea name="hear" id="hear"></textarea></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Send"></td>
<td><input name="reset" type="reset" id="reset" value="Reset form"></td>
</tr>
</table>
</form>
</body>
</html>
__________________
SR Design Concepts
Steve Rosenthal

Please login or register to view this content. Registration is FREE
srdesign is offline
Reply With Quote
View Public Profile Visit srdesign's homepage!
 
 
Register now for full access!
Old 03-15-2009, 02:22 PM Re: Help Assistance Please
Average Talker

Posts: 27
Name: Steve
Trades: 0
and this is the PHP code:

<?php

/* Subject and Email Variables */

$emailSubject = 'The Ultimate Handymen Website!';
$webMaster = 'service@theultimatehandymen.com';

/* Gathering Data Variables */

$nameField = $_GET['name'];
$streetField = $_GET['street'];
$cityField = $_GET['city'];
$zipcodeField = $_GET['zipcode'];
$phoneField = $_GET['phone'];
$emailField = $_GET['email'];
$descriptionField = $_GET['description'];
$timeField = $_GET['time'];
$availabilityField = $_GET['availability'];
$preferenceField = $_GET['preference'];
$hearField = $_GET['hear'];

$body = <<<EOD
<br><hr><br>
Name: $name <br>
Street: $street <br>
City: $city <br>
Zipcode: $zip <br>
Phone Number: $phone <br>
Email: $email <br>
Description: $description <br>
Time: $time <br>
Availability: $availability <br>
Preference: $preference <br>
Hear: $hear <br>
EOD;

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

/* Results rendered as HTML */

$theResults = <<<EOD
<html>
<head>
<title>The Ultimate Handymen-Homepage</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #f1f1f1;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #666666;
text-decoration: none;
}
-->
</style>
</head>

<div>
<div align="left">Thank you for your interest! Your email will be answered very soon!</div>
</div>
</body>
</html>
EOD;
echo "$theResults";

?>
__________________
SR Design Concepts
Steve Rosenthal

Please login or register to view this content. Registration is FREE
srdesign is offline
Reply With Quote
View Public Profile Visit srdesign's homepage!
 
Old 03-15-2009, 04:30 PM Re: Help Assistance Please
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.theultimatehandymen.com/c...ormprocess.php still doesn't exist

Until that page is there and returns a response other than a 404 no amount of posting code will help.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Help Assistance Please

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.38689 seconds with 11 queries