Добавлено: 27 мар 2006, 22:57
qwertyuiop,
index.php
Протестировать можно тут:
http://home.informatik.tu-muenchen.de/~skrypnyo/flash/
Исходники флэша лежат тут:
http://home.informatik.tu-muenchen.de/~ ... /login.fla
http://home.informatik.tu-muenchen.de/~ ... ssword.fla
index.php
Код: Выделить всё
<?php
if ($_REQUEST['login'] != "" ) {
echo "Login: ".$_REQUEST['login']."
\n";
echo "Password: ".$_REQUEST['password']."
\n";
} else {
?>
<html>
<head>
<title>flash test</title>
<script type="text/javascript">
function test() {
document.getElementById('hiddenLogin').value = document.login.GetVariable("login");
document.getElementById('hiddenPassword').value = document.password.GetVariable("password");
document.getElementById('authorisation').submit();
}
</script>
</head>
<body>
LOGIN:
<object id="login">
<EMBED src="login.swf" swliveconnect="true" name="login" width="150" height="40"></EMBED>
</object>
PASSWORD:
<object id="password">
<EMBED src="password.swf" swliveconnect="true" name="password" width="150" height="40"></EMBED>
</object>
<input type="button" value="SUBMIT" onClick="test();">
<form id="authorisation" method="POST">
<input type="hidden" id="hiddenLogin" name="login">
<input type="hidden" id="hiddenPassword" name="password">
</form>
</body>
</html>
<?php
}
?>
http://home.informatik.tu-muenchen.de/~skrypnyo/flash/
Исходники флэша лежат тут:
http://home.informatik.tu-muenchen.de/~ ... /login.fla
http://home.informatik.tu-muenchen.de/~ ... ssword.fla