Posted: Thu Sep 14, 2006 6:15 pm
I ended up making some large changes to how the form worked last night, the errors are still the same but they are on different numbers...so here is the entire php code on the page: http://www.gkwinspired.com/contact/web2.php (you can view it if you want...it works pretty good except for the undefined index problems)
Anyways....here is the code:
As you can tell I took out the code that feyd wrote....mainly because I was implementing it wrong...if you can give an example...that would be great. I searched for the function 'pullElement' but then read in a book that that is the function name, and you can name it whatever you want.
Thanks everah...you and feyd have been a great help.
--
Greg
Anyways....here is the code:
Code: Select all
<?php
if (!isset ($_REQUEST['package'])){
$answer = 0;
}
if (!isset ($_REQUEST['flash']) && ($_REQUEST['phpForm']) && ($_REQUEST['asp']) && ($_REQUEST['cms'])) {
$answer = 0;
}
if (!isset ($_REQUEST['fname']) || ($_REQUEST['lname']) || ($_REQUEST['email']) || ($_REQUEST['phone']) || ($_REQUEST['address']) || ($_REQUEST['city'])
|| ($_REQUEST['zip']) || ($_REQUEST['flash']) || ($_REQUEST['phpForm']) || ($_REQUEST['asp']) || ($_REQUEST['cms'])) {
echo "Thank you for your interest in a GKW Website. Please fill out the form below to get an estimate for your website.";
}
$fname = $_REQUEST['fname'];
$lname = $_REQUEST['lname'];
$email = $_REQUEST['email'];
$phone = $_REQUEST['phone'];
$address = $_REQUEST['address'];
$city = $_REQUEST['city'];
$state = $_REQUEST['state'];
$zip = $_REQUEST['zip'];
$package = $_REQUEST['package'];
$packagePrices = array (
'Basic' => 1500,
'Professional Lite' => 2300,
'Premium Professional' => 3500
);
$flash = $_REQUEST['flash'];
$flashPrice = 500;
$phpForm = $_REQUEST['phpForm'];
$phpPrices = array (
'1' => 200,
'2' => 400,
'3' => 600,
'4' => 800,
'5' => 1000
);
$asp = $_REQUEST['asp'];
$aspPrice = 1500;
$cms = $_REQUEST['cms'];
$cmsPrice = 3000;
?>Thanks everah...you and feyd have been a great help.
--
Greg