Notice: Undefined variable: Name

the mail() function

Moderators: macek, egami, gesf

Post Reply
jorgepinho
New php-forum User
New php-forum User
Posts: 101
Joined: Tue Jul 05, 2011 5:41 am
Location: Portugal
Contact:

Re: Notice: Undefined variable: Name

Post by jorgepinho » Wed Jul 06, 2011 2:21 pm

Hi,

Code: Select all

$Name ="$Name";
This code is bad, the second $Name doesnt exist yet, you probably need:

Code: Select all

$Name = $_POST['Name'];
but this code is very insecure, so use:

Code: Select all

$Name = htmlspecialchars($_POST['Name']);

--
Jorge
Live Help on Skype: lets.talk.about.help
(languages: english, portuguese)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest