PDA

View Full Version : php....i think i got it....



Gauge
September 11th, 2003, 01:56 AM
i wrote a php form to send message to my email from flash but i dunno how to check it or if it is right?

any ideas?



<?php

// get inputs
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$message = $_POST['message'];

// recievers email
$to = "osirus_tfl@hotmail.com";

// set email message to me
$msg = "Name: $name \n\nEmail: $email \n\nMessage: $message";

// senders details
$sender = "From: $name <$email>";

// send the email
mail("osirus_tfl@hotmail.com", $subject, $msg, $sender);

?>

Jack_Knife
September 11th, 2003, 05:23 AM
Upload it to a PHP-enabled webserver, or download easyPHP if you don't have one.

Not2Sure
September 12th, 2003, 08:12 AM
try lycos.

it is free and has PHP anf FTP surport

www.lycos.com :thumb:

blah-de-blah
September 12th, 2003, 10:44 AM
Shouldn't it be:



$msg = "Name:". $name. "\n\nEmail: ".$email." \n\nMessage:". $message;


I hardly know anythin about php too but i think this should be the right way...

and same with the $sender variable i think its wrong. But i am new to php too so............

Gauge
September 14th, 2003, 08:31 PM
ohh yeah...oopps...thanks for pointing that out..