<html>
</head>
<body>
<?php
if ($_GET['submitted'] == "yes"){
if (trim ($_GET['yourname']) != ""){
echo "Your Name (with GET): " . $_GET['yourname'];
} else {
echo "You must submit a value.";
}
?><br /><a href="index.php">Try Again</a><?php
}
if ($_POST['submitted'] == "yes"){
if (trim ($_POST['yourname']) != ""){
echo "Your Name (with POST): " . $_POST['yourname'];
} else {
echo "You must submit a value.";
}
?><br /><a href="index.php">Try Again</a><?php
}
?>
<?php
if ($_GET['submitted'] != "yes" && $_POST['submitted'] != "yes"){
?>
<form action="index.php" method="get">
<p>get example:</p>
<input type="hidden" name="submitted" value="yes" />
Your Name: <input type="text" name="yourname" maxlength="150" /><br />
<input type="submit" value="Submit with GET"/>
</form>
<form action="index.php" method="post">
<p>POST Example:</p>
<div class="aritcle_card">
<a class="aritcle_card_img" href="/xiazai/code/10436">
<img src="https://img.php.cn/upload/webcode/000/000/014/176206860612637.jpg" alt="都来订网络外卖订餐系统">
</a>
<div class="aritcle_card_info">
<a href="/xiazai/code/10436">都来订网络外卖订餐系统</a>
<p>都来订网络外卖订餐系统致力于帮助专业从事餐饮外卖企业或有外卖业务的餐饮企业快速部署外卖订餐系统,拓展网络外卖订餐业务。简洁大方的界面、精准的楼宇定位系统、强大的菜单管理系统,人性化的订单处理系统等等,不仅能够帮助您提升企业形象、还为您提供了一套完整的网络外卖解决方案,配合适当的宣传方式可以获得实实在在的销量和用户黏度的提升。都来订网络外卖订餐系统区别于同类软件产品的独特性表现在:1、 简洁大方的界</p>
<div class="">
<img src="/static/images/card_xiazai.png" alt="都来订网络外卖订餐系统">
<span>0</span>
</div>
</div>
<a href="/xiazai/code/10436" class="aritcle_card_btn">
<span>查看详情</span>
<img src="/static/images/cardxiayige-3.png" alt="都来订网络外卖订餐系统">
</a>
</div>
<input type="hidden" name="submitted" value="yes" />
Your Name: <input type="text" name="yourname" maxlength="150" /><br />
<input type="submit" value="Submit with POST"/>
</form>
<?php
}
?>
</body>
</html>
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号