Results 1 to 4 of 4
  1. #1

    Quick ASP question

    Hello,

    I am trying to addup 3 different numerical values into 1.
    Not working so well.
    Below is my code and the results shows as Plan_CostPlan_Setup_FeeDedicated_IP (all the numbers).
    Any ideas?

    Thanks

    <%
    Plan_Cost = arr_dropdown(1)
    Plan_Setup_Fee = arr_dropdown(3)
    Dedicated_IP = request.form("Dedicated_IP")
    x_amount = Plan_Cost+Plan_Setup_Fee+Dedicated_IP
    %>


    __________________
    Cheap Resale Warehouse : The Lowest Prices for Godaddy / Wild West Domains reseller accounts allowed on the web http://www.cheapresalewarehouse.com
    [/B]

  2. #2
    Join Date
    Jan 2004
    Posts
    406
    My guess is that Dedicated_IP is not a real number. If you are sure they are all valid numbers convert them like so...
    Code:
    <%
    Plan_Cost = CDbl(arr_dropdown(1))
    Plan_Setup_Fee = CDbl(arr_dropdown(3))
    Dedicated_IP = CDbl(request.form("Dedicated_IP"))
    x_amount = Plan_Cost+Plan_Setup_Fee+Dedicated_IP
    %>
    Affordable Business Web Site Hosting by Geo Redundant Hosting

  3. #3
    That did it.
    Thank so much!
    Last edited by beachcompcom; 05-25-2005 at 01:52 PM.
    Cheap Resale Warehouse : The Lowest Prices for Godaddy / Wild West Domains reseller accounts allowed on the web http://www.cheapresalewarehouse.com
    [/B]

  4. #4
    Join Date
    Jan 2004
    Posts
    406
    Anytime .
    Affordable Business Web Site Hosting by Geo Redundant Hosting

Posting Permissions

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