1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Script to send info to a shopping cart- ASAP

Discussion in 'Programming' started by dueces, Oct 12, 2007.

  1. #1
    I need to create a form that does the following:

    allows the user two options

    #1 or #2 with radio buttons

    then allows the user to enter a number in a text box

    Once entered it will send the information via url to a shopping cart.

    The trick is the the number entered in the text box must do the following:

    subtract 20 from it and must be divided 5 and always rounded up. So if they enter 31 then the number sent must be 31-20=11 so the number sent must be 3

    The URL that it once this is done would be something like

    if they chose the first radio buttion Domain.com/cgi-bin/cart/?ID=1=X where X is the calculation done about which in this case would be 3 so once they click proceed they are sent to Domain.com/cgi-bin/cart/?ID=1=3
    or
    if they chose the first radio buttion Domain.com/cgi-bin/cart/?ID=2=X where X is the calculation done about which in this case would be 3 so once they click proceed they are sent to Domain.com/cgi-bin/cart/?ID=2=3

    Needs to be done asap so PM me price and time to completion
    Thanks
     
    dueces, Oct 12, 2007 IP
    papa_face likes this.
  2. papa_face

    papa_face Notable Member

    Messages:
    2,237
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    285
    As Seller:
    100% - 0
    As Buyer:
    0.0% - 0
    #2
    papa_face, Oct 12, 2007 IP