I am trying to generate a form using PHP
I want to have user fields but also have the IP posted as a hidden field
I have got this code :
<html>
<head>
<title>Atheist Republic Chatroom</title>
</head>
<body>
<?php
$ip = $_SERVER['REMOTE_ADDR'];
echo "<input type=\"hidden\"name=\"ip\"value=\"";
echo $ip;
echo "\">;
echo "<input type=\"submit\"value=\"submit\">";
?>
</body>
</html>
Why is this wrong?