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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jan 2011
    Posts
    136
    Thanks
    101
    Thanked 0 Times in 0 Posts

    How to input same information in two similar tables

    The first table is the billing address, and the second table is the shipping address. How can I write a code so that if the two addresses are the same, users only need to check a box to load all the information from one table into the other table?

  • #2
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,877
    Thanks
    2
    Thanked 164 Times in 159 Posts
    Have them check a "same" field.

  • #3
    Regular Coder
    Join Date
    Jan 2011
    Posts
    136
    Thanks
    101
    Thanked 0 Times in 0 Posts
    Thank you for the reply.

    But what I want to know is that after they check a "same" field, how should the code work?

    Quote Originally Posted by FishMonger View Post
    Have them check a "same" field.

  • #4
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,877
    Thanks
    2
    Thanked 164 Times in 159 Posts
    Are you referring to the client side or the server side?

    If you're referring to the client side and want the form fields filled in automatically, then you need to use javascript. I almost never use javascript so I can't help you in that area.

    If you're referring to the server side, then in the Perl script you could copy the params based on a conditional test on the value of the "same" field.

  • Users who have thanked FishMonger for this post:

    camaross (05-03-2011)

  • #5
    Regular Coder
    Join Date
    Jan 2011
    Posts
    136
    Thanks
    101
    Thanked 0 Times in 0 Posts
    Client side.

    Thank you very much.

    Quote Originally Posted by FishMonger View Post
    Are you referring to the client side or the server side?

    If you're referring to the client side and want the form fields filled in automatically, then you need to use javascript. I almost never use javascript so I can't help you in that area.

    If you're referring to the server side, then in the Perl script you could copy the params based on a conditional test on the value of the "same" field.


  •  

    Posting Permissions

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