+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Is it possible for html to write to database?

              
   
   
  1. #1
    Banned
    Join Date
    Nov 2011
    Posts
    34

    Is it possible for html to write to database?

    Hi,

    I've seen people doing contact form that allow visitor to ask or made contact with site owner using a html form. My question is, how the information is capture at back end, after a visitor hit the enter key?

    Do you store those info entered into a database like sql or text file?

    Is it possible to store those info straight into a plain text file in a folder using only html.

    My level in web design is at doing static page in html only (very basic stuff).

  2. #2
    Retired Administrator
    Join Date
    Aug 2011
    Location
    New York / New Jersey
    Posts
    1,391
    My contact forms are emailed directly to me.
    Retired.

    Follow me on Twitter!

  3. #3
    Apprentice
    Join Date
    Dec 2011
    Posts
    9
    Filter property of the current request and does various replacements within the HTML before it is sent to the client.All the work is done in the Write method which is overriding Write in the base class Stream.

    The Write method is called multiple times for a single response - the HTML seems to be written to the output stream in chunks. My problem is that I don't have an efficient & reliable way of telling if the current chunk is the last chunk.

  4. #4
    Apprentice
    Join Date
    Dec 2011
    Posts
    10
    Just plain HTML can't write to a database, you'd need to have PHP & SQL queries run when they submit the message. HTML deals with front-end things, PHP does the backend stuff like MySQL.

  5. #5
    Apprentice
    Join Date
    Dec 2011
    Posts
    11
    HTML can't do anything besides dictate how your website looks. If you want information to be mailed to your email or written to a database or text file, you need to use a server side language like PHP.

  6. #6
    New Member
    Join Date
    Dec 2011
    Posts
    5
    May it appears to be HTML cause there's no refresh when users press Submit, it may occur when the form is sent using Ajax/jquery anyway, the js may call the php to send all values to mysql.

  7. #7
    Advanced DarkGizmo's Avatar
    Join Date
    Dec 2011
    Location
    New York....should probably be in the UK though ;)
    Posts
    176
    The HTML aspect of a contact form is for the input boxes and such, however, it'll also take some PHP coding to actually achieve the writing to a database. There's simple PHP code that can achieve such a thing within maybe 3 files, tops. There's guides all over the internet on how to do this properly. Have you checked out W3Schools? or perhaps HTMLGoodies?

  8. #8
    Apprentice Lil_Kins0's Avatar
    Join Date
    Feb 2012
    Location
    Nigeria
    Posts
    21
    HTML jst displays the contact form at the front end. You'll definitely nid PHP & MySql or any database u wish to store the informations. Or you can use a third-party contact form which sends everything entered to ur mail box.
    Creativity Speaks. Excellency isn't optional but mandatory. Follow Me On Twitter Add Me On Facebook

  9. #9
    Student Jashandeep's Avatar
    Join Date
    Jan 2012
    Posts
    85
    This all happen with the help of coding in programming language and connectivity with database.

  10. #10
    Student
    Join Date
    Feb 2012
    Posts
    39
    guys, this thread was started on " 11-10-2011, 03:44 AM " and yet you still reply to it? even tho, the OP has already got an answer...

+ Reply to Thread
Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50