我需要一些帮助,例如,index.php和,我需要让它像这样。有人访问:
index.php?search=blbla
include search.php
else
include home.php我需要一个建议,谢谢
发布于 2012-09-24 21:01:36
<?php
//if($_GET['search'] > ""){ // this will likely cause an error
if(isset($_GET['search']) && trim($_GET['search']) > ""){ // this is better
include ('search.php');
}else{
include ('home.php');
}
?>https://stackoverflow.com/questions/12565532
复制相似问题