Welcome on our site of services and hosting. |
Article About -
In this simple article and source sample, it will be show how to create a form to send e-mails in Php server side language, this example is valid both for Php on Linux and both on Windows. The first task it to create the module, and for this job we could find more solutions but we will implement the script using 2 different pages, I suggest the use of two different pages to divide contents and scripting. Files where we will add the code: -- modulo.php -- < form method="Post" action="scripts/mail.php" > Mittente: < input type="text" name="FROM" >< br > Titolo: < input type="text" name="SUBJECT" >< br > Corpo del messaggio: < br > < textarea cols="64" rows="4" name="BODY" >< /textarea >< br > < br > < input type="submit" value="send now" > < /form > ---------------- -- scripts/mail.php -- < ? $from=$HTTP_POST_VARS['FROM']; $destination="webmaster@website.ext"; $subject=$HTTP_POST_VARS['SUBJECT']; $message=$HTTP_POST_VARS['BODY']; mail($destination,$subject,$message,"From:".$from); header("location: ../modulo.php"); ? > ---------------------- Important Site links: http://www.giovanniceglia.com |
Links: Personal Sites and Projects: Programmers' Community, Game Developers' Community, Programming and Videogames, Programming Portal, Graphic Portal, Job Search Services, Search Engine for Accommodations, Hosting Services in Italian, Identity Verification Services, Real Estate and Travel Listings, Real Estate and Travel Listings in Italian, Real Estate and Travel Listings in German, Malmignatta Search Engine in Italian, All The Giovanni Ceglia's Network, Malmignatta Search Engine, Search Engine for Health Info, Hardware and Software for Sale. |
Giovanni Ceglia offers services for Internet, developing and managing for sites and portals, hosting, software for web services and Internet.
All the material on this site is © CopyRight Giovanni Ceglia dal 2005, and all rights are reserved, the copy and redistribution of the material on this site are forbidden without authorization. All trademarks reported in this site belongs to the respective owners. Giovanni Ceglia - Computer services, Internet and Hosting, Partita IVA N. IT03972320653, Based in Via Trento N.74 84016, Pagani (Salerno) Italy, E-Mail: giovanniceglia@xungame.com, Mobile Telephone for contacts: 339-4403189. Registered to the "Camera di Commercio" of Salerno.








