Jump to content
php.lv forumi

SQL PROBLEMA


davids

Recommended Posts

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>

Link to comment
Share on other sites

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">

...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...