You are here: Re: Passing Variables from a form to an email « All PHP « IT news, forums, messages
Re: Passing Variables from a form to an email

Posted by robert on 05/18/06 01:43

| > <form method=post>
| > // your fields for the user to enter data here.
| > <input type=submit name=sendIt value=1 />
| > </form>
| >
| > in your php code, first look for:
| >
| > <?
| > $sendIt = $_POST['sendIt'] ? true : false;
| >
| > if ($sendIt)
| > {
| > // add validation here to make sure all data is
| > // present and not harmful (like email injections, etc.)
| > // now, send the mail
| > }
| > ?>
| >
| >
| Thank's Robert!

no problem...hope you get this working.

 

Navigation:

[Reply to this 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

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