Was wondering if I can have HTML run an SQL query?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PuddinPie
    New Member
    • Aug 2010
    • 3

    Was wondering if I can have HTML run an SQL query?

    Hello,

    I was wondering if it was possiable to have an HTML page and when a user fills it out and clicks submit it dumps all the information into a database" table.
    I assume it would be and SQL call but I'm not quite sure how to code it.

    Can anybody tell me or direct me to a page that can?

    Thank you.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    HTML stands for Hyper Text Markup Language. It is used to describe to browsers how text/images should be displayed.

    It does not have any logic built into it. In other words, it's not a "programmin g language" it's just a defined way to "mark up" text so that it displays the way you want it to display in a web browser.

    This means that HTML cannot be used to store things into a database. You need to submit the page to some code that is running on a web-server that will take what the user provided, validate this information (sanitize it), and then (if the data is valid/clean) store it in the database.

    You can use any server-side language that you want: PHP, ASP/ASP.NET, Java (JSP), Perl etc. etc.

    -Frinny

    Comment

    Working...