0

How to get a php command to work with a html form

I have 2 files, 1 for the form input and 1 that makes a connection between the PHP and SQL. how do i get the information of the HTML file to the PHP so it sends it to the SQL?

29th Apr 2018, 3:34 PM
Stef Spooren
Stef Spooren - avatar
1 Antwort
+ 1
The form file has to point to the file that connects with SQL. It has to have something like this... <Form action='file_that_connects_with_SQL.php'> Action code is found after this, such as.. <input name='firstname'>What is your name?</input>Then the other file will receive the entered text to put in a variable which will in turn be entered into the SQL. That will look like this: $variable=$_GET('firstname')
29th Apr 2018, 4:28 PM
Lope Geronilla
Lope Geronilla - avatar