session_start(); require_once "config/config.php"; require_once "privilieges/xml_function.php"; // To Fetch the Xml Files require_once "privilieges/common_fn.php"; if(!isset($_POST['submit'])) { if($img_ny==1) { $show = 'block';} else { $show = 'none'; } if($img_ny==2) { $show1 = 'block';} else { $show1 = 'none'; } } if(isset($_POST['submit'])) { // Join with Addwizz.com //personal details if(isset($_POST['name']) && $_POST['name'] !="") $feed_name = $_POST['name']; else $feed_name1 = 'Please Enter your Name'; if(isset($_POST['email']) && $_POST['email']!="") { if(!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&?'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$",$_POST['email'])) { $user_email=$_POST['email']; } else { $user_email1="please enter the valid email"; } }else { $user_email1="please enter the email"; } if(isset($_POST['mobile']) && $_POST['mobile'] !="") $feed_phone = $_POST['mobile']; else $feed_phone1 = 'Please Enter your Phone Number'; if(isset($_POST['country']) && $_POST['country'] !="") $country = $_POST['country']; else $country1 = 'Please Enter your country '; if(isset($_POST['state']) && $_POST['state'] !="") $state = $_POST['state']; else $state1 = 'Please Enter your state '; if(isset($_POST['city']) && $_POST['city'] !="") $city = $_POST['city']; else $city1 = 'Please Enter your city '; //end personal details $ip_addr=$_SERVER['REMOTE_ADDR']; //domain details if(isset($_POST['domainname']) && $_POST['domainname'] !="") $domainname = $_POST['domainname']; else $domainname1 = 'Please Enter your budject '; if(isset($_POST['createdate']) && $_POST['createdate'] !="") $createdate = $_POST['createdate']; else $createdate1 = 'Please Enter your budject '; //end domain details //project details if(isset($_POST['message']) && $_POST['message'] !="") $message = $_POST['message']; else $message1 = 'Please Enter your message '; if(isset($_POST['category']) && $_POST['category'] !="") $category = $_POST['category']; else $category1 = 'Please Enter your category '; if(isset($_POST['nopages']) && $_POST['nopages'] !="") $nopages = $_POST['nopages']; else $nopages1 = 'Please Enter your category '; //end project details //page details if(isset($_POST['pagedetails']) && $_POST['pagedetails'] !="") $pagedetails = $_POST['pagedetails']; else $pagedetails1 = 'Please Enter your budject '; if(isset($_POST['pagecount']) && $_POST['pagecount'] !="") $pagecount = $_POST['pagecount']; else $pagecount1 = 'Please Enter your budject '; if(isset($_POST['budjet']) && $_POST['budjet'] !="") $budjet = $_POST['budjet']; else $budjet1 = 'Please Enter your budject '; if(isset($_POST['timeframe']) && $_POST['timeframe'] !="") $timeframe = $_POST['timeframe']; else $timeframe1 = 'Please Enter your budject '; //end page details //sample domains if(isset($_POST['sampledomains']) && $_POST['sampledomains'] !="") $sampledomains = $_POST['sampledomains']; else $sampledomains1 = 'Please Enter your budject '; if(isset($_POST['domaincount']) && $_POST['domaincount'] !="") $domaincount = $_POST['domaincount']; else $domaincount1 = 'Please Enter your budject '; //end sample domains //chat id if(isset($_POST['img_ny']) && $_POST['img_ny'] !="") $img_ny = $_POST['img_ny']; else $img_ny1 = 'Please Enter your budject '; if(isset($_POST['chatid']) && $_POST['chatid'] !="") $chatid = $_POST['chatid']; else $chatid1 = 'Please Enter your budject '; if(isset($_POST['time']) && $_POST['time'] !="") $time = $_POST['time']; else $time1 = 'Please Enter your budject '; if(isset($_POST['date']) && $_POST['date'] !="") $date = $_POST['date']; else $date1 = 'Please Enter your budject '; //end chat details $today=date('Y-m-d'); if($feed_name1 || $user_email1 || $budjet1 || $category1 || $feed_phone1 || $domainname1 || $country1 || $state1 || $city1 || $message1 || $createdate1 || $nopages1 || $pagedetails1 || $pagecount1 || $timeframe1 || $img_ny1) { $error =1; } if(!$error) { $sql ="INSERT INTO `customize_quotes` (`customize_name` , `customize_email` , `customize_mob` , `customize_country` , `customize_state` , `customize_city` , `customize_pagedetails` , `customize_pagecount` , `customize_time` , `customize_budjet` , `customize_domain_name` , `customize_create_date` , `customize_domain_details` , `customize_domain_pages` , `customize_category` , `customize_sample_domain` , `customize_domain_count` , `customize_chat_status` , `customize_chatid` , `customize_chat_time` , `customize_chat_date` , `customize_reg_date` , `customize_ip` , `customize_status` ) VALUES ( '$feed_name', '$user_email', '$feed_phone', '$country', '$state', '$city', '$pagedetails', '$pagecount', '$timeframe', '$budjet', '$domainname', '$createdate', '$message', '$nopages', '$category', '$sampledomains', '$domaincount', '$img_ny', '$chatid', '$time', '$date', '$today', '$ip_addr', '0');"; mysql_query($sql); //require_once "email/email.php"; $succ = 1; $feed_name=''; $feed_phone=''; $user_email=''; $budjet=''; $category=''; $domainname=''; $country=''; $state=''; $city=''; $message=''; $pagedetails=''; $pagecount=''; $timeframe=''; $createdate=''; $nopages=''; $sampledomains=''; $domaincount=''; $show = 'none'; $chatid=''; $time=''; $date=''; } } ?>