Web Analytics Made Easy -
StatCounter How do i make forms in php that communicate with MYSQL and it uploads to my website? - CodingForum

Announcement

Collapse
No announcement yet.

How do i make forms in php that communicate with MYSQL and it uploads to my website?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do i make forms in php that communicate with MYSQL and it uploads to my website?

    I want to make forms similar to https://www.postjobfree.com/post-job
    I want it so that it can communicate with MYSQL database and upload users inputted content?
    P

  • #2
    One word answer: Learn.

    You can't *just do it*.. well you can but it'll take you a while and be quite frustrating... so it's learn or pay someone to do it for you or find something premade that you can use - eg on hotscripts.com.

    Sorry its not the answer you're looking for but it's the truth as to how it works.
    Last edited by tangoforce; Sep 28, 2016, 12:31 PM.
    "Tango says double quotes with a single ( ' ) quote in the middle"
    '$Name says single quotes with a double ( " ) quote in the middle'
    "Tango says double quotes ( \" ) must escape a double quote"
    '$Name single quotes ( \' ) must escape a single quote'

    Comment


    • #3
      You start by creating the form in HTML.

      You then create PHP to process the form. The first thing the PHP needs to do is to validate all of what was entered and reject the form if any field is invalid. Once you know all the fields are valid then you can update the database.

      You can add validation to the form in the HTML to help prevent invalid values being submitted but don't rely on it as it can be bypassed.
      Stephen
      Learn Modern JavaScript - http://javascriptexample.net/
      Helping others to solve their computer problem at http://www.felgall.com/

      Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

      Comment

      Working...
      X