当我在浏览器中加载页面时,我的标签消失了,这导致我的表单无法正常工作,为什么有什么主意?我尝试使用不同的浏览器,但得到的结果相同。
<?php
session_start();
if(!isset($_SESSION["username"])){
header("location: login/loginform.php");
}else{
echo "Du är inloggad som " . $_SESSION["username"];
}
?>
<html>
<head
<meta charset="utf-8">
</head>
<body
<form action="registerProduct.php" method="post">
Namn: <input type="text" name="prodName"><br>
Artikelnummer: <input type="text" name="prodNamenr"><br>
Pris: <input type="text" name="prodPrice"><br>
Bildlänk: <input type="text" name="prodImg"><br>
Lagerstatus: <input type="text" name="prodStatus"><br>
Beskrivning: <input type="text" name="prodDescrip"><br>
<input type="submit" value="submit">
</form>
</body>
</html>
您必须关闭您的<head>
和<body>
标签!
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句