eHostBox
09-25-2004, 08:10 PM
hey everyone,
i am currently making an orders script for my website ehostbox.com and i am having a few problems with my code,
i am trying to carry the following variables in this cycle...
step_one.php (forms only)
Domain:_____________
TLD: (drop down /com/net/org/info/biz/us)
----------CARRY TO---------------------
step_two.php
Displays domain, TLD and gives another drop down
method = Transfer/Register
(this script now needs to carry $domain and $tld from step_one.php to step_three.php but also include $method into step_three.php which will then show the 3 variables and have another to be added (i can work from step_two.php when its completed)
here is what i have come up with...
STEP_ONE.PHP
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Domain Registration Please type your domain name below and select the
applicable TLD from the drop down menu</title>
</head>
<body bgcolor="#C8E3E9" topmargin="0">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-style: solid; border-width: 2; padding: 0" bordercolor="#111111" width="640" id="AutoNumber2" bgcolor="#FFFFFF">
<tr>
<td width="100%">
<img border="0" src="images/order_head.gif" width="640" height="85"></td>
</tr>
<tr>
<td width="100%"><font face="Verdana" size="2"><b>Domain Registration<br>
</b>Please type your domain name below and select the applicable TLD from
the drop down menu.<br>
</font><center><form method="GET" action="step_two.php">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="57%" id="AutoNumber3">
<tr>
<td width="50%"><font face="Verdana" size="2">Domain:</font></td>
<td width="50%"><font face="Verdana" size="2">TLD:</font></td>
</tr>
<tr>
<td width="50%"><font face="Verdana">
<input type="text" name="domain" size="45"></font></td>
<td width="50%"><font face="Verdana">.<?php include("tld_select.php"); ?></font></td>
</tr>
</table>
</center>
<br>
<input type="submit" value="Check Domain" name="B1"><br>
</form></td>
</tr>
<tr>
<td width="100%" style="border-top-style: solid; border-top-width: 1; padding: 0" bgcolor="#F2F3E9">
<p align="center"><b><font face="Verdana" size="1">©Copyright 2004 Digi.Cart™
ALL RIGHTS RESERVED</font></b></td>
</tr>
</table></center>
</body>
</html>
STEP_TWO.PHP
<?php
$domain = $_GET['domain'];
$tld = $_GET['tld'];
$method = $_POST['method'];
print"<html>
<head>
<meta http-equiv='Content-Language' content='en-gb'>
<meta name='GENERATOR' content='Microsoft FrontPage 5.0'>
<meta name='ProgId' content='FrontPage.Editor.Document'>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1252'>
<title>Domain Registration Please type your domain name below and select the
applicable TLD from the drop down menu</title>
</head>
<body bgcolor='#C8E3E9' topmargin='0'>
<center>
<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse; border-style: solid; border-width: 2; padding: 0' bordercolor='#111111' width='640' id='AutoNumber2' bgcolor='#FFFFFF'>
<tr>
<td width='100%'>
<img border='0' src='images/order_head.gif' width='640' height='85'></td>
</tr>
<tr>
<td width='100%'><font face='Verdana' size='2'><b>Domain Registration &
Transfer<br>
</b>The domain that you entered in Step 1 has been queried by our servers,
please ensure that it<br>
is available for registration, or if you already own the domain please
select "Transfer" from the drop down "Method" box.</font><center><form method='POST' action='step_three.php?domain=$domain&method=$method&tld=$tld'>
<center>
<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='72%' id='AutoNumber4'>
<tr>
<td width='71%' align='left' bgcolor='#C8E3E9'><font face='Verdana' size='2'><b>Domain</b></font></td>
<td width='15%' align='left' bgcolor='#C8E3E9'><font face='Verdana' size='2'><b>
TLD</b></font></td>
<td width='18%' align='left' bgcolor='#C8E3E9'><font face='Verdana' size='2'><b>Method</b></font></td>
</tr>
<tr>";
echo"<td width='71%' align='left'><font face='Verdana' size='2'>$domain</font>";
print"</td>";
echo"<td width='15%' align='left'><font face='Verdana' size='2'>$tld</font>";
print"</td>";
print"<td width='18%' align='left'><font face='Verdana'>";
echo"<select size='1' name='method'>
<option selected value='Register'>Register</option>
<option value='Transfer'>Transfer</option>
</select>";
print"</font></td>
</tr>
</table></center>
<p>
<input type='submit' value='Order Domain' name='B1'><br>
</p>
</form></td>
</tr>
<tr>
<td width='100%' style='border-top-style: solid; border-top-width: 1; padding: 0' bgcolor='#F2F3E9'>
<p align='center'><b><font face='Verdana' size='1'>©Copyright 2004 Digi.Cart™
ALL RIGHTS RESERVED</font></b></td>
</tr>
</table></center>
</body>
</html>";
?>
if someone could copy my code and place the working code into it that would be great. ill give you a 50% off coupon for eHostBox.com in return for your help.
P.S. the "TLD_SELECT.PHP" is just a dropdown menu that selects the TLD's from a MySQL Database.
i am currently making an orders script for my website ehostbox.com and i am having a few problems with my code,
i am trying to carry the following variables in this cycle...
step_one.php (forms only)
Domain:_____________
TLD: (drop down /com/net/org/info/biz/us)
----------CARRY TO---------------------
step_two.php
Displays domain, TLD and gives another drop down
method = Transfer/Register
(this script now needs to carry $domain and $tld from step_one.php to step_three.php but also include $method into step_three.php which will then show the 3 variables and have another to be added (i can work from step_two.php when its completed)
here is what i have come up with...
STEP_ONE.PHP
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Domain Registration Please type your domain name below and select the
applicable TLD from the drop down menu</title>
</head>
<body bgcolor="#C8E3E9" topmargin="0">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-style: solid; border-width: 2; padding: 0" bordercolor="#111111" width="640" id="AutoNumber2" bgcolor="#FFFFFF">
<tr>
<td width="100%">
<img border="0" src="images/order_head.gif" width="640" height="85"></td>
</tr>
<tr>
<td width="100%"><font face="Verdana" size="2"><b>Domain Registration<br>
</b>Please type your domain name below and select the applicable TLD from
the drop down menu.<br>
</font><center><form method="GET" action="step_two.php">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="57%" id="AutoNumber3">
<tr>
<td width="50%"><font face="Verdana" size="2">Domain:</font></td>
<td width="50%"><font face="Verdana" size="2">TLD:</font></td>
</tr>
<tr>
<td width="50%"><font face="Verdana">
<input type="text" name="domain" size="45"></font></td>
<td width="50%"><font face="Verdana">.<?php include("tld_select.php"); ?></font></td>
</tr>
</table>
</center>
<br>
<input type="submit" value="Check Domain" name="B1"><br>
</form></td>
</tr>
<tr>
<td width="100%" style="border-top-style: solid; border-top-width: 1; padding: 0" bgcolor="#F2F3E9">
<p align="center"><b><font face="Verdana" size="1">©Copyright 2004 Digi.Cart™
ALL RIGHTS RESERVED</font></b></td>
</tr>
</table></center>
</body>
</html>
STEP_TWO.PHP
<?php
$domain = $_GET['domain'];
$tld = $_GET['tld'];
$method = $_POST['method'];
print"<html>
<head>
<meta http-equiv='Content-Language' content='en-gb'>
<meta name='GENERATOR' content='Microsoft FrontPage 5.0'>
<meta name='ProgId' content='FrontPage.Editor.Document'>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1252'>
<title>Domain Registration Please type your domain name below and select the
applicable TLD from the drop down menu</title>
</head>
<body bgcolor='#C8E3E9' topmargin='0'>
<center>
<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse; border-style: solid; border-width: 2; padding: 0' bordercolor='#111111' width='640' id='AutoNumber2' bgcolor='#FFFFFF'>
<tr>
<td width='100%'>
<img border='0' src='images/order_head.gif' width='640' height='85'></td>
</tr>
<tr>
<td width='100%'><font face='Verdana' size='2'><b>Domain Registration &
Transfer<br>
</b>The domain that you entered in Step 1 has been queried by our servers,
please ensure that it<br>
is available for registration, or if you already own the domain please
select "Transfer" from the drop down "Method" box.</font><center><form method='POST' action='step_three.php?domain=$domain&method=$method&tld=$tld'>
<center>
<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='72%' id='AutoNumber4'>
<tr>
<td width='71%' align='left' bgcolor='#C8E3E9'><font face='Verdana' size='2'><b>Domain</b></font></td>
<td width='15%' align='left' bgcolor='#C8E3E9'><font face='Verdana' size='2'><b>
TLD</b></font></td>
<td width='18%' align='left' bgcolor='#C8E3E9'><font face='Verdana' size='2'><b>Method</b></font></td>
</tr>
<tr>";
echo"<td width='71%' align='left'><font face='Verdana' size='2'>$domain</font>";
print"</td>";
echo"<td width='15%' align='left'><font face='Verdana' size='2'>$tld</font>";
print"</td>";
print"<td width='18%' align='left'><font face='Verdana'>";
echo"<select size='1' name='method'>
<option selected value='Register'>Register</option>
<option value='Transfer'>Transfer</option>
</select>";
print"</font></td>
</tr>
</table></center>
<p>
<input type='submit' value='Order Domain' name='B1'><br>
</p>
</form></td>
</tr>
<tr>
<td width='100%' style='border-top-style: solid; border-top-width: 1; padding: 0' bgcolor='#F2F3E9'>
<p align='center'><b><font face='Verdana' size='1'>©Copyright 2004 Digi.Cart™
ALL RIGHTS RESERVED</font></b></td>
</tr>
</table></center>
</body>
</html>";
?>
if someone could copy my code and place the working code into it that would be great. ill give you a 50% off coupon for eHostBox.com in return for your help.
P.S. the "TLD_SELECT.PHP" is just a dropdown menu that selects the TLD's from a MySQL Database.
