SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Forms copy???

  1. #1
    SitePoint Member wrinkled's Avatar
    Join Date
    Dec 2000
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Greetings....

    I have a html forms page, with an area where a customer enters both his billing & shipping address. I want to include a button to copy the billing info to shipping info.

    Can it be done with standard html forms controls or do I need something a bit more sophisticated.

    Example...

    <INPUT TYPE="text" NAME="Ecom_BillTo_Postal_CountryCode" SIZE="11" MAXLENGTH="11">

    I would like to copy the text box data to the following...

    <INPUT TYPE="text" NAME="Ecom_ShipTo_Postal_CountryCode" SIZE="11" MAXLENGTH="11">


    Thanks...
    David Wrinkle

  2. #2
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will need something more sophisticated

    Either server-side or client-side. You may want to repost your problem with the code in one of those forums if you have a preference, i.e. Javascript, ASP, PHP, Cold Fusion.

    Another option maybe to simply put a statement that says to only fill-out the shipping part if it is different then the billing part. When you process the form check to see if the shipping is empty.
    Westmich
    Smart Web Solutions for Smart Clients
    http://www.mindscapecreative.com

  3. #3
    Say WHA?! goober's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Posts
    1,921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If your server supports ASP, I'd be happy to put such a script together for you (using ASP, of course).
    Sean Killeen [LinkedIn] [Twitter] [Web]

    Warning: Reality.sys corrupted. Universe halted. Reboot? (Y/N)

  4. #4
    SitePoint Member wrinkled's Avatar
    Join Date
    Dec 2000
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Goober

    Thanks for the offer... I perused through the perl code and discovered its not required to process the order. I just placed a note on the page to leave it blank...

    Dave
    David Wrinkle


Bookmarks

Posting Permissions

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