Grow your CSS skills. Land your dream job.

Basic info order form

  • # January 25, 2013 at 1:27 am

    I want to create an order form for my site. I only need a form to gather information with lists, radio buttons, text fields etc, and then be directed to a payment page which may only be Paypal at this stage.

    Should I just use something like WuFoo or Formstack?

    How can I learn to build it myself, do I need to learn PHP?

    boj
    # January 25, 2013 at 2:23 am

    You can do it with Javascript easily.
    First, make HTML input fields as follows:
    < input type="text" value="" placeholder="Example" id="test"/ >
    (remove the spaces in the input tag)
    Then use the following Javascript code to get the value and store it in a variable:
    var whatever = document.getElementById(‘test’).value;
    I’m rather new to Javascript, but I found this example for radio buttons.

    Edit: I made you a codepen of it. [Click here.]

    Edit 2: I’m not sure how PayPal handles checkouts so I can’t help you with that. Google around and see if you can find it.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".