Inquire form HELP

Hi all!!

I feel like such a dummy :frowning: I study e commerce years ago, but i have completely forgotten how to do even the basics!!

I am editing a template for a site i want to create, this is the inquire.php file for the inquire section…

[php]<?php
//set variables
$name = trim($_POST[‘name’]);
$emailTo = trim($_POST[‘DO I PUT MY EMAIL HERE’]);
$email = trim($_POST[‘email’]);
$phone = trim($_POST[‘phone’]);
$comments = trim($_POST[‘comments’]);
$selectedItems = trim($_POST[‘selectedItems’]);

//Check to make sure sure that a valid email address is submitted
if($email == 'DO I PUT MY EMAIL HERE ALOS????')  {
	echo "f";
} else if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", $email)) {
	echo "f";
} else {
	
	//Send mail
	$body = "Customer Name: $name \n\nCustomer Email: $email \n\nPhone:\n$phone \n\nSelected Items: $selectedItems \n\nComments:\n$comments";
	$subject = "Customer Inquiry";
	$headers = "MIME-Version: 1.0\n";
	$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
	$headers .= "From: website\n";
	$headers .= "Reply-To: ".$email."\n";
	$headers .= "X-Mailer: PHP's mail() Function\n";
	if (mail($emailTo, $subject, $body, $headers)) {
		echo "s";
	}
	else {
		echo "f";
	}
}

?>
[/php]

Thanks in advance!!! :o

<!-- CALLING PHP FORM?--><form action="inquire.php" id="contactform" method="post" name=
"contactform">
<div id="inquire" class="section">
	<div class="inner-wrapper">

		<!-- Add your steps -->
		<div class="step">
			<div class="header">
				<h3>01</h3>
				<p>What services do you need?</p>
			</div>
			<ul class="choices multis">
				<li><input type="checkbox" value="Personal / Business Website" name="choices1" /><label><span>Personal / Business Website</span></label></li>
				<li><input type="checkbox" value="Website with CMS" name="choices1" /><label><span>Website with CMS</span></label></li>
				<li><input type="checkbox" value="Website Application" name="choices1" /><label><span>Start up Branding Package</span></label></li>
				<li><input type="checkbox" value="iOS Mobile App" name="choices1" /><label><span>App Development</span></label></li>
				<li><input type="checkbox" value="Android Mobile App" name="choices1" /><label><span>Digital Design+Marketing</span></label></li>
				<li><input type="checkbox" value="Print Collateral" name="choices1" /><label><span>Print Design+Marketing</span></label></li>
			</ul>
		</div><!-- // .step -->
		<div class="step">
			<div class="header">
				<h3>02</h3>
				<p>When do you need it done?</p>
			</div>
			<ul class="choices singles">
				<li><input type="radio" value="Less than a week" name="choices2" /><label><span>Less than a week</span></label></li>
				<li><input type="radio" value="1 to 2 weeks" name="choices2" /><label><span>1 to 2 weeks</span></label></li>
				<li><input type="radio" value="Within a month" name="choices2" /><label><span>Within a month</span></label></li>
				<li><input type="radio" value="1 to 2 months" name="choices2" /><label><span>1 to 2 months</span></label></li>
				<li><input type="radio" value="Take your time" name="choices2" /><label><span>Take your time</span></label></li>
			</ul>
		</div><!-- // .step -->
		<div class="step">
			<div class="header">
				<h3>03</h3>
				<p>What is your budget?</p>
			</div>
			<ul class="choices singles">
				<li><input type="radio" value="Less than $5,000" name="choices3" /><label><span>Under $1,000</span></label></li>
				<li><input type="radio" value="$5,000 to $10,000" name="choices3" /><label><span>$2,000 to $3,000</span></label></li>
				<li><input type="radio" value="$10,000 to $50,000" name="choices3" /><label><span>$3,000 to $5,000</span></label></li>
				<li><input type="radio" value="$50,000 to $1000,000" name="choices3" /><label><span>$5,000 to $10,000</span></label></li>
				<li><input type="radio" value="Over $100,000" name="choices3" /><label><span>Over $10,000</span></label></li>
			</ul>
		</div><!-- // .step -->
		<div class="step">
			<div class="header">
				<h3>04</h3>
				<p>Enter your contact information and/or comments you may have.</p>
			</div>
			<ul class="fields">
				<li><span class="required">*</span><input type="text" value="Name" id="name" name="name" class="clear-focus" /></li>
				<li><span class="required">*</span><input type="text" value="Email" id="email" name="email" class="clear-focus" /></li>
				<li><input type="text" value="Phone #" id="phone" name="phone" class="clear-focus" /></li>
				<li class="textbox"><textarea class="clear-focus" id="comments">Comments</textarea></li>
				<li>
					<input type="hidden" id="sendto_email" name="sendto_email" value="[email protected]" />
					<input type="submit" id="submit" value="Send Message" />
					<div class="processing"></div>
				</li>
			</ul>
			<div class="checkboxerror">Please make at least one selection.</div>
			<div class="errormsg">Sorry, your inquiry was not sent.</div>
		</div><!-- // .step -->
		
		<div id="confirmation">
			<div class="header">
				<h3>Inquiry Sent<span>.</span></h3>
			</div>
			<div class="message">
				<p>Thanks so much. we’ll get back to you with further details after reviewing your inquiry.</p>
			</div>
		</div>
		
		<!-- Do not change -->
		<div class="pagination">
			<p class="breadcrumb">
				<span id="step-number"></span> / 
				<span id="total-steps"></span>
			</p>
			<a href="#" class="next">Next</a>
			<a href="#" class="prev">Prev</a>
		</div><!-- // .pagination -->
	</div><!-- // .inner-wrapper -->
</div><!-- // #inquire -->
Sponsor our Newsletter | Privacy Policy | Terms of Service