Does anyone knows here how they did this? http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_button_value2. Unfortunately, it is not part of their tutorial. Sorry for the question , I am just a beginner and I want to understand these things. Thank you.
1条回答 默认 最新
- duanlou2917 2013-10-10 20:22关注
There are numerous tutorials out there ... This could be as simple as:
<?php if(isset($_GET['subject'])): ?> <?= 'You chose: ' . $_GET['subject']; ?> <?php else: ?> <html> <body> <form method="get" action="<?= $_SERVER['PHP_SELF']; ?>"> Choose your favorite subject: <button type="submit" name="subject" value="fav_HTML">HTML</button> <button type="submit" name="subject" value="fav_CSS">CSS</button> </form> </body> </html> <?php endif; ?>
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 shape_predictor_68_face_landmarks.dat
- ¥15 slam rangenet++配置
- ¥15 有没有研究水声通信方面的帮我改俩matlab代码
- ¥15 对于相关问题的求解与代码
- ¥15 ubuntu子系统密码忘记
- ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
- ¥15 保护模式-系统加载-段寄存器
- ¥15 电脑桌面设定一个区域禁止鼠标操作
- ¥15 求NPF226060磁芯的详细资料
- ¥15 使用R语言marginaleffects包进行边际效应图绘制