Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams


ASP & Flash


  • Please log in to reply
&nsbp;

#1 Lucidic

Lucidic

    Apprentice Designer

  • Designer
  • 115 posts

Posted 08 December 2003 - 09:23 AM

I have a flash form and I normally use FORMMAIL
but now I need ASP I think

right now its
like this:
---------------------------------------------------------------------
on (release) {

recipient = "you@yourdomain.com";

redirect
= "http://home.worldonline.com/larsbro/test/tom.html";

loadVariables("http://mail.yourdomain.com/formmail.pl", "", "POST");
gotoAndStop("thanks");
}

----------------------------------------------------------------------
very simple!

but now I cant use this because well I just cant hehee
this server wont let me call script from my same domain
it makes you use
http://yourdomain.com

rather then

http://www.yourdomain.com

SO I asked if I can fix this because I am getting that horrid flash popup that says

YOU ARE ASKING BLA BLA TO TALK TO ANOTHER DOMAIN BLA BLA


So I asked if I can fix it like I I have before on other server but he said NO!

So I need an alternative way to make a message form that sends me info submitted from site on this flash page.

ASP is what he said to use

only I dont know asp =(



thanks

#2 ninjagnat

ninjagnat

    Apprentice Designer

  • Designer
  • 1 posts

Posted 10 December 2003 - 12:13 PM

Is your flash form pulling/storing the data 'normally?' As in you can access it by calling a request.form? If not, how is your form storing the data and sending it to the mailer? There is a VERY easy way to accomplish what you are asking if the circumstances are right :-) (in your code that is).

-ninjagnat

#3 Nulla nonummy

Nulla nonummy

    Apprentice Designer

  • Designer
  • 28 posts

Posted 10 December 2003 - 03:07 PM

Hello

You cannot use PHP? Just checking.

Later
Nulla

#4 Lucidic

Lucidic

    Apprentice Designer

  • Designer
  • 115 posts

Posted 10 December 2003 - 06:05 PM

This is the code i downloaded from flashkit for CGI formmail
it normally works but they said I cant CGI on their server

and recomended ASP but I found a pHP version of formmail but
it didnt work I must be needing to install a script or something I dont know

the comments were allready in here those arent me . . .

CGI from the Flash file--------------------------------------
on (release) {

recipient = "me@sbcglobal.net";
// Redirect gives the option to go to"message recived-page". This URL calls an nonexsisting html-page - see what happens with the email you recive, if you move the redirect-variable! don't (hmmm??) Please tell if you know how and why!!
redirect = "http://home.worldonline.com/larsbro/test/tom.html";

// I did have mail. sweet . . .calls the formMail script (on my server) write your own URL
loadVariables("http://mail.sweetlantana.com/cgi-bin/formmail.cgi", "", "POST");
gotoAndPlay("thanks");
}
------------------------------------------------------------------------

#5 Nulla nonummy

Nulla nonummy

    Apprentice Designer

  • Designer
  • 28 posts

Posted 10 December 2003 - 07:47 PM

Hello

Ok variable name your input fields as follows:

email
subject
message

Place this on the flash submit button:

on (release) {
	if (email eq "" || subject eq "" || message eq "") {
		info = "Please fill in all fields."
		stop();
	} else {
		loadVariablesNum("formMail.php", 0, "POST");
		info = "Email Sent."
		email = "";
		subject = "";
		message = "";
	}
}

Save and export the flash movie, Then open notepad and paste this:

<? 
$headers = "From: $email"; 
$message = str_replace("\r", "\n", $message);
mail("Your Email Here", "$subject", "$message", "$headers"); 
?>

Change the email to yours and save it to the same directory as the flash file and name it formMail.php.

That should work, if your server allows PHP scripts.

Hope this helps.

Later
Nulla




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users