简单问题(PHP处理) [英] Simple Problem(PHP PROCESSING)

查看:61
本文介绍了简单问题(PHP处理)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
我想做一个php页面,该页面根据html选择来实现函数
HTML代码

Hello
I want to do a php page that prrform a function depending on html selection
HTML code

Service:<select name="service" size="1">
<option>New Code</option>
<option>Delete Code</option>
<option>Add Credits</option>
<option>Check Credit</option>
</select>


PHP代码;


PHP code;

$service=$_REQUEST['service'];
if ($service="new code"){newcode();}
elseif ($service="delte code"){deletecode();}
function newcode()
{
echo("New Code");
} 
function deletecode()
{
echo("Delete Code");


如果我选择新代码或删除代码,则会在PHP页面上回显带有Mew代码的代码
请帮忙
在此先感谢


If i choose new code or delete code i get on the PHP page Echo with mew code
Please help
Thanks in advance

推荐答案

service =
service=


_REQUEST [' 服务']; 如果(
_REQUEST['service']; if (


service = " ){newcode();} elseif(
service="new code"){newcode();} elseif (


这篇关于简单问题(PHP处理)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆