# Php....i think i got it

**URL:** https://forum.kirupa.com/t/php-i-think-i-got-it/30613
**Category:** Uncategorized
**Created:** [September 11, 2003, 5:56am UTC](https://forum.kirupa.com/t/php-i-think-i-got-it/30613 "2003-09-11T05:56:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Gauge](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@Gauge](https://forum.kirupa.com/u/Gauge)
#### Post date: [September 11, 2003, 5:56am UTC](https://forum.kirupa.com/t/php-i-think-i-got-it/30613/1 "2003-09-11T05:56:20Z")

</div>

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

<?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 

Email: $email 

Message: $message";

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

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

?>

```
