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

    html forms post request

    Hi there...
    i am in the process of putting a shopping cart on my web site. I am using mal's e comerce and one of his configurations is to set the continue shopping button from his site to return data back to my site in the form of information about qty in cart and subtotal in cart.
    he says
    "The Continue Shopping button can be set to include various fields that describe the current state of the customers cart. These include the total value of the cart and the number of items in it. The button itself may either be a POST request, using hidden form fields, or a GET method request with a query string. The special field sd, for managing state, is also included.

    An obvious application for this data is to maintain a small box on every page of your site which summarizes the customers cart"

    I'd like to use a form post request iwth hidden form fields....but don't know how...
    he says...

    "The URL for the Continue shopping button is taken from the field named return which you include in your Add to cart and Review links. It is possible to append a query string to the value although it must be properly URL encoded if it is itself part of a hyperlink and a query string. For example;

    return=www.yoursite.com%2Ftemplate.cfm%3Fdata%3D1111%26myval%3Daaa%2B2

    is a valid return value for a link back to:

    return=www.yoursite.com/template.cfm?data=1111&myval=aaa+2

    If the cart is passing back it's own values in the Continue shopping button any additional values that were appended to the return field will also be properly included as well. If the Continue shopping button is a Form POST then they will be put into hidden form fields. In this way virtually any data may be sent to the cart and then returned.


    sorry this took so long to explain...I'm jsut very confused. Am I even posting on the right site? Is this Dhtml? can anyone suggest a website that may explain in simple words?
    cheers
    kath

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not really sure exactly what you're after, but here's a POST form with hidden fields...

    <form action="whatever.cfm" method="post">
    <intput type="hidden" name="returnURL" value="shopping.cfm">
    </form>
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #3
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks beetle....what I needed was a piece of java script that could link and exchange details from my pages to my SSL.
    many thanks for trying to help tho'...I think I have what I need now.
    I think I also posted on the wrong forum...oops...sorry to you all.
    cheersfernow
    kath


  •  

    Posting Permissions

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