解码器统一字符链html、php、java、xml

解码器统一字符链html、php、java、xml,java,php,html,xml,Java,Php,Html,Xml,我试图构建一些包含文本输入和按钮的代码。当我提交表单时,我想显示一条消息 我的代码可以工作,但是当我超过平均1000行时,程序就不工作了,php显示了这个消息 Apache HTTP服务器已停止工作 我想尝试在函数上拆分程序,并对其进行更改以优化 代码 这是我要做的 if the first character is A and the second character is A display "GROUP1-1" else if the first character is A

我试图构建一些包含文本输入和按钮的代码。当我提交表单时,我想显示一条消息

我的代码可以工作,但是当我超过平均1000行时,程序就不工作了,php显示了这个消息

Apache HTTP服务器已停止工作

我想尝试在函数上拆分程序,并对其进行更改以优化

代码

这是我要做的

if the first character is A and the second character is A 
    display "GROUP1-1"

else if the first character is A and the second character is B
    display "GROUP1-2"

else if the first character is A and the second character is C
    display "GROUP1-3"  

else if the first character is A and the second character is D
    display "GROUP1-4"

else if the first character is B and the second character is A
    display "GROUP2-1"

else if the first character is B and the second character is B
    display "GROUP2-2"

else if the first character is B and the second character is C
    display "GROUP2-3"
我正在使用记事本++和EasyHP。 这是我的代码:

<html>
<head>
<meta charset="utf-8"/>
<title>
exercice 
</title>
</head>
<body>
<form action="" method="post">
decoder ces caracteres 
<input type = "text" name ="t" size="8"/>
<input type ="submit" name ="decoder" value="Decoder">
<?php
if(isset($_POST['t']))
{
if(($_GET['t'][0]=='A')&&($_POST['t'][1]=='A')) {
echo "GROUP1-1"; 
}
else 
if(($_GET['t'][0]=='A')&&($_POST['t'][1]=='B')) {
echo "GROUP1-2"; 
}
else 
if(($_GET['t'][0]=='A')&&($_POST['t'][1]=='C')) {
echo "GROUP1-3"; 
}
if(($_GET['t'][0]=='A')&&($_POST['t'][1]=='D')) {
echo "GROUP2-1"; 
}
else 
if(($_GET['t'][0]=='B')&&($_POST['t'][1]=='A')) {
echo "GROUP2-1"; 
}
else 
if(($_GET['t'][0]=='B')&&($_POST['t'][1]=='B')) {
echo "GROUP2-2"; 
}
else 
if(($_GET['t'][0]=='B')&&($_POST['t'][1]=='C')) {
echo "GROUP2-3"; 
}
else
{ 
echo"erreur";
}
}
?>
</form>
</body>
</html>

练习
字符解码器

您在if/elseif/else块中缺少了一个与最后一个
else
一起的
{
。该标题应该是英文的吗?您好,Andreas,您认为最好将标题更改为解码字符串html、php、java、xml