<?PHP




$start = $_POST['start'];

$email = $_POST['email'];

$name = $_POST['name'];

$body = $_POST['body'];

// Clean Client Full Name
$name = preg_replace("/[^a-zA-Z0-9\s]/", "", $name);

// Clean Client body
$body = preg_replace("/[^a-zA-Z0-9\s]/", "", $body);


// Do not do errorcheck if page is just loaded
if(isset($start)){
	
$random_hash = md5(date('r', time()));	

$headers = "\r\nContent-Type: text/vnd.wap.wml"; 		
// 					
$origin_ip = $_SERVER['REMOTE_ADDR'];
$from = "From: bill@galacticstudios.com\nContent-Type: text/vnd.wap.wml";

$trak = 'galactic'.date('dmyHis');


 $flemail = 'bill@galacticstudios.com';
 
 echo "$email";

$subject = "Thank you for your submitting your Galactic Studios wml.";
$subject2 = "A new email has been submitted.";

$part_01 = "Galactic Order No: $trak \nHere is a submission from $email, \n\nSubmitting IP: $origin_ip \n<br /><br />";

$part_03 = "$name<br />$address1 <br />$body <br /> <br />       Email: $email\n\n";

$part_02 ='<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<title>GalacticStudios.Com Los Angeles</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
		<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><i><a href="wtai://wp/mc;13238391673"><img src="http://www.galacticstudios.com/images/commingsoon_logo.gif" align="left" vspace="0" hspace="0" border="0" alt="Home"></a></i></td>
  </tr>
			<tr>
				<td>
					<div align="center">
						<font size="1"><i><font color="#ff6600" face="Tahoma, sans-serif"><b>GalacticStudios<br>
										
										Hollywood CA<br>
									</b></font></i></font></div>
				</td>
			</tr>
			<tr>
				<td>
					<div align="center">
						<font size="1"><b>
						WEB HOSTING<br>
								
						PHP-PERL-MYSQL</b></font></div>
				</td>
			</tr>
			<tr>
				<td>
					<div align="center">
						<font face="Tahoma, sans-serif" size="1"><b><a href="wtai://wp/mc;13238391673">PHONE</a></b></font><br>323-839-1673</div>
				</td>
			</tr>
			<tr> 
    <td bgcolor="#FFFFFF">
					<p align="center"><font face="Tahoma, sans-serif" size="1"><b>TEXTMESSAGE<br>
							</b>3238391673@<br>
							sprintpcs.com</font></p>
				</td>
  </tr>
			<tr>
				<td bgcolor="#FFFFFF">
					<div align="center">
						<font face="Tahoma, sans-serif" size="1"><b>EMAIL</b></font><br>
						<font face="Tahoma, sans-serif" size="1">bill@galactic<br>
							
								studios.com</font></div>
				</td>
			</tr>
			<tr>
				<td bgcolor="#FFFFFF">
					<div align="center">
						<font face="Tahoma, sans-serif" size="1"><b>AOL<br>
								galactic</b></font></div>
				</td>
			</tr>
			<tr>
				<td bgcolor="#FFFFFF"></td>
			</tr>
		</table>
	</body>
</wml>

';

$part_05 = "Thank you\n\r";

$part_04 = "<br />Galactic Order No: $trak<br /><br />Thank you for submitting your Galactic WML";
 

$body = "$body  \r";


$message_01 = $part_01 .$part_02. $body ;
$message_02 = $part_02 . $body . $part_04;

$message_01 = wordwrap($message_01,70);
$message_02 = wordwrap($message_02,70);

mail($email,$subject,$message_02,$from);
mail($flemail,$subject2,$message_01,$from);

// After sending email refreash to thank you page
		
 print "<script>window.location.href=' http://www.galacticstudios.com'</script>";  	

	                	}
                  

?>



<html>
<head>
<title>Get a project quote from Galactic Studios today</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<Csscriptdict import>
			<Script type="text/javascript" src="../GeneratedItems/CSScriptLib.js"></Script>
		</Csscriptdict>
		<Csactiondict>
			<Script type="text/javascript"><!--
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		pre_galactic_quote_reset_up_21 = newImage('images/galactic_quote_reset_up_21.jpg');
		pre_galactic_quote_submit_up_22 = newImage('images/galactic_quote_submit_up_22.jpg');
		preloadFlag = true;
	}
}

// --></Script>
		</Csactiondict>
	</head>
<body onLoad="preloadImages();" bgcolor="#FFFFFF" leftmargin="10" topmargin="14" marginwidth="10" marginheight="14">
		<div align="center">
			<Form id="rfqform" action="<? $_SERVER['PHP_SELF']; ?>?start=1" method="post" name="rfqform" >
				<table id="Table_01" width="819" height="531" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td colspan="21"><img src="images/galactic_quote_01.jpg" width="818" height="100" alt=""></td>
						<td><img src="images/spacer.gif" width="1" height="100" alt=""></td>
					</tr>
					<tr>
						<td rowspan="10"><img src="images/galactic_quote_02.jpg" width="56" height="430" alt=""></td>
						<td colspan="5" rowspan="2"><img src="images/galactic_quote_03.jpg" width="207" height="29" alt=""></td>
						<td colspan="15"><img src="images/galactic_quote_04.jpg" width="555" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="1" height="1" alt=""></td>
					</tr>
					<tr>
						<td colspan="4"><img src="images/galactic_quote_05.jpg" width="121" height="28" alt=""></td>
						<td colspan="11" rowspan="2"><img src="images/galactic_quote_06.jpg" width="434" height="45" alt=""></td>
						<td><img src="images/spacer.gif" width="1" height="28" alt=""></td>
					</tr>
					<tr>
						<td colspan="9"><img src="images/galactic_quote_07.jpg" width="328" height="17" alt=""></td>
						<td><img src="images/spacer.gif" width="1" height="17" alt=""></td>
					</tr>
					<tr>
						<td rowspan="4"><img src="images/galactic_quote_08.jpg" width="1" height="224" alt=""></td>
						<td rowspan="3"><img src="images/galactic_quote_09.jpg" width="10" height="195" alt=""></td>
						<td colspan="7"><img src="images/galactic_quote_10.jpg" width="317" height="174" alt=""></td>
						<td rowspan="4"><img src="images/galactic_quote_11.jpg" width="8" height="224" alt=""></td>
						<td colspan="9" rowspan="4" background="images/galactic_quote_12.jpg"><Textarea name="body" rows="12" cols="37" tabindex="3"></Textarea></td>
						<td rowspan="7"><img src="images/galactic_quote_13.jpg" width="31" height="384" alt=""></td>
						<td><img src="images/spacer.gif" width="1" height="174" alt=""></td>
					</tr>
					<tr>
						<td colspan="7"><img src="images/galactic_quote_14.jpg" width="317" height="2" alt=""></td>
						<td><img src="images/spacer.gif" width="1" height="2" alt=""></td>
					</tr>
					<tr>
						<td colspan="2" rowspan="2"><img src="images/galactic_quote_15.jpg" width="79" height="48" alt=""></td>
						<td colspan="5" rowspan="2" background="images/galactic_quote_16.jpg"><Input type="text" name="name" size="20" tabindex="1"><Br>
							<Input type="text" name="email" size="20" tabindex="2"></td>
						<td><img src="images/spacer.gif" width="1" height="19" alt=""></td>
					</tr>
					<tr>
						<td><img src="images/galactic_quote_17.jpg" width="10" height="29" alt=""></td>
						<td><img src="images/spacer.gif" width="1" height="29" alt=""></td>
					</tr>
					<tr>
						<td colspan="3" rowspan="2"><a href="index.html" target="_parent"><img src="images/galactic_quote_18.jpg" width="76" height="52" alt="" border="0"></a></td>
						<td colspan="8"><a href="home.html" target="_parent"><img src="images/galactic_quote_19.jpg" width="268" height="34" alt="" border="0"></a></td>
						<td colspan="2"><img src="images/galactic_quote_20.jpg" width="104" height="34" alt=""></td>
						<td colspan="2"><A onMouseOver="changeImages('galactic_quote_21','images/galactic_quote_reset_up_21.jpg');return true" onMouseOut="changeImages('galactic_quote_21','images/galactic_quote_21.jpg');return true" href="#"><img id="galactic_quote_21" src="images/galactic_quote_21.jpg" name="galactic_quote_21" width="134" height="34" alt="" border="0" onClick="document.rfqform.reset()"></A></td>
						<td colspan="3"><A onMouseOver="changeImages('galactic_quote_22','images/galactic_quote_submit_up_22.jpg');return true" onMouseOut="changeImages('galactic_quote_22','images/galactic_quote_22.jpg');return true" href="#"><img id="galactic_quote_22" src="images/galactic_quote_22.jpg" name="galactic_quote_22" width="131" height="34" alt="" border="0" onClick="document.rfqform.submit()"></A></td>
						<td rowspan="3"><img src="images/galactic_quote_23.jpg" width="18" height="160" alt=""></td>
						<td><img src="images/spacer.gif" width="1" height="34" alt=""></td>
					</tr>
					<tr>
						<td colspan="3"><a href="galactic_programming.html" target="_parent"><img src="images/galactic_quote_24.jpg" width="135" height="18" alt="" border="0"></a></td>
						<td rowspan="2"><img src="images/galactic_quote_25.jpg" width="2" height="126" alt=""></td>
						<td><a href="galactic_hosting.html" target="_parent"><img src="images/galactic_quote_26.jpg" width="82" height="18" alt="" border="0"></a></td>
						<td colspan="4"><a href="galactic_design.html" target="_parent"><img src="images/galactic_quote_27.jpg" width="97" height="18" alt="" border="0"></a></td>
						<td><a href="galactic_work.html" target="_parent"><img src="images/galactic_quote_28.jpg" width="56" height="18" alt="" border="0"></a></td>
						<td><a href="galactic_download.html" target="_parent"><img src="images/galactic_quote_29.jpg" width="101" height="18" alt="" border="0"></a></td>
						<td colspan="2"><img src="images/galactic_quote_30.jpg" width="75" height="18" alt=""></td>
						<td><a href="galactic_contact.html" target="_parent"><img src="images/galactic_quote_31.jpg" width="75" height="18" alt="" border="0"></a></td>
						<td rowspan="2"><img src="images/galactic_quote_32.jpg" width="14" height="126" alt=""></td>
						<td><img src="images/spacer.gif" width="1" height="18" alt=""></td>
					</tr>
					<tr>
						<td colspan="6"><img src="images/galactic_quote_33.jpg" width="211" height="108" alt=""></td>
						<td colspan="10"><img src="images/galactic_quote_34.jpg" width="486" height="108" alt=""></td>
						<td><img src="images/spacer.gif" width="1" height="108" alt=""></td>
					</tr>
					<tr>
						<td><img src="images/spacer.gif" width="56" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="1" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="10" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="65" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="14" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="117" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="4" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="2" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="82" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="33" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="8" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="8" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="48" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="56" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="101" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="33" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="42" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="75" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="14" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="18" height="1" alt=""></td>
						<td><img src="images/spacer.gif" width="31" height="1" alt=""></td>
						<td></td>
					</tr>
				</table>
			</Form>
			<!-- End ImageReady Slices --></div>
	</body>
</html>