页面跳转后提示HTTP 异常 500(Internal Server Error):服务器尝试执行请求时遇到了意外情况

不言
Libérer: 2023-02-28 14:16:02
original
7756 Les gens l'ont consulté

  页面跳转后提示HTTP 错误 500(Internal Server Error):服务器尝试执行请求时遇到了意外情况。
index.php跳转到chkadmin.php提示(服务器错误
网站在检索 http://localhost/shop/admin/chkadmin.php 时遇到错误。 该网站可能关闭进行维护或配置不正确。
以下是一些建议:
请稍后重新加载此网页。
HTTP 错误 500(Internal Server Error):服务器尝试执行请求时遇到了意外情况。)

index.php代码:

<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/font.css?7.1.34" rel="stylesheet">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<p> </p>
<p> 
</p>
<p> </p>
<p> </p>
<p> </p>
<script language="javascript">
function chkinput(form){
if(form.name.value==""){
alert("请输入用户名!");
form.name.select();
return(false);
}
if(form.pwd.value==""){
alert("请输入用户密码!");
form.pwd.select();
return(false);
}
return(true);
}
</script>
<form name="form1" method="post" action="chkadmin.php" onSubmit="return chkinput(this)">
<table width="545" border="0" align="center" cellpadding="0" cellspacing="0" id="__01">
<tr>
<td height="226" background="images/default_01.gif"> </td>
</tr>
<tr>
<td height="45" align="right" background="images/default_02.gif">
<table width="407" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="57" align="center">用户名:</td>
<td width="94" align="center"><input type="text" name="name" size="14" maxlength="20" class="inputcss"></td>
<td width="53" align="center"> 密 码:</td>
<td width="104" align="center"><input type="password" name="pwd" size="14" maxlength="20" class="inputcss"></td>
<td width="99"> 
<input name="imageField" type="image" src="images/default_07.gif" width="74" height="24" border="0"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="23" background="images/default_04.gif"></td>
</tr>
</table>
</form>
</body>
</html>
Copier après la connexion

chkadmin.php代码

<?php

class chkinput
{
var $name;
var $pwd;

function chkinput($x,$y)
{
$this->name=$x;
$this->pwd=$y;
}

function checkinput()
{
Copier après la connexion


Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!