| menohar 2005-09-20, 11:20 pm |
| my name is rick .. new at flash mx. and dutch
I got this very neek flash template site:
http://www.missmatch.nl
With a summitbotton cald (versturen) in the index topic cald (inschrijven) but
it doesn,t work.
The cancel botton is cald annuleren and this is the action scriptcode.
on (rollOver)
{
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut)
{
this.gotoAndPlay("s2");
}
on (release)
{
_parent.t2_2 = "";
_parent.t3_2 = "";
_parent.t4_2 = "";
_parent.t1_2 = "";
}
The sumit botton is cald versturen and this is the actionscript.
on (rollOver)
{
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut)
{
this.gotoAndPlay("s2");
}
on (release)
{
getURL("submit.php");
}
The PHP file build in dreamweaver mx has de following code.
<?
if(!empty($HTTP_POST_VARS['t4_2']) || !empty($HTTP_POST_VARS['t1_2']) ||
!empty($HTTP_POST_VARS['t3_2']) || !empty($HTTP_POST_VARS['t2_2']))
{
$to = "missmatch@missmatch.nl";
$subject = stripslashes($HTTP_POST_VARS['t3_2']);
$body = stripslashes($HTTP_POST_VARS['t1_2']);
$body .= "\n\n---------------------------\n";
$body .= "Mail sent by: " . $HTTP_POST_VARS['t2_2'] . " <" .
$HTTP_POST_VARS['t4_2'] . ">\n";
$header = "From: " . $HTTP_POST_VARS['t2_2'] . " <" . $HTTP_POST_VARS['t4_2']
.. ">\n";
$header .= "Reply-To: " . $HTTP_POST_VARS['t2_2'] . " <" .
$HTTP_POST_VARS['t4_2'] . ">\n";
$header .= "X-Mailer: PHP/" . phpversion() . "\n";
$header .= "X-Priority: 1";
if(@mail($to, $subject, $body, $header))
{
echo "output=sent";
} else {
echo "output=error";
}
} else {
echo "output=error";
}
?>
can somewhone pleas help me with tthe right codes to make this work so people
can send there name.. mailadres etc to my mailadres missmatch@missmatch.nl
Thanks Rick
|