Home >Backend Development >PHP Tutorial > 值传送
值传递
以下代码可以取出本机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>