Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Flash Mailform Trouble



Hi,

I have a simple form within my flash movie (which is not working) I have this code on my button:

on (release) {
subject = "Contact from Mars";
recipient = "me@mysite.com";
loadVariablesNum ("http://www.mysite.com/cgi-bin/simpsend.pl", 0, "GET");
}

I dont know cgi or perl and I'm just using my hosts supplied formmail script, can this be done, do I need to make my own script?

If it is a case of modifying my own script does anyone know of any good resources?

Thanks muchos yet again!



FlashKit > Flash Help > Flash ActionScript
Posted on: 04-03-2002, 10:05 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Mailform In Flash. Cgi?
hi,
ive been lookin for how to send an email to me when someone fils in this form in my swf and hits send.

ive seen that there are 2 choises.

cgi or php
i dont think my webspace supports php, so i want to go for the cgi

i have to create a cgi script at my server isnt it?
but where do i get this script?
and where do i put it on the server?
and wich action do i use for communication with the cgi file?

i dont quite understand this cgi thing
so any help or explanation would be greatly appreciated.

grtz&thx

Mailform In Flash
Hi,

is there a possibility to send emails via flash. I searched but couldn't find anything.

Plz help me

cya
iamflashing

This Mailform In Flash?
Hi there

Is there any way to create this mailform in flash?

<FORM METHOD='GET' ACTION='http://cgi.web10.dk/cgi-bin/formmail/FormMail.pl'>
<input type=hidden name='print_config' value='navn,email'>
<input type=hidden name='recipient' value='XXX@XXX.se'>
<input type=hidden name='subject' value='Fra formularen'>
<input type=hidden name='required' value='navn,email,besked'>
<input type=hidden name='env_report' value='REMOTE_HOST,REMOTE_ADDR, REMOTE_USER,REMOTE_IDENT,HTTP_USER_AGENT'>
<input type=hidden name='sort' value='order:navn,postnr,by,email,emne,besked'>
<input type=hidden name='redirect'
value='http://XXXXX.web02.talkactive.net/formularsendt.htm'>
<table cellspacing='2' cellpadding='0'>
<tr>
<td width='52'>Navn:</td>
<td colspan='2'><input type='text' name='navn' size='54'></td>
</tr>
<tr>
<td width='52'>Postnr.:</td>
<td><input type='text' name='postnr' size='5'></td>
<td align='right'>By: <input type='text' name='by' size='35'></td>
</tr>
<tr>
<td width='52'>Email:</td>
<td colspan='2'><input type='text' name='email' size='54'></td>
</tr>
<tr>
<td width='52'>Emne:</td>
<td colspan='2'><input type='text' name='emne' size='54'></td>
</tr>
<tr>
<td width='52' valign='top'>Besked:</td>
<td colspan='2'><textarea name='besked' cols='40' rows='4'></textarea>
</tr>
<tr>
<td width='52'></td>
<td><INPUT TYPE='submit' VALUE=' Send '></td>
</tr>
</FORM>

Cheers

Using A PHP Mailform In Flash 8
hi there, i followed this tutorial:

http://www.kirupa.com/developer/acti..._php_email.htm

and it all works fine in flash 6 but what would do i need to change in the code for it to work in flash 8?

PHP Flash Mailform ?
Hi Guys!
I'm very confuse about this , i need Flash mailform (PHP)
something like this...
Sample
Do me a favor and help me!
by the way, this is a FLA file.
Download FLA
Thank you,

What Do I Need And How Do I Make Flash Mailform?
Hi,

I wanted to make a mail form for flash, only thing is im using version 4, i dislike the new interface so hey...

Thanks

[F8] Flash Mailform With Components? >>
hi,
im going to crazy if someone doesn't helps me

i have a mail form with only inputtext areas and no problem with sending datas to php mailform.

but i would like to create another mailform using flash components which includes : Combobox,DateField,TextInput,TextArea etc. etc...

and i want to send this components datas to php mailform...

this components doesn't have "var" area so i guess we'll connect them to php with their instance names.


i checked everywhere to do this but i couldn't find anything useful..
if someone can help me about this i'll be grateful.

and if someone knows the solution, please use this reference data to explain.that will be better.



On Flash There are 3 Components :

1 x Combobox : Instance Name : cb1
1 x DateField : Instance Name : dt1
1 x TextArea : Instance Name : tx1

php file : mailform.php


and if possible php code too

Flash Php Mailform Problems
Hi there,
is there anyone who could give me a hand with this mailform: I tried real hard but I can't get it working. I've compared with lots of tutorials and everything seems to be in order:

here is my php script I use:


PHP Code:



<?php
$sendTo = "pietervanstee@skynet.be";
$subject = "subject";

$headers = "From: " . $_GET["name"];
$headers .= "<" . $_GET["email"] .">
";
$headers .= "Reply-To: " . $_GET["email"];
$site = $_GET["site"];
$message = $_GET["message"];
mail($sendTo, $subject, $message, $headers);
?>




And I call the php file with this code:

Code:

on (release) {
dataBottom.loadVariables("email.php", "POST");
}
dataBottom is the name of a MovieClip where all the text fields are.

Let me know if you need the .fla

Flash Php Mailform Problems
Hi there,
is there anyone who could give me a hand with this mailform: I tried real hard but I can't get it working. I've compared with lots of tutorials and everything seems to be in order:

here is my php script I use:


PHP Code:



<?php
$sendTo = "pietervanstee@skynet.be";
$subject = "subject";

$headers = "From: " . $_GET["name"];
$headers .= "<" . $_GET["email"] .">
";
$headers .= "Reply-To: " . $_GET["email"];
$site = $_GET["site"];
$message = $_GET["message"];
mail($sendTo, $subject, $message, $headers);
?>




And I call the php file with this code:

Code:

on (release) {
dataBottom.loadVariables("email.php", "POST");
}
dataBottom is the name of a MovieClip where all the text fields are.

Let me know if you need the .fla

Flash Mailform To Lsmail.asp
Hello,

I've made a site in flash but there has to be an mailform in it. The ISP gave me the code for a HTML form but I can't figure it out to 'translate' it to Flash. I'm new to actionscript (and ASP) but I do learn fast ;).
I've made a testform in HTML and it looks like this:

CODE...
<body>
<form action="http://www.lodestar.be/site/lsmail.asp" method="post" name="mailform" class="text" onSubmit="return true">
<input type="hidden" name="redirect" value="./TNXtestform.htm">
<input type="hidden" name="recipient" value="xoatl@skynet.be">
<input type="hidden" name="subject" value="test mailform">

  <table width="400" border="0" cellspacing="0" cellpadding="0">
    <tr>

      <td width="100">Name:      </td>
      <td><input name="1_name" type="text" id="1_name" size="50"></td>
    </tr>
    <tr>
      <td width="100">E-Mail:        </td>
      <td><input name="2_email" type="text" id="2_email" size="50"></td>
    </tr>
    <tr>

      <td width="100">Message:      </td>
      <td><textarea name="3_message" cols="50" id="3_message"></textarea></td>
    </tr>
    <tr>
      <td width="100"><input type="submit" name="Submit" value="Submit"></td>
      <td><input name="reset" type="reset" id="reset" value="Reset"></td>
    </tr>
  </table>

</form>
</body>
...

PHP Mailform / Flash Form Problem
I can not iron a wrinkle out in my FLash PHP mailform that sends info from the flash input boxes to our email address. Is there a guru in the house that i can email a zip file that contains the .fla and phpscript, i have two different versions with different scripts. I sure could use some professional input on 'why' this is not working.

ANYONE? ANYONE?

THANKS IN ADVANCE

deia_psi@yahoo.com

Mailform.php Problem Inside Flash
I have made a mail form in flash that works with php external file
when the user click submit i recieve a mail but with no information inside, no sender email and no comments, what i can do, where is the problem do I miss something??????

please help

Mailform In Flash With Php, Multiple Recievers?
hi i have made this form on my website

http://www.rituals-of-life.com/604/ contact section

its working with this php script;
how do i set this up, so that the comments will be submitted to 2 emails ????

<?

$adminaddress = "psy2kaves@yahoo.com";
$siteaddress ="http://www.rituals-of-life.com/604";
$sitename = "SixoFour";

//No need to change anything below ...
// Gets the date and time from your server
$date = date("m/d/Y H:i:s");

// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);

// Gets the POST Headers - the Flash variables
$action = $HTTP_POST_VARS['action'] ;
$email = $HTTP_POST_VARS['email'] ;
$name = $HTTP_POST_VARS['name'] ;
$comments = $HTTP_POST_VARS['comments'] ;

//Process the form data!
// and send the information collected in the Flash form to Your nominated email address

if ($action == "send") {
//
mail ("$adminaddress","Info Request",
"A visitor at $sitename has left the following information

Name: $name
Email: $email

The visitor commented:
------------------------------
$comments

Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress" ) ;

//This sends a confirmation to your visitor
mail ("$email","Thank You for visiting $sitename",
"Hi $name,

Thank you for your interest in $sitename!

Cheers,
$sitename
$siteaddress","FROM:$adminaddress") ;

//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Thank you. You will receive a confirmation email shortly.";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo $send_answer;
} //


?>



thx in advance

grtz

Having Problems With Mailform With My Flash Site :(
I want to say hello to all and thanks for letting me a part of this great forum. I am having some problems with my flash site (www.alliancedirect.net) and I am using Adobe Flash CS4 now with my site with ActionScript 1.0.

I have a form already made on the site (under contact us) but whatever I do....I can't make it work! I use GoDaddy and their gdform.psp is what they provide but they don't give the code in flash. I downloaded some different flash mail scripts and programs but I don't know how to incorporate it within my own site and I don't know what to do! I just want the information to be submitted to me via email and the other forms I will make away from the flash portion if it is too complicated.

Please let me know what specific information you may need from me and how you can hopefully help me as soon as possible as I need this website completely up and running. Again, I appreciatre the help and look forward to being a part of your community!

-sasss

Mail Form In Flash (MailForm.pl)
i've created mailing form in flash. i'm not using 'flash components', but i've created input text fields in wich page visitor should write his personal data that should be mailed to me, after pressing send button.

site is located on server that supports perl scripting, and in my provider's FAQ i've found the following HTML code for creating a mailing form:

----------------------------------------------------------------------------------------------------
<form action="http://www.inet.hr/cgi-bin/FormMail.pl" method="post">
<input type=hidden name="recipient" value="email@domena.hr"><br>
Naslov poruke<br><input type=text name="subject"><br>
Vaš e-mail<br><input type=text name="email"><br>
Vaše ime<br><input type=text name="realname"><br><br>
Tekst poruke<br><textarea name="Poruka" cols=60 rows=8></textarea><br><br>
<input type="submit" value="Posalji!">
<input type="reset" value="Obrisi!">
</form>
----------------------------------------------------------------------------------------------------

i've tried posting this code in html document, and it works, but i can't get my mailing form in flash working. i tried with this actionscript code:

----------------------------------------------------------------------------------------------------
recipient="mymail@inet.hr"
subject="test"
Poruka="jdslkjglkjdsagljk"
loadVariablesNum("http://www.inet.hr/cgi-bin/FormMail.pl",0,"POST");
----------------------------------------------------------------------------------------------------

but it doesn't send anything. can somebody tell me where am i mistakeing? pay attention to variable name 'Poruka' instead of standard 'body' in HTML sample code, i think that script FormMail.pl is partialy translated to my language (croatian). anyway, HTML code works, and i need to adjust it to actionscript use.

tnx.

Mail Form In Flash (MailForm.pl)
i've created mailing form in flash. i'm not using 'flash components', but i've created input text fields in wich page visitor should write his personal data that should be mailed to me, after pressing send button.

site is located on server that supports perl scripting, and in my provider's FAQ i've found the following HTML code for creating a mailing form:

----------------------------------------------------------------------------------------------------
<form action="http://www.inet.hr/cgi-bin/FormMail.pl" method="post">
<input type=hidden name="recipient" value="email@domena.hr"><br>
Naslov poruke<br><input type=text name="subject"><br>
Vaš e-mail<br><input type=text name="email"><br>
Vaše ime<br><input type=text name="realname"><br><br>
Tekst poruke<br><textarea name="Poruka" cols=60 rows=8></textarea><br><br>
<input type="submit" value="Posalji!">
<input type="reset" value="Obrisi!">
</form>
----------------------------------------------------------------------------------------------------

i've tried posting this code in html document, and it works, but i can't get my mailing form in flash working. i tried with this actionscript code:

----------------------------------------------------------------------------------------------------
recipient="mymail@inet.hr"
subject="test"
Poruka="jdslkjglkjdsagljk"
loadVariablesNum("http://www.inet.hr/cgi-bin/FormMail.pl",0,"POST");
----------------------------------------------------------------------------------------------------

but it doesn't send anything. can somebody tell me where am i mistakeing? pay attention to variable name 'Poruka' instead of standard 'body' in HTML sample code, i think that script FormMail.pl is partialy translated to my language (croatian). anyway, HTML code works, and i need to adjust it to actionscript use.

tnx.

Flash Mailform Scripting Issue
I'm trying to marry my custom made Flash mailform with my ISP's (Comcast) way of dealing with cgi scripts. I created a mailform template using their web interface. It looks hideous (here's the generic one: http://home.comcast.net/cgi-bin/MFEntry?owner=myName) but according to the information I got off the Comcast forums it might be used as a gateway to the Flash form. Here's the input I got from the helpful folks at the forums:

Go to your template generated form at http://home.comcast.net/cgi-bin/MFEntry?owner=myName and view the source code. Right under the FORM tag is the INPUT tag containing the mf_key "value" for your form.
The "mf_key" variable is an entry to the Oracle database that stores your form data. You should include a hidden input variable setting the value to the alphanumeric key in the template mailform. In html, the input tags might look something like:
<INPUT TYPE=HIDDEN NAME="owner" VALUE="myName">
<INPUT TYPE=HIDDEN NAME="mf_key" VALUE="xxxxxxx">
<INPUT TYPE=TEXT NAME="ResName" VALUE="">
<INPUT TYPE=TEXT NAME="ResEmail" VALUE="">
<INPUT TYPE=TEXT NAME="A1" VALUE="">
with the appropriate format parameters added to the tags. Alternatively, you could write them to the POST link of the form action URL. So your flash script should set first two variables, collect the next three and submit them all to the cgi POST. The first one may not be necessary since it's already included in the URL.
Apparently the server will only accept the owner variable using the GET method of form submittal and will just forward to the mailform entry template. So you will have write those input tags to the your page and use the POST method. You could write then with your flash script. Or write the form tag and hidden input tags in html and submit the form with your flash script

I think I have all the pieces necessary to make this work eventually even though right now it's still not working. As far as the Flash file goes: my custom mailform (called: "feedback_mc") is embedded in a main file (_root) and activated with the "send_btn" button (embedded in a form). There are three input type text fields in the form that are being treated by Flash as variables and are named respectively: ResName, ResEmail and A1. Their values will be determined by whoever fills the form out. Two other variables are owner = "myName" and mf_key = "123456f". Right now I'm simply declaring their values on the first frame of my "feedback_mc". Like this:

ActionScript Code:
//Initialize variables
var owner;  //Comcast mailform owner
var mf_key; //Comcast mailform identifier
owner = "myName";
mf_key = "123456f";

I assume that when when the "send_btn" is activated Flash collects all the info from the script and sends it to the comcast cgi bin link which in turn should trigger the cgi script and make the whole thing work. That is if I didn't screw up the Flash script. Here it is:

ActionScript Code:
_root.thankYou_txt._visible = false;//this will show up when mail is sent
_root.feedback_mc.send_btn.onRelease = function() {
    if (feedback_mc.ResName.length>0 && feedback_mc.ResEmail.length>0 && feedback_mc.A1.length>0) {
        loadVariables("http://home.comcast.net/cgi-bin/MFEntry?owner=myName", this, "POST");
        _root.feedback_mc._visible = false;//form disappears
        _root.thankYou_txt._visible = true;//standard "thank you" shows up here
    } else {
        _root.feedback_mc.thankYou_txt._visible = false;
        _root.feedback_mc.goBack_txt._visible = true;// this prompts the user to fill out all the fields and try again
    }
};

My problem is most probably with the way I'm declaring the "hidden" variables and /or the way I'm sending them to the cgi script - loadVariables might not be the right one in this case. Any ideas?

Save Mail Response From Flash- PHP Mailform Into A File Or Database
I have a flash mail form with a mailform.php, and everything is working fine, but i would like to save the info i get from the mailform to a file or a simple database.

Can somebody give me a hint on how to do this?, havent found anything like this anywhere!

This is the Actionscript i have in the flash file:

---------------------------------------------------------------------

fscommand ("true");
//
// set some variables
//
mailform = "http://path/to/mailform.php";
confirm = "Vennligst vent på bekreftelse ...";
action = "send";
result1 = "";
result2 = "";
result3 = "";
error1 = "Adressen er ikke gyldig";
error2 = "Må fylles ut";
error3 = "Ugyldig epostdomene";
//
// Tab order on form
//
firmafelt.tabIndex = 1;
orgfelt.tabIndex = 2;
fornavn.tabIndex = 3;
etternavn.tabIndex = 4;
epost.tabIndex = 5;
adresse.tabIndex = 6;
postnr.tabIndex = 7;
poststed.tabIndex = 8;
telefon.tabIndex = 9;
antallfelt.tabIndex = 10;
domenefelt.tabIndex = 11;
domenefelt1.tabIndex = 12;
melding.tabIndex = 13;
//
// and focus on variable fname
//
Selection.setFocus("firma");
//
// validate email function
//
function validate(address) {
var d = email.split("@")[1];
// d = everything after the @ sign
if (d == "online.no" ||
d == "frisurf.no" ||
d == "ONLINE.NO" ||
d == "FRISURF.NO" ||
d == "online.no " ||
d == "frisurf.no " ||
d == "ONLINE.NO " ||
d == "FRISURF.NO "
) {
loadMovieNum("http://path/to/online.swf", 10);
return false
}
if (address.length>=6) {
if (address.indexOf("@")>0) {
if ((address.indexOf("@")+2)<address.lastIndexOf(".") ) {
if (address.lastIndexOf(".")<(address.length-2)) {
return (true);
}
}
}
}
return (false);
}
//
// form check
//
function formcheck () {
if ((((email == null)) ||
(email.length<1)) ||
(email == "Adressen er ikke gyldig") ||
(email.indexOf("@")!=email.lastIndexOf("@")) ||
((email.lastIndexOf(".")+4)<email.length)
) {
email = error1;
action = "";
}
if (!validate(email)) {
email = error1;
action = "";
}
if ((((fname == null)) || (fname.length<1)) || (fname == "Må fylles ut")) {
fname = error2;
action = "";
}
if ((((lname == null)) || (lname.length<1)) || (lname == "Må fylles ut")) {
lname = error2;
action = "";
}
if ((validate(email)) && (email != error1) && (fname != "") && (fname != error2) && (lname != "") && (lname != error2) && (firma != "") && (firma != error2) && (org != "") && (org != error2) && (addy1 != "") && (addy1 != error2) && (zipp1 != "") && (zipp1 != error2) && (cityp1 != "") && (cityp1 != error2) && (ss != "") && (ss != error2) && (antall != "") && (antall != error2) && (domene != "") && (domene != error2)) {
action = "send";
loadVariablesNum (mailform, 0, "POST");
gotoAndPlay ("wait");
}
if ((((firma == null)) || (firma.length<1)) || (firma == "Må fylles ut")) {
firma = error2;
action = "";
}
if ((((org == null)) || (org.length<1)) || (org == "Må fylles ut")) {
org = error2;
action = "";
}
if ((((addy1 == null)) || (addy1.length<1)) || (addy1 == "Må fylles ut")) {
addy1 = error2;
action = "";
}
if ((((zipp1 == null)) || (zipp1.length<1)) || (zipp1 == "Må fylles ut")) {
zipp1 = error2;
action = "";
}
if ((((cityp1 == null)) || (cityp1.length<1)) || (cityp1 == "Må fylles ut")) {
cityp1 = error2;
action = "";
}
if ((((ss == null)) || (ss.length<1)) || (ss == "Må fylles ut")) {
ss = error2;
action = "";
}
if ((((antall == null)) || (antall.length<1)) || (antall == "Må fylles ut")) {
antall = error2;
action = "";
}
if ((((domene == null)) ||
(domene.length<=4)) ||
(domene == "Må fylles ut"))
{
domene = error2;
action = "";
}
//
//sjekk av online.no og frisurf.no domener
//
if (domene == "online.no" ||
domene == "frisurf.no" ||
domene == "online.no " ||
domene == "frisurf.no " ||
domene == "ONLINE.NO" ||
domene == "FRISURF.NO" ||
domene == "ONLINE.NO " ||
domene == "FRISURF.NO ")
{
loadMovieNum("http://path/to/online.swf", 10);
domene = error1;
action = "";
}
var d = domene.split("@")[1] // d = everything after the @ sign
if (d == "online.no" ||
d == "frisurf.no" ||
d == "online.no " ||
d == "frisurf.no " ||
d == "ONLINE.NO" ||
d == "FRISURF.NO" ||
d == "ONLINE.NO " ||
d == "FRISURF.NO ")
{
loadMovieNum("http://path/to/online.swf", 10);
domene = error1;
action = "";
}
if (domene1 == "online.no" ||
domene1 == "frisurf.no" ||
domene1 == "frisurf.no " ||
domene1 == "online.no "||
domene1 == "ONLINE.NO" ||
domene1 == "FRISURF.NO" ||
domene1 == "ONLINE.NO " ||
domene1 == "FRISURF.NO ")
{
loadMovieNum("http://path/to/online.swf", 10);
domene1 = error1;
action = "";
}
var d1 = domene1.split("@")[1] // d1 = everything after the @ sign
if (d1 == "online.no" ||
d1 == "frisurf.no"||
d1 == "online.no " ||
d1 == "frisurf.no " ||
d1 == "ONLINE.NO" ||
d1 == "FRISURF.NO" ||
d1 == "ONLINE.NO " ||
d1 == "FRISURF.NO ")
{
loadMovieNum("http://path/to/online.swf", 10);
domene1 = error1;
action = "";
}
//
//sjekk av andre ugyldige domener
//
if (domene == "hotmail.com" ||
domene == "yahoo.no" ||
domene == "yahoo.com" ||
domene == "msn.com" ||
domene == "HOTMAIL.COM" ||
domene == "YAHOO.NO" ||
domene == "YAHOO.COM" ||
domene == "MSN.COM")
{
domene = error3;
action = "";
}
var d = domene.split("@")[1] // d = everything after the @ sign
if (d == "hotmail.com" ||
d == "yahoo.no" ||
d == "yahoo.com" ||
d == "msn.com" ||
d == "HOTMAIL.COM" ||
d == "YAHOO.NO" ||
d == "YAHOO.COM" ||
d == "MSN.COM")
{
domene = error3;
action = "";
}
if (domene1 == "hotmail.com" ||
domene1 == "yahoo.no" ||
domene1 == "msn.com" ||
domene1 == "yahoo.com"||
domene1 == "HOTMAIL.COM" ||
domene1 == "YAHOO.NO" ||
domene1 == "YAHOO.COM" ||
domene1 == "MSN.COM")
{
domene1 = error3;
action = "";
}
var d1 = domene1.split("@")[1] // d1 = everything after the @ sign
if (d1 == "hotmail.com" ||
d1 == "yahoo.no"||
d1 == "yahoo.com" ||
d1 == "msn.com" ||
d1 == "HOTMAIL.COM" ||
d1 == "YAHOO.NO" ||
d1 == "YAHOO.COM" ||
d1 == "MSN.COM")
{
domene1 = error3;
action = "";
}
}
stop ();

---------------------------------------------------------------------

THis is my mailform.php


<?

// Legg inn hoved kontakt epostadressen her
$adminaddress = "kontaktoss@somedomaine.no";

// Legg inn flere kontakt epostadresser her
$adminaddress1 = "kontaktoss@somedomaine.no"";

// Legg inn hoved webside adressen her, inkludert http://www.
$siteaddress = "http://path/to/index.html";

// Legg inn ennå webside adressen her, inkludert http://www.
$siteaddress1 = "http://path/to/";

// Legg inn bedrift eller webside navn her
$sitename = "Sitename";

// Finner dato og tid fra server
$date = date("m/d/Y H:i:s");

// Finner IP adressen
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);

// Prosessering av form data!
// sender informasjon samlet fra flash bestillingsskjemaet til den oppgitte epostadressen (adminadress)
if ($action != ""):
mail("$adminaddress","Bestilling",
"Bestilling fra $firma att: $fname $lname

Bestilling:
------------------------------
Ordre1: $result3
Ordre2: $result2

Kunde:
------------------------------
Firma: $firma
Navn: $fname $lname
Org no: $org
E-mail: $email
Telefon: $ss
Adresse: $addy1
Poststed: $cityp1
Postnr.: $zipp1
Antall e-post kontoer i bedriften: $antall
Epostdomene: $domene
Flere epostdomener: $domene1
Egen mailserver: $result1

Melding:
------------------------------
$comment

Logget info:
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");

//Sender bekreftelse til kunde
mail("$email","Takk for din bestilling",
"Hei $fname

Vi har mottatt en bestilling fra deg med denne informasjonen:

Din bestilling:
------------------------------
$result3
$result2

Detaljer:
------------------------------
Firma: $firma
Navn: $fname $lname
Org no: $org
E-post: $email
Telefon: $ss
Adresse: $addy1
Poststed: $cityp1
Postnr.: $zipp1
Antall e-post kontoer i bedriften: $antall
Epostdomene: $domene
Flere epostdomener: $domene1
Egen mailserver: $result1

Melding:
------------------------------
$comment

Informasjon:
------------------------------
Bestillingen din er mottat og vil bli implementert hos oss innen 10 virkedager.

Med vennlig hilsen,
$sitename
$siteaddress",
"FROM:$adminaddress");

//Send bekreftelse tilbake til flash formen
$sendresult = "Takk for din bestilling, du vil motta en bestillingsbekreftelse på epost innen kort tid.";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";

endif;
//Det var det
?>[b]

Chose Email Recipient Through Radio Button (Flash Mailform)?
I've been searching everywhere for a mailform (Flash with php) that allows you to send an email to the recipient chosen through i.e. a radio button. I've found loads of regular email form tutorials sending to 1 or several recipients but none of them explained how to choose your recipient in the form. Hope there's a fine tutorial out there ;-)

I do attach though the only .fla with .php file I came across but it doesn't seem to work. Hopefully there's someone among you who can "light at the end of this form tunnel" which it has become to me ;-)



Cheers all!

Help With A Mailform
Hi,
I'm not so good at actionscripting but I don't know if this has anything to with coding anyway...
I have a mailform (form.swf). I works perfectly, using an external php file. here's a link to the form:
http://www.subwaydesigns.net/Whatuwant/form.html
That one won't send though, as I'm hosted on a Windows server.
Anyway, the problem is that I want the cursor to move from right to left. As it is now, I click in the "first name" field, press tab and the cursor moves to the email field.
What i want it to do is go from first name to last name to company name etc...
I basically got it to do that just deleting some parts of the form, replacing them and getting lucky. Here's the second version:
http://www.subwaydesigns.net/Whatuwant/form2.html
THe problem is the checkboxes don't work anymore because I have to use two frames to fit in all the content while making the cursor move as I want.
Think it's impossible...just wait. the form was designed to be imported into another flash movie, and that's yet another problem because when you press tab; the cursor wraps around some buttons in the main movie.
I hope I wasn't too confusing...
If you have any ideas, please lpost them you'd make my day,
Laz.

Mailform Php
help. i am new with flash. and i am using flash 5. does anybody know how to make simple mailform using php, and how to create it? i mean step by step instructions? please e-mail me: my_gryffindor@yahoo.com

big thanks.

Mailform#2
Guy's......

I do not need another tute right now cause I really need a CLEAN AND GOOD explanation on how to make my mailform work !!!! I've had .pl.php and every kind of script that doesn't work!

Mailform Php Help
how is it possible to control and modify the message characteristics such us |font type-size, bold, italics etc| so to produce messages under a specific mode

Mailform Php Help
how is it possible to control and modify the message characteristics such us |font type-size, bold, italics etc| so to produce messages under a specific mode

Mailform PHP
Hi there,
I'm having some troubles with php mail forms with data that 'll be sent from out of flash.

here is my php form

PHP Code:



mail("pietervanstee@hotmail.com","Thank You for visiting our site",
"Hi $name,
Thank you for your interest in $sitename!
Here are the items you ordered:
$orderForm
kind regards,
    $sitename
$siteaddress","FROM:$adminaddress");




and in flash:


PHP Code:



on (release) {
        loadVariablesNum ("mailform.php", 0, "POST");
        gotoAndPlay (18);
}





Will this work?
cause I've had some troubles with php forms, now I figured out that my server sents me the mails almost a day later ...

kind regards flax

MailForm
Hi,

I'm about to build my first website in flash.
It works better than I could have hoped.

No to my question:
At my webhotel I can use cgi-scripts to send e-mail via a form.
In html I know how it's done. But how do I do it in flash?

I have set up the form with a few fields where the user can type thier name and email adress etc.

But how do I send it?
Is there a way to use html in the flash?


Thanx
Richard

Mailform
some one plzz give me a mail form that works in php format i tried alot of em but none seems to work

Help Using Mailform.php And Swf
Thanks to anyone for the help!
I've got a charity car show I'm helping out with a site.
I need a FORM to work, so people can pre-register their cars.

All the site is hosted at thevertical.org but the domain tfcmainevent . com is parked and forwarded to the subsite. The fla, swf, php and html for the FORM are all in the main directory. Input within the php doc has been changed from tfcmainevent. com 's info AND thevertical. org 's info, again and again, but I never receive conformations?
First, how do I check to see if the swf performs properly upon submit?
Secondly, Can someone please check my php doc for errors:

BELOW: the characters " <" and ">" were replaced with brackets:

[?

/************************************************** ****
**
** Flash Mx PHP Mailer
**
** By - The Vertical
************************************************** *****/

/************************************************** *****

Enter your site details below!

************************************************** *****/

// Enter your contact email address here
$adminaddress = "civicnos1@aol.com";

// Enter the address of your website here include http://www.
$siteaddress ="http://www.thevertical.org";

// Enter your company name or site name here
$sitename = "TFCMAINEVENT.COM";

/************************************************** *****

No need to change anything below ...

************************************************** *****/

$date = date("m/d/Y H:i:s");

if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);


if ($action != ""):
mail("$adminaddress","Info Request",
"A visitor at $sitename has left the following information

Name: $fname
Address: $lname
Email: $email
Telephone: $telno

The vehicle stats are:
------------------------------
$comments

Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");

mail("$email","Thank You for visiting $sitename",
"Hi $fname,

Thank you for your interest in THE MAIN EVENT.
Step one of the registration process has been completed!
To finalize entry, please mail or bring in payment before 5pm on June 17th.
For more information or assistance, please revisit our website.

THANKKS for your part in helping the Asia Little Ones,
GOD BLESS YOU!
Trinity Fellowship
$Sitename
$siteaddress","FROM:$adminaddress");

$sendresult = "Thank you for visiting <a href = "$siteaddress" target = "_blank"><u>$sitename</u></a>. You will receive a confirmation email shortly. ";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";

endif;

?]

Mailform
Hello,

I'm strugling with a mail form in AS3. and i can't find a good and clear tutorial for something like this...

I was hoping to get a little input on this matter, or some clear help.

The mailform,

I want to get the inputfields and radiobutton values in an e-mail. The e-mailaddress is different for each country... I don't know where to look first.

Thanks for the help...

CGI-BIN Mailform
is it possible to make a CGI-BIN mailform in flash?

greetz
Jakke

Mailform
Wasnt there a toturial about mailforms, cant find it. One with flash and what u need on tha server?

Mailform Without Using Php
How to create a mailform in flash without using php ???

Mailform Using .asp?
Anyone know where to find a tutorial on this subject?

Mailform With Mx + Php
hey guys and girls,
i'm trying to create a mailform that can output certain variables into the body of the text.
example:
==vars from flash==
clientName = cName
bodyMessage = messageVar
budget = budgetVar

== pop mail ==
body message = messageVar
client name = cName
budget = budgetVar

can someone help me out? many thanks.
tee.

CGI-BIN Mailform
is it possible to make a CGI-BIN mailform in flash?

greetz
Jakke

Mailform
Hi, id like to have a form on my page where u fill in yore mail, name and a commentfield.
How do i do that, what do i need to do in flash, and what do i need to do outside flash.

Please help, and please talk to me as if i was youre 60 year old grandaddy who thught that computers were that thing u have in youre pocket and put into that machine and then u get some money!

thanks

Mailform Help
I was wondering if anyone could explain what I need to do to add a radio button to my mail form and then have it send that it was checked along with the other information using the php file I already have. Hope that makes sense.

Thanks!

Mailform Using .asp?
Anyone know a tutorial or such on this subject? Thanks.

Mailform Problems
OKAY I HAVE THREE INPUT TEXT BOXES (name, email, comments), AND ONE DYNAMIC BOX (results). YOU GO TO THE WEBPAGE AND YOU CAN FILL IN THE FORM, AND HIT THE SUBMIT BUTTON, BUT IT JUST SAYS, "Sending Data..." AND DOESN'T DO ANYTHING. Here's the action on the "Submit" button:

on (release) {
// logical operator checks length. IndexOf checks for "@" and "." characters in e-mail
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
results = "Please check your e-mail address.";
} else if (!comments.length) {
results = "Please enter your comments.";
} else if (!name.length) {
results = "Please enter your name.";
} else {
loadVariablesNum ("http://icdweb.cc.purdue.edu/~robbinba/mailform.php", 0, "GET");
results = "Sending Data...";
}
}

HERE'S THE <mailform.php> script:

<?php


$TextVariable = '&results=';
$response = 'Data Sent. Thank You..';


echo $TextVariable;
echo $response;

/* recipients */
$recipient .= "<brent@brentrobbins.com>" ;

/* subject */
$subject = "Your Automail";

/* message */
$message .= "Name: $name
Email: $email
Comments: $comments
";

/* additional header pieces for errors, From cc's, bcc's, etc */
$headers .= "From: $name <$email>
";


/* and now mail it */
mail($recipient, $subject, $message, $headers);


?>

OKAY SO WHAT COULD BE THE PROBLEM? I DON'T UNDERSTAND. SOMEONE HELP PLEASE. THANKS.

Mailform Problems
Hey guys,

I'm using the following script for a form:

on (release) {
// recipient address
var recipient = "dave@envisionous.com";
loadVariablesNum ("http://mailgate.server-mail.com/cgi-bin/mailgate", 0, "POST");
}

Now, this works fine when I use the form locally, or when I host it on my own site's hosting environment - which is different from my client's environment - yet this mail script is my client's host's chosen script!! In other words, it's working fine everywhere apart from where it's supposed to!!

Can anyone see what I'm doing wrong, or explain what the problem is - please?!

Thanks
Dave

MAILFORM TEARS.....
Well, it's about a problem i've been having for a long time now and i need help!! I need a pre-written mailscript (.pl/.asp or whatever i can put in the cgi-bin on the server. There is one now(.pl) but i don't know what to do to make it work together with my mailform in flash. I've tried all the tutorials but my form is still not working!! Is there a way to alter the .pl script so i can finally use my form?? Or can i put in another so it will work just as well??


You don't need eyes to see....
You need VISION.

Mailform Tears......
Hi there,
I need for someone to guide me trough (all the way!!) the altering of the cgi-script to make my (falsh) mailform work!! (Or if someone has another script that is easy to use) I am on a deadline here and all is finished accept for my mailform and i can't get it to work!!!! Tell me what I need to do or change to make the script work!!

Mailform Cgi Script
how do I configure at button to send to my cgi location + go to another frame ?

Is there anything else I have to do to make the mailform work ?

Combo Box And Php Mailform
Help !

I am using the Combo Boxes from Flash MX and want to send the value together with some other text inout data with a php mailform.

The inputtext is being sent, but the values from the Combo Boxes isn't. Any help out there to get ?

My php file looks like this:

<?PHP
$Recipient = "my@email.com";
$Required = array ("firma", "kontaktperson", "email");

while (list($Key, $Value) = each($Required))
{
if ((empty($HTTP_POST_VARS[$Value])) &&
(empty($HTTP_GET_VARS[$Value])))
{
$ErrorMsg = urlencode("Udfyld venligst felterne markeret med *");
print "&result=fail&errormessage=" . $ErrorMsg . "&junk=1";

exit;
}
}

$MailMsg = "ENQUIRY FROM WEBSITE EMAIL FORM

################################################## ################
## THESE VARIABLES: firma,kontaktperson and so on ARE SHOWN IN THE ## MAIL. THEY ARE ALL SIMPLE TEXTINPUT FIELDS WITH VARIABLE NAMES.
################################################## ################

Firma: $firma
Kontaktperson: $kontaktperson
Jobtitel: $jobtitel
Email: $email
Phone: $telefon
Adresse: $firmaadr
Anden Forhandlervalg: $andenforhandler

################################################## #################
# I HAVE GOT THREE COMBO BOXES AND ONE CHECKBOX (all flash mx. THEY #ALL GOT A VARIABLE NAME, BUT SOMEHOW THE VALUE IS NOT BEING SENT.
################################################## #################

Forhandlervalg: $partners
Antal brugere: $brugere
Referencer: $referencer
Produktnyheder: $check

------------------------------
Logged Info :
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date";

$success = mail($Recipient, "LOOK kampagne", $MailMsg, "From: $email
");

if($success == true)
{
$time = date("Y-m-d");

print "&result=okay&junk=1";

}
else
{
$ErrorMsg = urlencode("The mail() function failed.");
print "&result=fail&errormessage=" . $ErrorMsg . "&junk=1";
}

?>

Html/php Mailform... Can Anyone Help?
im trying to get my php mailform to run on my server... the php mailform workis in flash on my personal server, but the company i am doing te website for right now doesn't run the php file properly. i contacted the support line of the server after going through a bunch of procedures, he told me that my php file is fine, but t find out what they need to do to set it up properly, i need to set up my php form to run in an html file (not flash). i dont know how to do this, but if anyone is willing to help me create a html file for this, let me know.... thank you

External Mailform.swf?
Hi I would be very happy. if anyone could give the answear to this question?
I've made A Emailform as an external swf file. it works great when testing it by it'self. but when loading into a MC on the main movie
it will not work. I'm sure this problem lay's within the target path.
for that loadvariable command.

I've sorted the other communication issue such as error reports from
the emailform.swf if the form is not filled out correctly and so on..

Excuse the bad english. i sincerly hope someone take their time to
reply on this post

Thanks Sven_b

Mailform Actionsript/php
Hi,
I have downloaded and used the attached mailform file from flashkit many time w/great success. Now I am loading the mailform swf into a container clip in another swf (code below).

mailcontainer.loadMovie("mail_list.swf");

Now that the mailform is loaded into another movie I can't get all of the variables to work. I try redirecting them but I couldn't get it to work.

Would someone mind taking a look?

Attached is the swf I am loading into my main movie. (fla and php file included)

Thanks!

Combo Box With Mailform...
Hi i downloaded a mailform from the movies section and there are only 3 fields on it and i was wondering if it is possible to add a combo dropdown box to it with multiple options ??

http://www.flashkit.com/movies/Inter...8880/index.php

Is the mailform and i want to add a combo box so the person filling it in can choose from the dropdown things i specify in it so is this poss ??

I appreciate any help anyone can offer.

Mailform Nightmare
anybody knows where can I find working mailform tutorial? I found quite a few for a simple mailform, but none actually worked...
Thanks for any advice
Lee Bosh

Copyright © 2005-08 www.BigResource.com, All rights reserved