Quantcast
Channel: Active questions tagged feedback+php - Stack Overflow
Viewing all articles
Browse latest Browse all 34

Email Contact form [closed]

$
0
0

Ok, i have made a contact form. i need a php script to email me the information. Here is what i have so far:

<?php
$emailSubject = 'Contact Form';
$webMaster = 'email-here';

$firstName = $_POST ['first_name'];
$lastName = $_POST['last_name'];
$emailAddress = $_POST ['email'];
$uploadFile = $_POST ['datafile'];
$questions = $_POST ['comments'];

/* If e-mail is not valid show error message */
if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
{
show_error("E-mail address not valid");
}

Ok, i have tried and tried to make one that will submit a uploaded file. i can not find anything. It is either to hard, or will not work. please help me.

Also, where it says:

['first_name'];

is that where i put my input name?

Also, i have a thank you page. It is called: thank_you.html i need that to show up after the form is sent!


Viewing all articles
Browse latest Browse all 34

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>