Reply to Re: Here is the code

Your name:

Reply:


Posted by Lammi on 09/10/07 09:08

> You will need a { after the if and a } after the mail().

of course he need, my fault. sorry.

> I would do some validation of the POST data before sending possibly
> malicious data to myself.

i would do such validation too - but john asked only for a way to
transfer the data :-)

> Also, he added a value for the action attribute of the form, though
> using $_SERVER['PHP_SELF'] is no longer considered a good idea due to
> XSS exploits.

i wouldn't realize the validation, emailing and form in one single
page, i would create a simple html-file containing the form and
nothing else, a small validation-class and a class to create the
email. it's never a good idea to mix html- and php-code i think.

[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

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