@jedaisoulApr 15.2015 — #"Embed the php script in the input form"? I'm sure the English is lacking here.[/QUOTE] Well, I should have said "embed the PHP script in the web page containing the input form". Does that make more sense?
Is this code supposed to help the OP in understanding how to grab incoming form data and how to PROPERLY post it to a db using CURRENT technology? Cause if it is, it's not a very nice example of how things s/b done.
If I were the OP I'd be wondering:
1 - how do my form fields get into that query in a safe sanitized way?
2 - Is MySQL the best interface to use to connect to my db?
3 - How do I know that any of my code actually works? Shouldn't I be doing some error checking?
4 - What do I do when the update is complete? How will my user know?
Your example has errors in it and it does not assist with the OP's needs.
@vickytanghm
As you have been advised, your form will need to "call" a PHP script as some people put it or the alternative is to make one PHP page that will display the form and also process the form.
Easiest is to have your form send it data to the processing script.
1. You will need to first off get your script working
2. You will then need to ensure it is secure
3. You will need to implement measures to ensure that your processor page is not being sent data outside of your form like a spam bot.
4. You will then need to clean any input and make it ready for insertion in to your chosen database.
At the moment, you only need to worry about point 1.