Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Strona Pytanie


Rekomendowane odpowiedzi

Opublikowano

Witam mam swoja strone na serwerze ale da sie zarejstrowac bez wpisania niczego jak to zablokować??

 

 

 

 

 

Doda ktoś do tego kod usunięcia postaci i zrobi tak aby nie dało się zrobić konta bez wypełnionych kratek?? 6x LIKE

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<head>
<title>Moj Serwer  :))))</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body bgcolor="#000000">
<center>
<table id="Tabela_01" width="981" border="0" cellpadding="0" cellspacing="0">
<tr>
<!-- Header -->
<td colspan="13">
<a href="index.php"><img id="obraz_01" src="images/header.gif" width="770" height="229" alt="" /></a></td>
<!-- Status -->
<td colspan="5" background="images/status_serwera.gif" width="210" height="229" alt="" />
<font color="white"><font size="2">
<?php
include('status.php');
?>
</font>
</td>
<td>
<img src="images/spacer.gif" width="1" height="229" alt="" /></td>
</tr>
<tr>
<!-- Menu -->
<td colspan="3">
<img id="obraz_03" src="images/l_menu.gif" width="92" height="53" alt="" /></td>
<td colspan="2">
<a href="index.php"><img id="obraz_04" src="images/strona_glowna.gif" width="155" height="53" alt="Strona Główna" /></a></td>
<td colspan="2">
<a href="sieci.php"><img id="obraz_05" src="images/sieci_hamachi.gif" width="147" height="53" alt="Sieci Hamachi" /></a></td>
<td>
<a href="rejestracja.php"><img id="obraz_06" src="images/rejestracja.gif" width="126" height="53" alt="Rejestreacja" /></a></td>
<td>
<a href="pobierz.php"><img id="obraz_07" src="images/pobierz.gif" width="88" height="53" alt="Pobierz" /></a></td>
<td colspan="2">
<a href="/forum"><img id="obraz_08" src="images/forum.gif" width="79" height="53" alt="Forum" /></a></td>
<td colspan="3">
<a href="ranking.php"><img id="obraz_09" src="images/ranking.gif" width="96" height="53" alt="Ranking" /></a></td>
<td>
<a href="kontakt.php"><img id="obraz_10" src="images/kontakt.gif" width="96" height="53" alt="Kontakt" /></a></td>
<td colspan="3">
<img id="obraz_11" src="images/p_menu.gif" width="101" height="53" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="53" alt="" /></td>
</tr>
<tr>
 
<td>
<img src="images/spacer.gif" width="1" height="31" alt="" /></td>
</tr>
<tr>
<td rowspan="2"></td>
<td rowspan="2"></td>
 
<td colspan="2" rowspan="2" background="images/nawigacja.gif" width="203" height="329" alt="" /><br />
   <a href="index.php">›› Strona Główna</a><br /><br/>
   <a href="rejestracja.php">›› Rejestracja</a><br /><br />
   <a href="pobierz.php">›› Pobierz</a><br /><br />
   <a href="/forum">›› Forum</a><br /><br />
   <a href="ranking.php">›› Ranking</a><br /><br />
   <a href="kontakt.php">›› Kontakt</a></td></td>
<td colspan="2" rowspan="2"></td>
 
<td colspan="4">
<img id="obraz_15" src="images/rejestracja_srodek.png" width="399" height="32" alt="News" /></td>
<td colspan="2" rowspan="2"></td>
 
<td colspan="4" rowspan="2">
<img id="obraz_16" src="images/boczny_ranking.gif" width="199" height="329" alt="" /></td>
<td rowspan="2"></td>
<td rowspan="2"></td>
<td>
<img src="images/spacer.gif" width="1" height="32" alt="" /></td>
</tr>
<tr>
 
<td colspan="4" rowspan="2" background="images/tlo_news.gif" width="399" height="345" alt="" />
<?php 
include('config.php');
if(isset($_POST['submit']) && $_POST['submit'] == 'Zarejestruj') {
$username = mysql_real_escape_string($_POST['username']);
$password = mysql_real_escape_string($_POST['password']);
$rl_name = mysql_real_escape_string($_POST['rl_name']);
$email = mysql_real_escape_string($_POST['email']);
 
$sql = "INSERT INTO account SET login = '".$username."', password = PASSWORD('".$password."'), real_name = '".$rl_name."', email = '".$email."'";
$result = mysql_query($sql);
if($result) { echo '<script type="text/javascript">alert("NAZWA SERWERA MOJEGO BLABLA ITD :D");</script>'; }
else { echo '<script type="text/javascript">alert("Ten login jest już zajęty na naszym serwerze!.");</script>'; }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2" />
<meta name="description" content="Registration" />
<meta name="keywords" content="some, keywords, comes, later" />
<meta name="language" content="en" />
<meta name="robots" content="index,follow" />
<meta name="author" content="S3cr3t" />
<meta name="revisit-After" content="5 days" />
<meta name="distribution" content="local" />
<style type="text/css">
</style>
<script type="text/javascript">
if (top.frames.length != 0)
top.location=self.location;
</script>
</head>
<body>
<div id="container">
<div id="text">
<form action="rejestracja.php" method="post">
<font color="white">
<center>Login:  <center><input type="text" name="username" size="25" /><br /><br /></center>
<center>Hasło:  <center><input type="password" name="password" size="25" /><br /><br /></center>
<center>Imię:  <center><input type="text" name="rl_name" size="25" /><br /><br /></center>
<center>E-Mail:  <center><input type="text" name="email" size="25" /><br /><br /><br /></center>
<center><input type="submit" name="submit" value="Zarejestruj" />    <input type="reset" name="submit" value="Reset" /><br /><br /></center>
</font>
</form>
</div>
</div>
</body>
</html>
</td>
<td>
<img src="images/spacer.gif" width="1" height="297" alt="" /></td>
</tr>
<tr>
<td colspan="6" rowspan="2"></td>
<td colspan="8" rowspan="2"></td>
<td>
<img src="images/spacer.gif" width="1" height="48" alt="" /></td>
</tr>
<tr>
 
<td colspan="4" background="images/stopka.gif" width="399" height="54" alt="" />
<center><font size="2"><font color="white">delte 
<a href="index.php">DELETE</a><br />
</td>
<td>
<img src="images/spacer.gif" width="1" height="54" alt="" /></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="1" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="28" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="63" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="140" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="15" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="34" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="113" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="126" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="88" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="72" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="7" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="44" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="39" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="13" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="96" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="51" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="49" height="1" alt="" /></td>
<td></td>
</tr>
</table>
</center>
</body>
</html>

Like it +

 
Opublikowano

W kodzie php musisz dodać instrukcje, która będzie mówiła, że nalży uzupełnić pola aby dokończyć rejestrację.

heh nie zbyt umiem to napisać :(

pomoże ktoś jak sam zrobie to dam edit

 

Doda ktoś do tego kod usunięcia postaci i zrobi tak aby nie dało się zrobić konta bez wypełnionych kratek?? 6x LIKE

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<head>
<title>Moj Serwer :))))</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body bgcolor="#000000">
<center>
<table id="Tabela_01" width="981" border="0" cellpadding="0" cellspacing="0">
<tr>
<!-- Header -->
<td colspan="13">
<a href="index.php"><img id="obraz_01" src="images/header.gif" width="770" height="229" alt="" /></a></td>
<!-- Status -->
<td colspan="5" background="images/status_serwera.gif" width="210" height="229" alt="" />
<font color="white"><font size="2">
<?php
include('status.php');
?>
</font>
</td>
<td>
<img src="images/spacer.gif" width="1" height="229" alt="" /></td>
</tr>
<tr>
<!-- Menu -->
<td colspan="3">
<img id="obraz_03" src="images/l_menu.gif" width="92" height="53" alt="" /></td>
<td colspan="2">
<a href="index.php"><img id="obraz_04" src="images/strona_glowna.gif" width="155" height="53" alt="Strona Główna" /></a></td>
<td colspan="2">
<a href="sieci.php"><img id="obraz_05" src="images/sieci_hamachi.gif" width="147" height="53" alt="Sieci Hamachi" /></a></td>
<td>
<a href="rejestracja.php"><img id="obraz_06" src="images/rejestracja.gif" width="126" height="53" alt="Rejestreacja" /></a></td>
<td>
<a href="pobierz.php"><img id="obraz_07" src="images/pobierz.gif" width="88" height="53" alt="Pobierz" /></a></td>
<td colspan="2">
<a href="/forum"><img id="obraz_08" src="images/forum.gif" width="79" height="53" alt="Forum" /></a></td>
<td colspan="3">
<a href="ranking.php"><img id="obraz_09" src="images/ranking.gif" width="96" height="53" alt="Ranking" /></a></td>
<td>
<a href="kontakt.php"><img id="obraz_10" src="images/kontakt.gif" width="96" height="53" alt="Kontakt" /></a></td>
<td colspan="3">
<img id="obraz_11" src="images/p_menu.gif" width="101" height="53" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="53" alt="" /></td>
</tr>
<tr>
 
<td>
<img src="images/spacer.gif" width="1" height="31" alt="" /></td>
</tr>
<tr>
<td rowspan="2"></td>
<td rowspan="2"></td>
 
<td colspan="2" rowspan="2" background="images/nawigacja.gif" width="203" height="329" alt="" /><br />
   <a href="index.php">›› Strona Główna</a><br /><br/>
   <a href="rejestracja.php">›› Rejestracja</a><br /><br />
   <a href="pobierz.php">›› Pobierz</a><br /><br />
   <a href="/forum">›› Forum</a><br /><br />
   <a href="ranking.php">›› Ranking</a><br /><br />
   <a href="kontakt.php">›› Kontakt</a></td></td>
<td colspan="2" rowspan="2"></td>
 
<td colspan="4">
<img id="obraz_15" src="images/rejestracja_srodek.png" width="399" height="32" alt="News" /></td>
<td colspan="2" rowspan="2"></td>
 
<td colspan="4" rowspan="2">
<img id="obraz_16" src="images/boczny_ranking.gif" width="199" height="329" alt="" /></td>
<td rowspan="2"></td>
<td rowspan="2"></td>
<td>
<img src="images/spacer.gif" width="1" height="32" alt="" /></td>
</tr>
<tr>
 
<td colspan="4" rowspan="2" background="images/tlo_news.gif" width="399" height="345" alt="" />
<?php 
include('config.php');
if(isset($_POST['submit']) && $_POST['submit'] == 'Zarejestruj') {
$username = mysql_real_escape_string($_POST['username']);
$password = mysql_real_escape_string($_POST['password']);
$rl_name = mysql_real_escape_string($_POST['rl_name']);
$email = mysql_real_escape_string($_POST['email']);
 
$sql = "INSERT INTO account SET login = '".$username."', password = PASSWORD('".$password."'), real_name = '".$rl_name."', email = '".$email."'";
$result = mysql_query($sql);
if($result) { echo '<script type="text/javascript">alert("NAZWA SERWERA MOJEGO BLABLA ITD :D");</script>'; }
else { echo '<script type="text/javascript">alert("Ten login jest już zajęty na naszym serwerze!.");</script>'; }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2" />
<meta name="description" content="Registration" />
<meta name="keywords" content="some, keywords, comes, later" />
<meta name="language" content="en" />
<meta name="robots" content="index,follow" />
<meta name="author" content="S3cr3t" />
<meta name="revisit-After" content="5 days" />
<meta name="distribution" content="local" />
<style type="text/css">
</style>
<script type="text/javascript">
if (top.frames.length != 0)
top.location=self.location;
</script>
</head>
<body>
<div id="container">
<div id="text">
<form action="rejestracja.php" method="post">
<font color="white">
<center>Login:  <center><input type="text" name="username" size="25" /><br /><br /></center>
<center>Hasło:  <center><input type="password" name="password" size="25" /><br /><br /></center>
<center>Imię:  <center><input type="text" name="rl_name" size="25" /><br /><br /></center>
<center>E-Mail:  <center><input type="text" name="email" size="25" /><br /><br /><br /></center>
<center><input type="submit" name="submit" value="Zarejestruj" />    <input type="reset" name="submit" value="Reset" /><br /><br /></center>
</font>
</form>
</div>
</div>
</body>
</html>
</td>
<td>
<img src="images/spacer.gif" width="1" height="297" alt="" /></td>
</tr>
<tr>
<td colspan="6" rowspan="2"></td>
<td colspan="8" rowspan="2"></td>
<td>
<img src="images/spacer.gif" width="1" height="48" alt="" /></td>
</tr>
<tr>
 
<td colspan="4" background="images/stopka.gif" width="399" height="54" alt="" />
<center><font size="2"><font color="white">delte 
<a href="index.php">DELETE</a><br />
</td>
<td>
<img src="images/spacer.gif" width="1" height="54" alt="" /></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="1" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="28" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="63" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="140" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="15" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="34" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="113" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="126" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="88" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="72" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="7" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="44" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="39" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="13" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="96" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="51" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="49" height="1" alt="" /></td>
<td></td>
</tr>
</table>
</center>
</body>
</html>

­

Like it +

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...