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?
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')