in reply to Coding and Design Advice

Hi,
How about having the form have fields for all of the information and depending on what they select as the payment method, the fields that are not required are grayed out.
Then upon submission which is the same for every type is routes to paypal as needed etc.

Regards Paul.

Replies are listed 'Best First'.
Re^2: Coding and Design Advice
by Anonymous Monk on Mar 31, 2005 at 17:27 UTC
    Hi,

    Thank you for your reply. I started to follow your idea. I got lost when you mentioned graying out fields not required. I'm not sure what you mean by that?
      Hi,
      I meant that depending on the selection, you grey out the some of the sections/options where you could put information. Here is an example of Greying out I found here
      <html> <head> <title>Disable Drop Down</title> <script type = "text/javascript"> function disableDrop(){ if(frmMain.sltMain.options[0].selected){ frmMain.sltSecondary.disabled = true; } else{ frmMain.sltSecondary.disabled = false; } } </script> </head> <body> <form ID = "frmMain"> <select ID = "sltMain" onchange = "disableDrop();"> <option value = "onetime">One-Time</option> <option value = "recurring" selected>Recurring</option> </select> <select ID = "sltSecondary"> <option value = "1">One</option> <option value = "2">Two</option> <option value = "3">Three</option> <option value = "4">Four</option> </select> </form> </body> </html>

      Yes I know it uses Javascript, but just to show you.
      So applying this sort of thing to your method you might have.

      Name:__________________________________
      Address:_______________________________
      Method of Payment:
      (*) Tape Cheque to a pigeon
      ( ) Pay by C/C
      ( ) Use Paypal
      ---------------------------------
      Pigeon Payment Section
      Name of pigeon provider:________________
      Number of pigeon's:_____________________
      ---------------------------------
      Pay by C/C Section
      C/C Number: ____________________________
      exp date: ______________________________
      funky 4 digit number: __________________
      ---------------------------------
      Pay pal section
      Paypal number____________________________
      paypal pass:_____________________________
      ---------------------------------
      So when you select pigeon payment option from the radio box, you can't even fill in the details of the other sections and the same for the other sections and you can obviously keep common information for each like name or username or something at the top as they are common to all. Hope this is useful...

      Regards Paul