Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form in flash mx, with combo box and check box

Status
Not open for further replies.

paola13

Technical User
Oct 22, 2001
36
IT
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 = &quot;you@yourwebsite.com&quot;;

// indirizzo del vostro dominio qui!
$siteaddress =&quot;
// nome del Vs sito Es. PcSoftware.com
$sitename = &quot;yourwebsite&quot;;

// Acquisisce data ed ora dal vostro server (non modificate)
$date = date(&quot;m/d/Y H:i:s&quot;);

// Acqisisce IP di chi spedisce dal Vs server (non modificate)
if ($REMOTE_ADDR == &quot;&quot;) $ip = &quot;no ip&quot;;
else $ip = getHostByAddr($REMOTE_ADDR);



IF ($action != &quot;&quot;)
{
mail(&quot;$adminaddress&quot;,&quot;Enquiry from &quot;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&quot;,&quot;FROM:$adminaddress&quot;);




$sendresult = &quot;Done!&quot;;
$send_answer = &quot;answer=&quot;;
$send_answer .= rawurlencode($sendresult);

// echo &quot;$send_answer&quot;;

}

?>
 
Hello!


Regards,
Dragos.
dragos.jpg

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top