I must finish a form made in flash mx.
I have 6 txt field, 2 check boxes and 1 combo box.
PHP file send the date to a specific e mail address
My question is.... How can I take the selected item in a combo and the checked value in a check box? Do I need a function in flash, or it is just enought name combo and check box with the simple istance names?
I put my code here... please help me....
The submit button:
on (press) {
loadVariables("php/simple_emailform.php", "", "GET"
}
PHP file:
<?
// il vostro indirizzo e mail qui! se piu' di uno separate con una virgola
$adminaddress = "you@yourwebsite.com";
// indirizzo del vostro dominio qui!
$siteaddress ="
// nome del Vs sito Es. PcSoftware.com
$sitename = "yourwebsite";
// Acquisisce data ed ora dal vostro server (non modificate)
$date = date("m/d/Y H:i:s"
// Acqisisce IP di chi spedisce dal Vs server (non modificate)
if ($REMOTE_ADDR == "" $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
IF ($action != ""
{
mail("$adminaddress","Enquiry from "ENQUIRY FROM WEBSITE EMAIL FORM
Name: $inputName
Company: $inputCompany
Position: $inputPosition
Email: $inputEmail
Telephone: $inputTel
Requesting 24 hour callback? : $inputCallback
Message: $inputMessage
------------------------------
Logged Info :
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress"
$sendresult = "Done!";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
// echo "$send_answer";
}
?>
I have 6 txt field, 2 check boxes and 1 combo box.
PHP file send the date to a specific e mail address
My question is.... How can I take the selected item in a combo and the checked value in a check box? Do I need a function in flash, or it is just enought name combo and check box with the simple istance names?
I put my code here... please help me....
The submit button:
on (press) {
loadVariables("php/simple_emailform.php", "", "GET"
}
PHP file:
<?
// il vostro indirizzo e mail qui! se piu' di uno separate con una virgola
$adminaddress = "you@yourwebsite.com";
// indirizzo del vostro dominio qui!
$siteaddress ="
// nome del Vs sito Es. PcSoftware.com
$sitename = "yourwebsite";
// Acquisisce data ed ora dal vostro server (non modificate)
$date = date("m/d/Y H:i:s"
// Acqisisce IP di chi spedisce dal Vs server (non modificate)
if ($REMOTE_ADDR == "" $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
IF ($action != ""
{
mail("$adminaddress","Enquiry from "ENQUIRY FROM WEBSITE EMAIL FORM
Name: $inputName
Company: $inputCompany
Position: $inputPosition
Email: $inputEmail
Telephone: $inputTel
Requesting 24 hour callback? : $inputCallback
Message: $inputMessage
------------------------------
Logged Info :
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress"
$sendresult = "Done!";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
// echo "$send_answer";
}
?>