Napisano: 24 Mar 2012 20:52
na cd_u mi je a zauzima mnogo memorije.ali evo sta je on napisao umesto mog maila, svoj domen i
"http://www.jillgraphicdesigner.com/gdform.php" ako mu taj gdform nije taj dodatak koji mu radi send?!
Dopuna: 30 Mar 2012 0:38
napravio sam u svakom slucaju hvala za pomoc.trebao je taj dodatni php fajl. pa ukoliko nekome zatreba ovako kod mene radi. S tim da u flashu ja sam imao tri polja kojima sam dao imena theName, theMail i theMessages sad je na vama da li cete praviti dodatna ili ne cak ili varijable.
Hvala mnogo jos jednom na skretanju paznje Tamititami.
<?php
/* ---------------------------
php and flash contact form.
by MacromediaHelp.com
---------------------------
Note: most servers require that one of the emails (sender or receiver) to be an email hosted by same server,
so make sure your email (on last line of this file) is one hosted on same server.
--------------------------- */
// read the variables form the string, (this is not needed with some servers).
$subject = $_REQUEST["subject"];
$message = $_REQUEST["message"];
$sender = $_REQUEST["sender"];
// include sender IP in the message.
$full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message;
$message= $full_message;
// remove the backslashes that normally appears when entering " or '
$message = stripslashes($message);
$subject = stripslashes($subject);
$sender = stripslashes($sender);
// add a prefix in the subject line so that you know the email was sent by online form
$subject = "Contact form ". $subject;
// send the email, make sure you replace email@yourserver.com with your email address
if(isset($message) and isset($subject) and isset($sender)){
mail("tvojemail@upisiovde.com", $subject, $message, "From: $sender");
}
?>
a flash
import flash.net.URLVariables;
import flash.net.URLRequest;
InteractiveObject(theName.getChildAt(1)).tabIndex = 1;
InteractiveObject(theEmail.getChildAt(1)).tabIndex = 2;
InteractiveObject(theMessage.getChildAt(1)).tabIndex = 3;
/* Mouse Click Event
Clicking on the specified symbol instance executes a function in which you can add your own custom code.
Instructions:
1. Add your custom code on a new line after the line that says "// Start your custom code" below.
The code will execute when the symbol instance is clicked.
*/
send_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_7);
function fl_MouseClickHandler_7(event:MouseEvent):void
{
if (theName.text == "" || theEmail.text == "" || theMessage.text == "")
{
theFeedback.text = "Molim popunite sva polja!";
}
else
{
var allVars:URLVariables = new URLVariables ();
allVars.name = theName.text;
allVars.email = theEmail.text;
allVars.message = theMessage.text;
// send into a url
var mailAddress:URLRequest = new URLRequest("http://www.vasdomen.com/ime-php-fajla.php");
mailAddress.data = allVars;
mailAddress.method = URLRequestMethod.POST;
sendToURL(mailAddress);
theFeedback.text = "Hvala Vam!";
theName.text = "";
theEmail.text = "";
theMessage.text = "";
}
}
|