dpzbzp8728 2014-11-12 11:04
浏览 30

单击按钮时显示标题框

I am wondering if there is a way to show a title box containing a message when you click a button,or as a better example,you have an input,and after php script evalute the value,and it's wrong,a title box will show up , saying "Wrong" ... Any ideas? Just with php if its possible!!

EDIT: What i am looking for,is not for a simple message like:

echo '<p></p>';

Of course i know how to do that,its basic... I was just wondering if a TITLE box can show up,like this:

  <input type=text title='Wrong'>

but after the value its evaluated...

  • 写回答

3条回答 默认 最新

  • doulou1989 2014-11-12 11:08
    关注

    You could achieve this by setting a GET or POST value with the button:

    html:

    <form method="post">
    <input type="hidden" name="postvalue" value="yes">
    </form>
    

    php:

    <?php
    if(isset($_POST['postvalue'])){
    echo "<p>messageboxtoshow</p>";
    }
    ?>
    

    however a solution with javascript would work way better and would look way more userfriendly, and this only works on page refresh.

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度