Ir para conteúdo
Fórum Script Brasil
  • 0

Php & Flash


Guest gijs

Pergunta

5 respostass a esta questão

Posts Recomendados

  • 0

I'll try to translate a post by jls666 in http://scriptbrasil.com.br/forum/index.php...php\+flash

the question was how to send mail integrating php and flash, but it can be used to any kind of application.

You have two options:

first: you can use the php mailto function:...

on (release) {
    getURL("mailto:email@server.com.br");
}
second: you can use dynamic page (like php, asp or cold fusion) here is an exemple using php:
<? 

	$to = "user@domain.com";
	$subject = "Only testing";
   
	$head = "MIME-Version: 1.0\n";
	$head .= "Content-type: text/html; charset=iso-8859-1 \n";
	$head .= "From: <$email_destino> \n";
	$head .= "Reply-To: <$email_destino> \n";
	$body = "$anything";
	$body = wordwrap($body, 72);

	mail($to, $subject, $body, $head) or die ("Error while trying to send message");

	echo "Your message was successfully sent";
?>
Finally, on flash button, use the following code
on (release) {
    getURL("mail.php", "", "POST");
}

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

I hope I've helped you.

Link para o comentário
Compartilhar em outros sites

  • 0

Hello does anyone here know how to integrate php in flash like in the forum on http://www.nuffsaid.nl ?

Please answer in english....  huh.gif

I found an article about FLASH + PHP , I hope you like it.

(I didn't read it , but I think it's a good one cause it is in macromedia's website)

http://www.macromedia.com/devnet/mx/flash/...lashmx_php.html

Link para o comentário
Compartilhar em outros sites

  • 0
I'll try to translate a post by jls666 in http://scriptbrasil.com.br/forum/index.php...php\+flash

the question was how to send mail integrating php and flash, but it can be used to any kind of application.

You have two options:

first: you can use the php mailto function:...

on (release) {
    getURL("mailto:email@server.com.br");
}
second: you can use dynamic page (like php, asp or cold fusion) here is an exemple using php:
<? 

	$to = "user@domain.com";
	$subject = "Only testing";
   
	$head = "MIME-Version: 1.0\n";
	$head .= "Content-type: text/html; charset=iso-8859-1 \n";
	$head .= "From: <$email_destino> \n";
	$head .= "Reply-To: <$email_destino> \n";
	$body = "$anything";
	$body = wordwrap($body, 72);

	mail($to, $subject, $body, $head) or die ("Error while trying to send message");

	echo "Your message was successfully sent";
?>
Finally, on flash button, use the following code
on (release) {
    getURL("mail.php", "", "POST");
}

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

I hope I've helped you.

ô, da hora isso!! smile.gif

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,2k
    • Posts
      652k
×
×
  • Criar Novo...