Transfering form data to database
Moving information from an HTML form into a database is a two-step design process. First, we create an entry HTML form capable of passing information to a secondary file. Next, we create a Hypertext Preprocessor (PHP) file to accept the data and insert it into the database. HTML is only capable of instructing a browser on the method of presenting information. The transactions needed to store information in the database require Structured Query Language (SQL) commands placed inside a PHP script.
I added the “action” and “method” attributes to form as follows: <form action=”info.php” method=”post”> The “action” attribute tells the form to send the data to a script named “info.php,” and “method” describes the type of action to be performed once the information is passed to the script.
For now that’s it. See you soon.