zoukankan      html  css  js  c++  java
  • Flash:LoadVars数据提交与表单处理

    1、LoadVars vs getURL
    send()
    getURL有很多的限制,LoadVars则弥补了这一点

    Flash时间轴脚本:
    System.useCodepage=true;
    signBtn.onRelease=function()
    {
           var formVars:LoadVars=new LoadVars();
           formVars.userName=signForm.userName.text;
           formVars.userPass=signForm.userPass.text;
           formVars.userMail=signForm.userMail.text;
           formVars.send(http://www.chinawecan.com/FlashForm.php,"_blank","GET");
    }


    2、sendAndLoad()
    Flash:
    第1帧:
    System.useCodepage=true;
    var yName:String="";
    var yPass:String="";
    var yMail:String="";
    signBtn.onRelease=function()
    {
           var formVars:LoadVars=new LoadVars();
           formVars.userName=signForm.userName.text;
           formVars.userPass=signForm.userPass.text;
           formVars.userMail=signForm.userMail.text;
           var resultVars:LoadVars=new LoadVars();
           resultVars.onLoad=function(success)
           {
                  if(success)
                  {
                         play();
                         yName=this.yourName;
                         yPass=this.yourPass;
                         yMail=this.yourMail;
                  }else{
                         trace("失败");
                  }
           }
           formVars.sendAndLoad("http://localhost/php/signin.php",resultVars,"GET");
    }
    stop();
    第2帧:
    stop();
    yourName.text=yName;
    yourPass.text=yPass;
    yourMail.text=yMail;
    Php:
    <?php
    echo "yourName=".$_GET["userName"]."&";
    echo "yourPass=".$_GET["userPass"]."&";
    echo "yourMail=".$_GET["userMail"];
    ?>

  • 相关阅读:
    SQL盲注 加速方法
    后渗透(七)关闭防火墙和杀毒软件并开启远程桌面
    后渗透(五)PassingTheHash
    瀏覽器兼容性解決方法
    web頁面優化以及SEO
    DOM中的事件傳播機制
    Get與Post的區別--總結隨筆
    微信飞机大战
    python教程(三)·自定义函数
    python教程(三)·函数与模块
  • 原文地址:https://www.cnblogs.com/hakuci/p/1898029.html
Copyright © 2011-2022 走看看