亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 9206 | 回復(fù): 3
打印 上一主題 下一主題

html顯示php中變量的值 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2015-03-19 17:28 |只看該作者 |倒序?yàn)g覽
以前從來沒有做過網(wǎng)頁開發(fā)之內(nèi),由于此次項(xiàng)目突然要求需要有一個(gè)web配置界面,都沒人會(huì)做,然后我就不幸的攤上這事了.現(xiàn)在遇到一個(gè)問題,還望大神幫忙解答一下,越詳細(xì)越好!

web架構(gòu):uhttp+mysql+php

前端找人幫忙做的純html頁面,現(xiàn)在要把mysql里面的數(shù)據(jù),顯示到html頁面上面

現(xiàn)在有2個(gè)文件,Status.php和Status.html,我想在顯示Status.html頁面的時(shí)候,能夠通過Status.php自動(dòng)獲取到數(shù)據(jù)庫里面的值,顯示到頁面上
文件一:
Status.php
<?php
//讀取數(shù)據(jù)庫......
//假如我們?nèi)〉搅嗽O(shè)備id
$sys_id="000001";
?>
文件二:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<link href="../css/main.css" rel="stylesheet">
</head>

<body marginwidth="0" marginheight="0">
<form action="StatusRpm.html" method="get">
<table>
<tbody>
<tr>
<td class="h1" colspan="3">系統(tǒng)信息</td>
</tr>
<tr>
<td class="blue" colspan="3"></td>
</tr>
<tr>
<td class="h2" colspan="3">系統(tǒng)狀態(tài)</td>
</tr>
<tr>
<td class="Item">設(shè)備ID:</td>
<td><div>$sys_id</div></td>
</tr>
<tr>
<td class="Item">硬件版本:</td>
<td><div>$hardware_version</div></td>
</tr>
<tr>
<td class="Item">軟件版本:</td>
<td><div>$software_version</div></td>
</tr>
<tr>
<td class="Item">系統(tǒng)運(yùn)行狀態(tài):</td>
<td><div>$sys_status</div></td>
</tr>
<tr>
<td class="blue" colspan="3"></td>
</tr>
<tr>
<td class="h2" colspan="3">LAN口狀態(tài)</td>
</tr>
<tr>
<td colspan="3"><table border="0">
<!-- 0不顯示邊框 -->
<tbody>
<tr>
<td class="ListTC2" width="30%">接口名</td>
<td class="ListTC2" width="30%">IP地址</td>
<td class="ListTC2">子網(wǎng)掩碼</td>
<td class="ListTC2">網(wǎng)關(guān)</td>
</tr>
<tr>
<td class="ListC2">$eth_name</td>
<td class="ListC2">$ip</td>
<td class="ListC2">$netmask</td>
<td class="ListC2">$gateway</td>
</tr>
<tr>
<td class="ListC2">$eth_name</td>
<td class="ListC2">$ip</td>
<td class="ListC2">$netmask</td>
<td class="ListC2">$gateway</td>
</tr>
</tbody>
</table></td>

</tr>
<tr>
<td class="blue" colspan="3"></td>
</tr>
<tr>
<td></td>
<td><input name="refresh" class="button" type="button" id="refresh" value="刷新" onclick="return doRefresh();"></td>
</tr>
</tbody>
</table>
</form>

<script type="text/javascript" src="../js/main.js"></script>
<script type="text/javascript">
function doRefresh() {
location.href = "StatusRpm.html";
return true;
}
</script>
</body>
</html>

如何才能在顯示Status.html的時(shí)候,設(shè)備ID一欄,自動(dòng)就顯示的00001呢?求大神解答,最好直接幫我改出來,我對這個(gè)基本完全不懂.

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2015-03-22 10:42 |只看該作者
八寶水軍頭領(lǐng)!

論壇徽章:
1
2015年迎新春徽章
日期:2015-03-04 10:17:37
3 [報(bào)告]
發(fā)表于 2015-04-18 22:08 |只看該作者
用ajax可以實(shí)現(xiàn)

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2015-05-02 20:18 |只看該作者
提示: 作者被禁止或刪除 內(nèi)容自動(dòng)屏蔽
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP