这是编程最基本的东西了,还拿出来说?<?
print "<html>
<head>
<title>";
?>
test</title>
</head>
<body color=<? print $color; ?>>
....
print "<html>
<head>
<title>";
?>
test</title>
</head>
<body color=<? print $color; ?>>
....
调试欢乐多
嘻嘻~~
我是菜鸟哦~~学php不过才1个月~
不过自我感觉已经达到熟悉php的水平了~
<input type="checkbox" name="aomeng" Value="冰雪六月" id="male" >你觉得这两行有什么区别吗?
你觉得会有文章吗?比如:
<? $flag=($xuanlemeiyou?"checked":"") ?>
<input type="checkbox" name="aomeng" Value="冰雪六月" id="male" <? echo $flag ?>>当然我只是举的最简单的例子。还有其他的,还多呢,慢慢再体会吧。
象我现在写的系统,我把大部分的HTML包含在了PHP的函数中,这样一个就能象C语言一样写PHP的程序了,而且可读性也提高了不少,最关键是维护型好了