Autor Zpráva
C.Ronaldo
Profil *
prosim vas pozrite uz sa s tym paprem 5 hodin a neviem ako dat meno na svoje miesto
tu je script

<HTML>
<HEAD>
<TITLE>ss_06_08_2003_8</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<link rel="stylesheet" href="main.css" type="text/css">
<style type="text/css">
<!--
.style1 {color: #999999}
.style2 {color: #FF0000}
-->
</style>
</HEAD>


<head>

</head>
<body>
<table width="780" border="0" cellspacing="0" cellpadding="0"><html>
<head><body><table border=0 width=100% height=100% cellpading=0 cellspacing=0>
<tr>
<td width=100% height=100% align=center>

<div align="center">
<table border=0 width=80% bgcolor=white class=tbb>
<form method=post action=login.php>

<?
if (IsSet($chyba)):
?>

<tr>
<td colspan=2 align=center><b style=color:red></td>
</tr>

<?
endif;
?>


<tr>
<td width="337"><img src="images/index_01.jpg" width=336 height=95 alt=""></td>
<td width="416" valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/index_02.gif" height="30">&nbsp;</td>
</tr>
<tr>
<td background="images/index_09.gif"><a href="#"><img src="images/index_04.gif" width=90 height=47 alt="" border="0"></a><a href="#"><img src="images/index_05.gif" width=88 height=47 alt="" border="0"></a><a href="#"><img src="images/index_06.gif" width=86 height=47 alt="" border="0"></a><a href="#"><img src="images/index_07.gif" width=65 height=47 alt="" border="0"></a><a href="#"><img src="images/index_08.gif" width=86 height=47 alt="" border="0"></a></td>
</tr>
</table> </td>
</tr>
</table>
<table width="780" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swfl ash.cab#version=6,0,29,0" width="778" height="153">
<param name="movie" value="1.swf">
<param name="quality" value="high">
<embed src="1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="778" height="153"></embed></object></td>
</tr>
</table>
<table width="780" border="0" cellspacing="0" cellpadding="0" background="images/index_14.gif">
<tr>
<td width="161">&nbsp;</td>
<td width="538">&nbsp;</td>
<td width="81"><a href="#"><img src="images/index_16.gif" width=22 height=35 alt="" border="0"></a><a href="#"><img src="images/index_17.gif" width=27 height=35 alt="" border="0"></a><a href="#"><img src="images/index_18.gif" width=23 height=35 alt="" border="0"></a></td>
</tr>
</table>
<table width="780" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="161" background="images/index_20.gif">&nbsp;</td>
<td background="images/index_28.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/index_25.gif"><img src="images/index_24.gif" width=335 height=47 alt=""></td>
</tr>
</table>
<table width="618" height="34" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="618" height="34"><table width="200" border="1">
<tr>
<th height="28" scope="row"><?
include("config.php");
$spojeni=mysql_connect($MySQL_server,$MySQL_user,$MySQL_user_password) ;
$spojenidb=mysql_select_db($MySQL_db);
if (!$spojeni)
{
echo"Nepodarilo se navazat spojeni se serverem.";
exit;
}

$zob="ne";
if($odeslano=="ano"){

// test vyplnenych udaju
if($meno==""){
$zob="ano";
echo "<FONT color=\"FUCHSIA\"><b>Chyba: </b>Nebolo vyplnené meno</FONT><br>";
}

if($nick==""){
$zob="ano";
echo "<FONT color=\"FUCHSIA\"><b>Chyba: </b>Nebol zvolený nick</FONT><br>";
}

if($heslo1==""){
$zob="ano";
echo "<FONT color=\"FUCHSIA\"><b>Chyba: </b>Zvol si heslo</FONT><br>";
}

if($heslo1!=$heslo2){
$zob="ano";
echo "<FONT color=\"FUCHSIA\"><b>Chyba: </b>Heslá sa nezhodujú</FONT><br>";
}

if($mail=="" or $mail=="@"){
$zob="ano";
echo "<FONT color=\"FUCHSIA\"><b>Chyba: </b>Nebol vyplnený e-mail</FONT><br>";
}

@$bb = MySQL_Query("SELECT * FROM". $MySQL_tabulka . "WHERE nick='$nick';");
@$aa=MySQL_Fetch_Array($bb);
if($aa[id]!=""){
$zob="ano";
echo "<FONT color=\"FUCHSIA\"><b>Chyba: </b>Nick už niekto používa zvolte iný. Zvolte si prosím jiný nick.</FONT><br>";
}

}else $zob="ano";


if($zob=="ano"){

?>
<?echo'<TD nowrap align="right">

<FONT color="RED"><b>Meno:</b></font><TD nowrap><INPUT type="text" name="meno" value="'.$meno.'" maxlength="30">';

echo'<tr>';
echo'<TD nowrap align="right"><FONT color="RED"><b>Nick:</b></font><TD nowrap><INPUT type="text" name="nick" value="'.$nick.'" maxlength="20">';
echo'<tr>';
echo'<TD nowrap align="right"><FONT color="RED"><b>Heslo:</b></font><TD nowrap><INPUT type="password" name="heslo1" maxlength="25">';
echo'<tr>';
echo'<TD nowrap align="right"><FONT color="RED"><b>Opakuj heslo:</b></font><TD nowrap><INPUT type="password" name="heslo2" maxlength="25">';
echo'<tr>';
if($mail=="") $mail="@";
echo'<TD nowrap align="right"><FONT color="RED"><b>E-Mail:</b></font><TD nowrap><INPUT type="text" name="mail" value="'.$mail.'" maxlength="35">';
?>
<INPUT name="submit" type="submit" value=" R e g i s t r u j ">
<INPUT type="hidden" name="odeslano" value="ano">
<?}else{

MySQL_Query("INSERT INTO $MySQL_tabulka VALUES('$jmeno','$nick','$heslo1','$mail'");
echo MySQL_error();
echo"<FONT color=\"darkred\" size=\"+1\">Registrace dokončena</FONT>";
echo"<br><br>Poznamenejte si prosím Vámi zvolené uživatelské jméno a heslo na bezpečné místo(nejlépe zapamatovat). Pokud tyto 2 údaje zapomenete, nebudete moci se ke svému účtu přihlásit.";
echo"<br><br><br>Teraz sa už len stačína <A href=\"index.php\">hlavnej stránke</A> přihlásit.";
}?></th>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
</table>
<table width="780" border="0" cellspacing="0" cellpadding="0" height="34" background="images/index_48.gif">
<tr>
<td>&nbsp;
C.Ronaldo
Profil *
Kde robim chybu pls
C.Ronaldo
Profil *
Naozaj moc prosim som v koncoch
Acci
Profil
1) Co ti na tom nefunguje?
2) Tohle není chat, pokud ti někdo do minuty neodpoví, nemusíš psát znovu
C.Ronaldo
Profil *
to ze to meno je inde ako ma byt
Anonymní
Profil *
no mas ich tam dost niektore napr
}else $zob="ano";
<?}else{
C.Ronaldo
Profil *
prosim ta oznac mi kde su tie chyby farebne
Anonymní
Profil *
sorry ale je to dost neprehladne.. nech pozeram na to ako chcem nevyznam sa vtom, zapni si zobrazovanie chyb
C.Ronaldo
Profil *
a to kde pls
Anonymní
Profil *
dakde na zaciatku skriptu:
error_reporting(E_ALL);
alebo potom php.ini
error_reporting = E_ALL
C.Ronaldo
Profil *
uz som to vyriesil
Toto téma je uzamčeno. Odpověď nelze zaslat.

0