Home > Backend Development > PHP Tutorial > PHP+txt程序或是PHP+JS都行,小弟我想做一个眼跳的小程序(只要程序)多谢

PHP+txt程序或是PHP+JS都行,小弟我想做一个眼跳的小程序(只要程序)多谢

WBOY
Release: 2016-06-13 10:07:34
Original
1587 people have browsed it

PHP+txt程序或是PHP+JS都行,我想做一个眼跳的小程序(只要程序)谢谢


下拉菜单12个 库是1.txt 库里12行 库里数据按行算与下接菜单一一对应。

例如:当选下拉菜单1时,子时(23点到凌晨1点前) 点提交按钮。

左眼跳显示1意外之喜降临
右眼跳有人请你吃饭

以此类推。谢谢



也可以用PHP+JS的。。我只要代码。谢谢

------解决方案--------------------
直接使用 php 完成该动作。

txt.php 
$eyes=array(
array(1左,1右),
array(2左,2右),
array(3左,3右),
); 

show.php
select name=eyes
option value = 0 子时 
option value = 1 丑时 

action.php
导入txt.php 
输出 $eyes[post(get)eyes.value][0] 为左眼信息
输出 $eyes[post(get)eyes.value][1] 为右眼信息

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template