# Php cowboy...somebody help me?!

**URL:** <https://forum.kirupa.com/t/php-cowboy-somebody-help-me/227439>\
**Category:** Uncategorized\
**Created:** [May 30, 2007, 10:04am UTC](https://forum.kirupa.com/t/php-cowboy-somebody-help-me/227439 "2007-05-30T10:04:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andyryan](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@andyryan](https://forum.kirupa.com/u/andyryan)\
**Post date:** [May 30, 2007, 10:04am UTC](https://forum.kirupa.com/t/php-cowboy-somebody-help-me/227439/1 "2007-05-30T10:04:04Z")

</div>

hello,

i have a flash website that uses a php file to create an email and send it to a hotmail address. Ignoring the fact that it currently doesnt work at all!!(server problems)…i have been told that it is vulnerable to spammers. I have been told that i can fix this by inserting something into a string or something but i have zero php knowledge. I have had a look on google and found a few tutorials…but have trouble following what they are talking about.  
Could anyone help me?..its a fairly simple code, i just want it to be safe:

\<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “[http://www.w3.org/TR/html4/loose.dtd](http://www.w3.org/TR/html4/loose.dtd)”\>  
\<html\>  
\<head\>  
\<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1”\>  
\<title\>untitled\</title\>  
\</head\>

\<body\>  
\<?  
$name = $\_POST[“name”];  
$email = $\_POST[“email”];  
$number = $\_POST[“number”];  
$message = $\_POST[“message”];  
$to = “[peterryan23@hotmail.com](mailto:peterryan_23@hotmail.com)”;  
$subject = “website enquiry”;  
$msg = "$name has contacted you regarding your website. Their contact details are below:

email address- $email contact phone number- $number

";  
$msg .= "Message from $name:  
$message

";  
mail($to, $subject, $msg, "From: jordy fu website  
Reply-To:$email  
");  
?\>

\</body\>  
\</html\>
