Thinking i hade the right idea i came up with this:
(i have added the line numbers so its easy to see.)
193 <?
194 if(!$_SESSION['username']){
195 echo " <form action="getin.php" method="POST">
196 Username: <input type="text" name="username">
197 Password: <input type="password" name="password" >
198 <input type="submit" value="submit" name="submit">
199 </form>
200 ";
201 }else{
202 echo "<div align="center"><form method="POST" action="logout.php">
203 <input type="submit" name="submit" value="logout">
204 </form></div></p>";
205 }
206 ?>
But I had this error:
Quote
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/pixels/public_html/idarkness/index.php on line 195
