This is a discussion on "Help!" within the PHP Forum section. This forum, and the thread "Help! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Help!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
I get an error:
Parse error: syntax error, unexpected '<' in /www/110mb.com/b/r/o/n/i/c/_/_/bronic/htdocs/Home.php on line 10 1 <?php 2 session_start(); 3 header("Cache-control: private"); 4 if ($_POST['username'] == $fuser && $_POST['password'] == $fpass){ 5 echo "You are logged in.<br />"; 6 echo "To view you profile <a href=\"Profile.php\">here</a>"; 7 echo " <br />"; 8 echo "Or logout <a href=\"logout.php\">here</a>"; 9 }else{ 10 <form name="login" method="post" action="Login.php?action=login"> 11 <p align="center">Login</p> 12 <p align="center"> 13 Username: 14 <input type="text" name="username"> 15 Password: 16 <input type="password" name="password"> 17 </p> 18 <p align="center"> 19 <input type="submit" name="Submit" value="Login"> 20 </p> 21 <p align="center">'Need a username? Register '<a href=\"Register.php">'here.'</a></p> 22 </form> 23 } 24 ?> Thanks -BRONIC Last edited by BRONIC; Jul 8th, 2007 at 17:25. |
|
|
|
|||
|
Re: Help!
You have switched from PHP program code to html without a ?> close tag, so that the server's PHP interpretter is trying to interpret your html.
Add ?> on the start or line 10 and <?php on the start of line 23 |
![]() |
| Tags |
| code, help, php |
| Thread Tools | |
|
|