Notice: Undefined variable: Name

the mail() function

Moderators: macek, egami, gesf

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

Re: Notice: Undefined variable: Name

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


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']);

Live Help on Skype:
(languages: english, portuguese)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest