Reply to Re: new to php

Your name:

Reply:


Posted by Justin Koivisto on 06/15/05 18:11

Alvaro G Vicario wrote:

>><form action="email.php" method="POST">
>> $success = mail($to, $HTTP_POST_VARS["subject"],
>>$HTTP_POST_VARS["message"]);
>
> $HTTP_POST_VARS is deprecated, use $_POST instead.

And filter the subject & message input so there isn't anything nasty in
it before using the submitted info. (In this case, you may want to do
something like strip_tags() on it since it's not an HTML MIME message.)

Best to get in the practice of validating/filtering input and output
from the beginning - event if it isn't necessary. It will save you a lot
of headaches down the road...

--
Justin Koivisto - justin@koivi.com
http://koivi.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация