首頁  >  文章  >  後端開發  >  值传送

值传送

WBOY
WBOY原創
2016-06-13 11:16:05841瀏覽

值传递
以下代码可以取出本机mac码,我想将取取来的$nac在user表中where得出ip字段内容,不会写格式。然后再将$mac和$ip传递到如asb.php?MA=$mac&v2=$ip,最好是打开页面自动传递

<?php     <br />    class GetMacAddr   <br>    {   <br>            var $return_array = array(); <br>            var $mac_addr;   <br>               <br>            function GetMacAddr($os_type)<br>            {   <br>                    switch ( strtolower($os_type) )   <br>                    {   <br>                            case "linux":<br>                                    $this->forLinux();   <br>                                    break;   <br>                            case "solaris":   <br>                                    break;   <br>                            case "unix":   <br>                                    break;   <br>                            case "aix":   <br>                                    break;   <br>                            default:   <br>                                    $this->forWindows();   <br>                                    break;   <br>                    }                   <div class="clear">
                 
              
              
        
            </div>
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn