<?php
//form variables
$fname = $_POST["fname"];
$mname = $_POST["mname"];
$lname = $_POST["lname"];
$comp = $_POST["comp"];
$email = $_POST["email"];
$add1 = $_POST["add1"];
$add2 = $_POST["add2"];
$phone1 = $_POST["phone1"];
$phone2 = $_POST["phone2"];
$city = $_POST["city"];
$state = $_POST["state"];
$zip = $_POST["zip"];
$package = $_POST["package"];
$domain = $_POST["domain"];
//mysql stuff
$server = "*****";
$user = "*****";
$pw = "*****";
//Mysql Connect
$con = mysql_connect($server, $user, $pw);
if(!$con)
{
echo("Can not connect to the server:" . mysql_error() );
exit();
}
//Select the DB
$dbcon = mysql_select_db(*****);
if(!$dbcon)
{
die('Could not connect to the database:' . mysql_error());
exit();
}
// Insert form data
$sql = "INSERT INTO ***** (fname,mname,lname,comp,email,add1,add2,phone1,phone2,city,state,zip,package,domain) VALUES ('$fname','$mname','$lname','$comp','$email','$add1','$add2','$phone1','$phone2','$city','$state','$zip','$package','$domain')";
// mysql_query($sql)
if (mysql_query($sql))
{
echo "<br><br><br><br><br><br><br><br><br><br>Thank you for choosing www.adabraxix.net for your web hosting needs. We look forward to serving you in the future.
<br>
<br>
<br>
Please allow up to 48 hrs for your selected package to be activated. An email with the information you entered will be sent to the email address you provided for your records.";
}
else
{
echo "ERROR:" . mysql_error();
}
mysql_close($con);
?>
<form action="viewpage.php?page_id=6" method="post">
* First Name:<input type="text" size="25" name="fname">
* Middle Initial:<input type="text" size="2" name="mname">
* Last Name:<input type="text" size="25" name="lname">
<br>
<br>
* Company:<input typpe="text" size="35" name="comp">
* Valid Email:<input type="text" size="35" name="email">
<br>
<br>
* Address 1:<input type="text" size="25" name="add1">
Contact Phone:<input type"text" size="10" name="phone1">
Alt. Phone:<input type="text" size="10" name="phone2">
<br>
<br>
* Address 2:<input type="text" size="25" name="add2">
* City:<input type="text" size="25" name="city">
* State / Province:<input type="text" size="25" name="state">
<br>
<br>
* Zip / Postal Code:<input type="text" size="5" name="zip">
<br>
<br>
* Please select the package you wish to signup for:
<select name="package">
<option value="Free">Free Hosting( Ad Supported)</option>
<option value="Basic">Basic Hosting( $3.95 Mo )</option>
<option value="Standard">Standard Hosting( $5.95 Mo )</option>
<option value="Standard Plus">Standard Plus Hosting( $7.95 Mo )</option>
<option value="Elite">Elite Hosting( $9.95 Mo )</option>
<option value="Elite Plus">Elite Plus Hosting( $11.95 Mo )</option>
</select><br />
<br>
<br>
<br>
<b>Free or sub-domain accounts please enter your desired sub-domain name below. ( Ex. mydomainname.adabraxix.net )
<br>
<br>
<input type ="text" size="35" name="domain">.adabraxix.net</b>
<br>
<br>
<center>
Please tell us a little about your site. Be sure to include information you may be unsure about regarding our terms of service.
<br>
<br>
<textarea rows="10" cols="50" name="quote" wrap="physical"></textarea></center>
<br>
<br>
<br>
<center>
<input type="submit" value="On to next step" >
</form>
<?php
//variables for form data
$fname = $_POST["fname"];
$mname = $_POST["mname"];
$lname = $_POST["lname"];
$comp = $_POST["comp"];
$email = $_POST["email"];
$add1 = $_POST["add1"];
$add2 = $_POST["add2"];
$phone1 = $_POST["phone1"];
$phone2 = $_POST["phone2"];
$city = $_POST["city"];
$state = $_POST["state"];
$zip = $_POST["zip"];
$package = $_POST["package"];
$domain = $_POST["domain"];
?>
<left>
<form method="post" action="insert.php">
<br>
<br>
<br>
<br>
<br>
<b>Please review the following information for accuracy, If you spot a mistake, please go back and correct it before continueing.</b>
<br>
<br>
<br>
<br>
<br>
<b>First Name:</b> <? echo"$fname"; ?>
<br>
<br>
<b>Middle Initial:</b> <? echo"$mname"; ?>
<br>
<br>
<b>Last Name:</b> <? echo"$lname"; ?>
<br>
<br>
<b>Company:</B> <? echo"$comp"; ?>
<br>
<br>
<b>Email:</b> <? echo"$email"; ?>
<br>
<br>
<b>Address 1:</b> <? echo"$add1"; ?>
<br>
<br>
<b>Address 2:</b> <? echo"$add2"; ?>
<br>
<br>
<b>City:</b> <? echo"$city"; ?>
<br>
<br>
<b>State:</b> <? echo"$state"; ?>
<br>
<br>
<b>Zip:</b> <? echo"$zip"; ?>
<br>
<br>
<b>Contact Phone:</b> <? echo"$phone1"; ?>
<br>
<br>
<b>Alt. Phone:</b> <? echo"$phone2"; ?>
<br>
<br>
<b>Hosting Package:</b> <? echo"$package"; ?>
<br>
<br>
<b>Site Name:</b> <? echo"$domain"; ?>.adabraxix.net
<br>
<br>
<a href="http://www.adabraxix.net/viewpage.php?page_id=13">
<img src="http://www.adabraxix.net/images/banner/back.jpg"></a>
</left>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
If you are signing up for free hosting, Please select the initial 2 ads you wish to display. These will be placed in your site on either the left , right , top , or bottom and will be rotated out on a monthly basis.
<br>
<br>
<br>
<br>
<b>Small Box Ads
<br>
<img src="http://www.adabraxix.net/images/adds/eve8.jpg">
<input type="checkbox" value="eve8"name="ad1">
<img src="http://www.adabraxix.net/images/adds/eve14.gif">
<input type="checkbox" value="eve14"name="ad2">
<img src="http://www.adabraxix.net/images/adds/eve15.jpg">
<input type="checkbox" value="eve15"name="ad3">
<img src="http://www.adabraxix.net/images/adds/eve13.gif">
<input type="checkbox" value="eve13"name="ad4">
<img src="http://www.adabraxix.net/images/adds/eve12.gif">
<input type="checkbox" value="eve12"name="ad5">
<br>
<br>
<br>
<br>
<b>Banners and Sky Scrapers
<br>
<br>
<img src="http://www.adabraxix.net/images/adds/eve1.jpg">
<input type="checkbox" value="eve1"name="ad6">
<img src="http://www.adabraxix.net/images/adds/eve10.gif">
<input type="checkbox" value="eve10"name="ad8">
<img src="http://www.adabraxix.net/images/adds/eve11.jpg">
<input type="checkbox" value="eve12"name="ad9">
<img src="http://www.adabraxix.net/images/adds/eve2.gif">
<input type="checkbox" value="eve2"name="ad10">
<img src="http://www.adabraxix.net/images/adds/eve6.jpg">
<input type="checkbox" value="eve6"name="ad11">
<br>
<br>
<br>
<br>
<img src="http://www.adabraxix.net/images/adds/eve3.gif">
<input type="checkbox" value="eve3"name="ad12">
<br>
<br>
<br>
<br>
<input type="submit" name="submit" value ="Lets Finish This">
</form>
<input type="hidden" name="fname" value="<?php echo $_POST["fname"]; ?>" />
Category Forum
Official Core Support - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions