All pastes #466229 Raw Edit

Miscellany

public text v1 · immutable
#466229 ·published 2007-04-30 21:39 UTC
rendered paste body

	<script language=JavaScript>
	function CopyFields() {

		if(document.f1.cf.checked)
		{
			document.f1.ch1.value = document.f1.FirstName.value;
			document.f1.ch2.value = document.f1.LastName.value;
		}
	}

	function CheckThis() {

		if(document.f1.FirstName.value=="")
		{
			alert("Enter your first name, please!");
			document.f1.FirstName.focus();
			return false;
		}

		if(document.f1.LastName.value=="")
		{
			alert("Enter your last name, please!");
			document.f1.LastName.focus();
			return false;
		}

		if(document.f1.YourEmail.value=="")
		{
			alert("Enter your email address, please!\n\nWe will send you a receipt.");
			document.f1.YourEmail.focus();
			return false;
		}

	}

	</script>

<table align=center width=410 cellspacing=0 cellpadding=0>
<tr class=TableHead>
	<td width=330>Item Name</td>
	<td align=right width=100>Item Price</td>
	<td align=center width=50>Qty</td>
	<td align=right width=100>Item Total</td>
</tr>

<?=$content?>

<tr>
	<td colspan=4>
		<hr size=2 color="#B0B0B0" width=100%> 
	</td>
</tr>

<tr>
	<td colspan=3 align=right>TOTAL:</td>
	<td align=right>$ <?=$OrderTotal?></td>
</tr>

<tr>
	<td colspan=4>
		<hr size=2 color="#B0B0B0" width=100%> 
	</td>
</tr>

</table>

<td>

<form method=post action=payment.php name=f1 onsubmit="return CheckThis();" style="margin:0">
<table align=center width=410>
<tr>
	<td width="50%">
			<table width="100%" align=center>
			<tr class=TableHead>
				
            <td colspan=2>Delivery Information:</td>
			</tr>

			<tr>
				<td>First Name:</td>
				<td><input name=FirstName type=text size="15"></td>
			</tr>

			<tr>
				<td>Last Name:</td>
				<td><input name=LastName type=text size="15"></td>
			</tr>

			<tr>
				<td>Character Name:</td>
				<td><input name=Charname type=text size="15"></td>
			</tr>
<tr>
	<td colspan=2 align=center>
		Your e-mail: <input type=text name=YourEmail size=30>
	</td>
</tr>

<tr>
	<td colspan=2 align=center>
		<input type=hidden name="st_state" value="<?=$st[1]?>">
		<input type=hidden name=ftotal value="<?=$OrderTotal?>">
		<input type=submit name=s1 value="Continue" class=sub>
	</td>
</tr>
</table>

</form>