Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2004
    Thanked 0 Times in 0 Posts

    Can any one help Please.....

    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

    this is my code:

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


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

    <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>"

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


  • #2
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Toronto, Ontario
    Thanked 122 Times in 122 Posts
    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.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts