davids Posted March 25, 2009 Report Share Posted March 25, 2009 Palidziet ludzu ar ERRORU,jau kuro dienu netieku skaidriba,kas tas par suudu,kompi parinstaleju,SQL ari ka arii xaamp webserveri,bet shaa vai taa erroru met. www.golum.lv reku web <?php if (isset($_COOKIE['login'])) { echo '<div align="center"><form name="form1" method="post1" action="logout.php">Welcome '; echo '<b><u>'; echo $login; echo '</b></u><br />'; echo '<br /><b>Services are in the Menu.<br /></b>'; echo '<a href=index.php?pg=user class=side>Personal Top</a></div><br />'; echo '<input type="submit" name="Submit" value="Logout" class="button"></form><br />'; } else { echo ?> <---------- Shinii rindaa met erroru!!!!! <form method="post" action="login.php"> <table border="0" width="100%"> <tr> <td align="left"><font color="#FFFFFF">Login</font></td> <td width="84"> <input id="login" size="16" maxlength="15" name="login" class="textbox"></td> </tr> Quote Link to comment Share on other sites More sharing options...
marcis Posted March 25, 2009 Report Share Posted March 25, 2009 (edited) Loģiski, rindiņa nav pabeigta. else { ?> Laikam sapratu ko tu mēģināji panākt, bet varu paskaidrot, ka viss, kas ir ārpus <? ?> tagiem automātiski tiek izvadīts uz ekrāna. Edited March 25, 2009 by marcis Quote Link to comment Share on other sites More sharing options...
tomaac Posted March 25, 2009 Report Share Posted March 25, 2009 manuprāt, echo tur ir liekts, jo kā jau teica - viss, kas ārpus <?php ?> tiek tāpat drukāts (tur nevajaga echo). Tas šitā sanāk: else { ?> <form method="post" action="login.php"> <table border="0" width="100%"> <tr> <td align="left"><font color="#FFFFFF">Login</font></td> <td width="84"> <input id="login" size="16" maxlength="15" name="login" class="textbox"></td> </tr> <?php } t.i., divi varianti: 1) vajaga echo <?php ... echo '<form method="post" action="login.php">'; ... ?> 2) nevajaga echo <?php ... ?> <form method="post" action="login.php"> ... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.