Jump to content

Help with 'Contact form'


k_ind

Recommended Posts

 

Hi K_ind, The approach I would use is below. There are plenty of ways you could expand it but its the basic outline. It shows a form where you can enter your name and it will email the specified email address with the name you entered in the form.

 


<?php
if ($_POST["Submit"]=="Submit") {

// Get form variables
$name=$_POST["frm_name"];

//  mail
mail("[email protected]", "Email Subject", "The name entered in the form was $name", $headers)) {


}
?>
<form action="scriptname.php">
<input type="text" name="frm_name">
<input tye="Submit" name="Submit" value="Submit">
</form>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.