I need a php code for my email form I’ve found some but I don’t know how to include it. Can you guys help me!! Please! Thank you!
here’s the website http://www.cetem.com.mx/tecnico.html
Not wishing to sound rude but I think you may be out of your depth here.
A couple of things
1, The form action needs to point to the PHP page that you want to send the email. At the moment it’s pointing to an ASP page.
2, The form method should be post really.
To give you some idea the input name fields will become the variable names in your PHP.
So in PHP the first name variable will be
Now you have your variables you just need to attach them to the email
$to = "firstname.lastname@example.org";
$subject = "Contact Form";
$body = "First name: " . $_POST;
mail($to, $subject, $body);
Replace your “p” tags with “label” tags aswell.
Also suggest when collecting the form data with PHP run it though htmlentities()for security.
$f_nombr = htmlentities($_POST);
Do you have any html email form tutorial that you can refer me to?
You must be logged in to reply to this topic.