测试两个字段是否包含数据

编程入门 行业动态 更新时间:2024-10-27 00:22:55
本文介绍了测试两个字段是否包含数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图测试是否同时输入了两个字段 我尝试了很多组合但是无法得到它。我最后的努力是 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(

更多推荐

测试两个字段是否包含数据

本文发布于:2023-11-07 04:20:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1565559.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字段   两个   测试   数据

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!