Adblock breaks this site

JavaScript/HTML Forms?

Discussion in 'Web Programming' started by SexayMistahBee, Dec 3, 2012.

  1. SexayMistahBee

    SexayMistahBee Sexiest Bee On Earth
    $50 USD Donor New

    Joined:
    Feb 28, 2006
    Posts:
    2,410
    Referrals:
    0
    Sythe Gold:
    27
    Discord Username:
    SexayMistahBee
    JavaScript/HTML Forms?

    in this HTML tutorial,
    http://w3schools.com/html/html_forms.asp

    it says that the form element is
    <form>
    blahblah
    </form>

    but in this JavaScript one, it doesn't use any tags.

    What is the difference? :/
     
  2. Terrankiller

    Terrankiller Ex-Administrator
    Retired Administrator Visual Basic Programmers

    Joined:
    May 7, 2005
    Posts:
    1,286
    Referrals:
    1
    Sythe Gold:
    1
    JavaScript/HTML Forms?

    One uses tags one doesn't use tags.
     
  3. sm321

    sm321 Grand Master

    Joined:
    Nov 2, 2011
    Posts:
    2,514
    Referrals:
    1
    Sythe Gold:
    0
    JavaScript/HTML Forms?

    They are different languages. HTML uses tags such as <i> and </i>, <b> and </b> etc. JavaScript is used with parts of your HTML. For example, JavaScript could be used to check if the user had put text into the name field and not numbers.
     
  4. Noam

    Noam Apostle of the Setting Sun
    $50 USD Donor New Competition Winner

    Joined:
    Jul 27, 2011
    Posts:
    2,993
    Referrals:
    1
    Sythe Gold:
    0
    Discord Unique ID:
    688859853535313930
    Discord Username:
    sarbaz#8969
    Two Factor Authentication User Gohan has AIDS
    JavaScript/HTML Forms?

    Javascript can be used to dynamically create forms with GetInnerHTML()
    That's pretty much it. Forms are nearly useless without any server-side application anyways, so you have to use PHP, ASP, or some other server side system to get anything to work.
     
  5. Draucia

    Draucia Guru

    Joined:
    Jan 17, 2009
    Posts:
    1,376
    Referrals:
    1
    Sythe Gold:
    0
    JavaScript/HTML Forms?

    If you need some simple form, I would recommend you use PHP. W3schools has a nice tutorial on it.

    http://www.w3schools.com/php/php_forms.asp

    And what do you want to do with the data? If you want to insert it into a table, you can use mysql_query() to insert the data into a table of your choice. There's lots of tutorials on that on google, but if you need help creating a db, table, or inserting data tell me and I can guide you through it.
     
< PHP MYSQL job oriented training|Engineering final projects | HTML5 Canvas game - forksteroids >


 
 
Adblock breaks this site