I tried to attach a php form to my website but when I get the email of the results, it's empty. I know like zero about php and every time I try to read a book for it, it's all about big projects. I don't know programming. I also use godaddy which has php on their server.
Can you tell me what is wrong and also what my php code?
And also tell what the top of the <form> tag should say to link this all together? The name of my php file is webformmailer.php
<?php
$to='addressgoes@here.com';
$email='email';
$company='$company';
$products='$products';
$req='1';
$sent=mail($to,$email,$company,$products) ;
if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
?>