测试两个字段是否包含数据 [英] Testing if two fields have data in them

查看:102
本文介绍了测试两个字段是否包含数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图测试是否同时输入了两个字段

我尝试了很多组合但是无法得到它。我最后的努力是

if(isset($ _ POST [''Link'']&& isset($ _ POST [''uploadedfile''])){

die(''你不能选择同时上传链接和文件。'');

}

else

{

STUFF HERE;

}


但仍然无法让它工作


帮助赞赏


Ian

Im trying to test if two fields have been entered at the same time
I have tried many combinations but cant get it. My last effort was
if(isset($_POST[''Link''] && isset($_POST[''uploadedfile''])){
die(''You can\''t select to upload a link and a file at the same time.'');
}
else
{
STUFF HERE;
}

but still cant get it to work

Help appreciated

Ian

推荐答案

_POST [''Link'' ]&& isset(
_POST[''Link''] && isset(


_POST [''uploadedfile''])){

die(''你不能选择同时上传链接和文件。'');

}

其他

{

STUFF在这里;

}


但是仍然无法让它工作


帮助赞赏


Ian
_POST[''uploadedfile''])){
die(''You can\''t select to upload a link and a file at the same time.'');
}
else
{
STUFF HERE;
}

but still cant get it to work

Help appreciated

Ian


>我试图测试是否同时输入了两个字段
>Im trying to test if two fields have been entered at the same time
我有trie很多组合,但不能得到它。我最后的努力是

if(isset(
I have tried many combinations but cant get it. My last effort was
if(isset(


这篇关于测试两个字段是否包含数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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