# Form help Please

**URL:** <https://forum.kirupa.com/t/form-help-please/252045>\
**Category:** flash\
**Created:** [February 15, 2008, 8:05am UTC](https://forum.kirupa.com/t/form-help-please/252045 "2008-02-15T08:05:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteelCity](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@SteelCity](https://forum.kirupa.com/u/SteelCity)\
**Post date:** [February 15, 2008, 8:05am UTC](https://forum.kirupa.com/t/form-help-please/252045/1 "2008-02-15T08:05:56Z")

</div>

![](http://forum.kirupa.com/uploads/kirupa/4311/ab6fb8568d65fb7b.gif) **Simple Form is driving me bonkers**  
I Just have 3 input fields. Right now I can’t even get these field to post to my e-mail address. But eventually I would like to have the input fields clear itself. And prior to typing in the email address, i would like that field to to have the words “e-mail address here”.

here is where I @

This is my sendmail.php

[COLOR=darkred]\<?php

$destination="blug@charter.net";

$nowDay=date(“d.m.Y”);  
$nowTime=date(“H:i:s”);

$email=$\_POST[‘theEmail’];  
$days=$\_POST[‘theDays’];  
$scores=$\_POST[‘theScores’];

## $FormContent="Message date = $nowDay at $nowTime

## from: $email Play on: $days Score: $scores

";

if(mail($destination,"$subject[NoZeroStroke]",$FormContent,“From:$email”))  
{  
echo ‘response=Thanks for your e-mail’;  
} else {  
echo ‘response=failed’;  
}  
?\>[/COLOR]

Here is my actionscript

[COLOR=darkred]  
submit\_btn.addEventListener(MouseEvent.CLICK, sendForm);  
var loader:URLLoader = new URLLoader();  
var req:URLRequest = new URLRequest(“sendmail.php”);

var variables:URLVariables;  
variables.dataFormat = URLLoaderDataFormat.VARIABLES;

req.method = URLRequestMethod.POST;  
email\_txt.text=“E-mail Address here”

function sendForm(event:MouseEvent):void {  
variables.theDays = days\_txt;  
variables.theScores = scores\_txt;  
variables.theEmail = email\_txt;  
req.data = variables;  
loader.load(req);  
days\_txt.text="";  
scores\_txt.text="";  
email\_txt.text="";  
}[/COLOR]

After noting most of the search examples this what I’ve lastried to no avail. Please Help.
