strtoupper.php
2016-04-11 08:43
555 查看
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> strtoupper.php </title>
<meta charset="UTF-8">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<form method="post" action="">
<input type="text" name="usrname" value=<?php echo '"' . (isset($_POST["usrname"])?$_POST["usrname"]:"") . '"' ?> ><br>
<input type="submit">
</form>
<br>usrname:<br>
<?php
if(isset($_POST["usrname"]))
{
echo strtoupper($_POST["usrname"]);
}
?>
<hr>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> strtoupper.php </title>
<meta charset="UTF-8">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<script type="text/javascript">
function show_str()
{
str=document.getElementById("username").value;
alert(str.toUpperCase());
}
</script>
<form method="post" action="">
<input id="username" type="text" name="usrname" value=<?php echo '"' . (isset($_POST["usrname"])?$_POST["usrname"]:"") . '"' ?> ><br>
<input type="submit" onclick="show_str()">
</form>
<br>usrname:<br>
<?php
if(isset($_POST["usrname"]))
{
echo strtoupper($_POST["usrname"]);
}
?>
<hr>
</body>
</html>
<html>
<head>
<title> strtoupper.php </title>
<meta charset="UTF-8">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<form method="post" action="">
<input type="text" name="usrname" value=<?php echo '"' . (isset($_POST["usrname"])?$_POST["usrname"]:"") . '"' ?> ><br>
<input type="submit">
</form>
<br>usrname:<br>
<?php
if(isset($_POST["usrname"]))
{
echo strtoupper($_POST["usrname"]);
}
?>
<hr>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> strtoupper.php </title>
<meta charset="UTF-8">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<script type="text/javascript">
function show_str()
{
str=document.getElementById("username").value;
alert(str.toUpperCase());
}
</script>
<form method="post" action="">
<input id="username" type="text" name="usrname" value=<?php echo '"' . (isset($_POST["usrname"])?$_POST["usrname"]:"") . '"' ?> ><br>
<input type="submit" onclick="show_str()">
</form>
<br>usrname:<br>
<?php
if(isset($_POST["usrname"]))
{
echo strtoupper($_POST["usrname"]);
}
?>
<hr>
</body>
</html>
相关文章推荐
- div_mod.php
- php 爬虫如何爬取ajax异步加载文件
- php读取图片以二进制输出
- Win2008搭建Web和FTP服务
- 初识PHP(四)PDO对象配置于使用
- Forbidden You don't have permission to access /php/ on this server.
- 关于php上传文件
- Unable to load template file 'rj\ThinkPHP/Tpl/dispatch_jump.tpl'----thinkphp3.2.3
- PHP模板引擎Smarty中变量的使用方法示例
- PHP模板引擎Smarty之配置文件在模板变量中的使用方法示例
- PHP模板引擎Smarty内建函数foreach,foreachelse用法分析
- PHP模板引擎Smarty中的保留变量用法分析
- PHP读取mssql json数据中文乱码的解决办法
- PHP中如何防止外部恶意提交调用ajax接口
- PHP模板引擎Smarty自定义变量调解器用法
- PHP模板引擎Smarty内置变量调解器用法详解
- PHP模板引擎Smarty内建函数详解
- PHP模板引擎Smarty内建函数section,sectionelse用法详解
- PHP实现的浏览器检查类
- PHP实现的通过参数生成MYSQL语句类完整实例