...

View Full Version : Can any one help Please.....



mayab
07-14-2004, 04:57 PM
I am finishing my first asp e-commerce and I can not ligne up the out put fron the table to make every thing ligned up with the CC details input to make it look good. Can any one help?
Is is possible to change the color of the submit button as well.
Many thanks...MAYA :o

this is my code:
==============================================

<%@ LANGUAGE = "VBSCRIPT" %>
<% OPTION EXPLICIT %>
<% Response.Buffer = True %>
<!-- #include file = "dbconx.asp" -->
<html>
<title>Payment Form</title>
<head>
<link rel="stylesheet" type="text/css" href="mystyles.css">
</head>

<body>

<div align="center">
<table width="600">
<tr>
<td width="600" valign="top">
<br>

<p>This page let's you confirm or change the shipping address to be used for this order, as well as provide your credit card information.</p>

<%
Dim Total, myRS, mySQL
Total = Request.QueryString("Total")
Set myRS = Server.CreateObject("ADODB.Recordset")
mySQL = "SELECT Carts.CartID, Customers.FName, Customers.LName, Customers.Address, Customers.City, Customers.Region, Customers.PostCode, Customers.Country FROM Customers INNER JOIN Carts ON Customers.CustID = Carts.CustID WHERE Carts.CartID = " & CartID
myRS.Open mySQL, myConn

If myRS.EOF Then
Response.Write "<p>You are a new customer! Please <a href='custform.asp?CartID=" & CartID & "'>sign-up</a> before checking out.</p>"
Else

Response.Write "<form action='payproc.asp?CartID=" & CartID & "' method='post'><br></p>"

Response.Write "<p><table><tr><td>First: <input type='text' name='OrdFName' value='" & myRS("FName") & "'><br></td>"
Response.Write "<table><tr><td>Last: <input type='text' name='OrdLName' value='" & myRS("LName") & "'><br></td></tr></table>"
Response.Write "<table><tr><td>Address: <input type='text' name='OrdAddress' value='" & myRS("Address") & "'><br></b></td></tr></table>"
Response.Write "City/Town: <input type='text' name='OrdCity' value='" & myRS("City") & "'><br>"
Response.Write "Region: <input type='text' name='OrdRegion' value='" & myRS("Region") & "'><br>"
Response.Write "Postal Code: <input type='text' name='OrdPostCode' value='" & myRS("PostCode") & "'><br>"
Response.Write "Country: <input type='text' name='OrdCountry' value='" & myRS("Country") & "'></p>"

Response.Write "<p><b>Your order total is: " & FormatNumber(Total,2) & "</b></p><p>This is the amount that will be debited to your credit card.</p>"
%>
<p>Please provide your Credit Card information below:</p>

<table width="75%" border="0">
<tr>
<td colspan="2"><strong>Credit Card details:</strong></td>
<td width="61%">&nbsp;</td>
</tr>
<tr>
<td width="5%"><input type="radio" name="CCType" value="Visa"></td>
<td width="34%"> Visa</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><input type="radio" name="CCType" value="MC"></td>
<td> MasterCard</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><input type="radio" name="CCType" value="AMEX"></td>
<td> American Express</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>Credit Card Number:</td>
<td><input type="text" size="30" name="CCNumber"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>Name on Credit Card:</td>
<td><input type="text" size="30" name="CCName"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>Expiration Date:</td>
<td><input type="text" size="15" name="CCExp"></td>
</tr>
</table>
<p><br>
<br>
Any additional comments?<br>
<textarea name="Comments" cols="40" rows="5"></textarea>
<br>
<br>
This order will be complete After clicking the button below.<br>
<input type="submit" value="Submit Information">
</p>
</form>
<% End If %>
</td>
</tr>
</table>
</div>

</body>
</html>
:o

angst
07-14-2004, 05:51 PM
this is just html stuff,

can u format an input button using code like this:


<input type="submit" value="Submit" name="B1" style="background-color: #FF0000; font-family: Verdana; font-size: 8pt; border: 1 solid #000000">


as for the rest, the best thing to do might be to just run the script, use view source, and copy the source into your fave html editor and from there you should be able to view the formating problems and then fix them in your .asp page.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum