Pass PHP Code HTML Pro

0

I've done exactly the PHP code for this video click here to have my form send data to my email.

However, now that I have the whole code, I do not know how to pass the same to my html.

Why type, the boy example he made the form, he put all that structural body of the HTML, in a PHP file.

And the form on my site, is along with the entire site in the HTML file. How would I make the form work?

<?php
$msg=0;
@$msg= $_REQUEST['msg'];
?> 

This code above, I will have to put above the initial html code, and if the file is html, it will not work.

<!DOCTYPE html>
<html>
<head> etc...

And it has another external php file tbm.

    
asked by anonymous 17.11.2017 / 15:11

1 answer

3

So Lukas, it is not possible to include a snippet of PHP code in an HTML file, this should be .php, you should change the extension of your .html file to .php and insert the code.

Are you running this project on your machine locally or are you on an online server?

    
17.11.2017 / 15:22