Home | Help Forums | Web Design Tutorials | Free Swishmax Downloads | All Downloads

 

 

Company

Home

Nework Details

Tutorials

SWiSH 2

SWiSHMax

Flash MX

PHP & MySQL

HTML / JScript

Adobe Photoshop

Corel Draw

Gimp

Miscellaneous

Downloads

Templates

Plugins

Fonts

Wallpapers

Free Images

Scripts and Codes

Products

E-Books

SWiSH BB

SWiSH Templates

SWiSH-DB Newsletter
Subscribe to our newsletter : GO
  Partners / Affiliates

   Swish Templates
   SWiSH Climax
   GimpTalk
   Idea Designs
   Sposatoettore
   Try Acai Berry Diet
   Download Free Ringtones
   Swishzone

Manage your site with Flax Article Content Management System
[PHP+HTML]easy emailer
Category : PHP / MySQL | Level : Beginner | Language : English
Ask Question | Read Comments | Post tutorial | Previous | Next

Web www.swish-db.com

This is pretty simple. If the user presses the submit button, email the content. Else, if user hasn't pressed submit, show the form.

CODE


<?

if($submit) //If submit is pressed

{

mail("youremailaddress@whatever.com", "$subject", "$email", "$comments");

} else {?>

<form method='post' action='<? echo $PHP_SELF; ?>'>

E-Mail: <INPUT TYPE='TEXT' NAME='email' size=60>

Subject: <INPUT TYPE='TEXT' NAME='subject' size=60>

Comments: <TEXTAREA NAME='comments' ROWS=10 COLS=30></TEXTAREA>

<input type='submit' name='submit' value='submit'>

</form>



<? }?>






All rights reserved - swish-db.com