MINI SUPPORTERS:

 

 

 

 

 
PHP
Mail Form
        by j. edick. aka jubba

Well a lot of people keep asking about PHP mail forms. I don't have Flash on this computer, so I'm just going to have to make everyone stick with a regular HTML form. I will give the code and then explain that code.

Create a new PHP file and copy and paste the following code:

 
 

Now to break apart the PHP code:

$Subject "Test E-mail";
$toEmail "yourEmail@somewhere.com";

These are variables for your e-mails subject and your target recipient's e-mail. This is generally where you put your e-mail address if you are the one that is going to be receiving the e-mail

if(submit)
{
mail($fromEmail$Subject$nMessage."\nFrom: ".$fromName."<".$fromEmail.">");
}

This is an if statement that checks to see if the submit button has been pressed. If yes, then it executes the script inside the brackets.
The mail() function on the inside is what sends the e-mail to you.

The mail function works like this:
mail ( string to, string subject, string message).

For any help, please post on the forums.

Cheers,
Jubs

 

SUPPORTERS:

cloud storage
cloud storage
kirupa.com's fast and reliable hosting provided by Media Temple. Creative web apps. Make your own free flash banners and photo slideshows.
HTML5 CSS3 Mobile Gallery for iPhone, iPad Flash effects. Art without coding.
Flipping Book - page flip flash component. Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery
X-Platform Application Development for Flash Free Flash Components Download - XML Templates, Players and Galleries.
ScriptsConnect Web Developer Marketplace  
 

two computer monitors

US Direct

Learn how to advertise on kirupa.com  
 
SHARE:



MINI SUPPORTERS: