第二双眼睛,简单? [英] 2nd pair of eyes, simple ?

查看:94
本文介绍了第二双眼睛,简单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读了一本书的一章。我试过这个。它没有做我想的那样它应该是b $ b。为什么?


< ;?

$ zipRaw = $ _GET [''zipRaw_name''];

if(!empty ($ zipRaw)){


$ valid = $ zValid = checkLength($ zipRaw,1,5);


if($ valid ){

标题(位置:http://www.yahoo.com");

退出;

}其他{

echo("< html>< head>< / head>< body> zipRaw =");

echo($ zipRaw);

echo("< br>< / body>");

}

}

? >

我得到


zipRaw ="); echo($ zipRaw); echo(

);在浏览器窗口中显示
。>

如果我将echo更改为print()也是一样。

并且header()永远不会工作,即使我只是将它添加为第一行,

没有条件测试。叫我一无所知。晚了。 TIA

I read a chapter of a book. I tried this. Its not doing what I thought
it should. Why?

<?
$zipRaw = $_GET[''zipRaw_name''];
if ( !empty($zipRaw) ) {

$valid = $zValid = checkLength($zipRaw, 1, 5);

if ($valid) {
header( "Location:http://www.yahoo.com");
exit;
} else {
echo( "<html><head></head><body> zipRaw = ");
echo( $zipRaw );
echo( " <br></body>" );
}
}
?>
I get

zipRaw = "); echo( $zipRaw ); echo( "
" ); } } ?>

in the Browser window. Same if I change echo to print().
And header() never works, ever, even if I just add it as the first line,
no conditional tests. call me clueless. its late. TIA

推荐答案

zipRaw =


_GET [''zipRaw_name''];

if(!empty(
_GET[''zipRaw_name''];
if ( !empty(


zipRaw)){

zipRaw) ) {


这篇关于第二双眼睛,简单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆