Results 1 to 8 of 8
Hybrid View
-
25th September 2007 16:54 #1
!
!, Slackware 11, ! , ! :
, ! :
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>..::::..</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"></head>
<body>
<?php
$self = $_SERVER['PHP_SELF'];
$ime = $_POST['ime'];
$familia = $_POST['familia'];
$potr_ime = $_POST['potr_ime'];
$parola = $_POST['parola'];
if ( (!$ime) or (!$familia) or (!$potr_ime) or (!$parola))
{
$form =", ";
$form .="<form action=\"$self\"";
$form .=" method=\"post\">: ";
$form .="<input type=\"text\" name=\"ime\"";
$form .=" value=\"$ime\">: ";
$form .="<input type=\"text\" name=\"familia\"";
$form .=" value=\"$familia\"<br> : ";
$form .="<input type=\"$potr_ime\">: ";
$from .="<input type=\"text\" name=\"parola\"";
$form .="<value =\"$parola\"><br>";
$form .="<input type=\"submit\" value=\"\">";
$form .="</form>";
echo ($form);
}
else
{
$conn = @mysql_connect("localhost", "test", "test")
or die (" ");
$zaqvka = "insert into potrebiteli (ime, familia, potr_ime, parola)
values (\"$ime\", \"$familia\", \"$potre_ime\", password(\"$parola\"))";
$rez = @mysql_query($zaqvka, $conn)
or die (" ");
}
if ($rez)
{
echo (" $potr_ime ");}
}
?>
</body>
</html>
register.php , , ! ?
, - , , username password, - : html , register.php
register.php
, post action=$_SERVER['PHP_SELF'];
, !!!
-
25th September 2007 17:15 #2Dark tranquillity
Join Date: Aug:2006
Location: Sofia
Posts: 796
-. , , -.
:
echo (" $potr_ime ");}
}
. display_errors error_reporting- php.ini,
.. , - , ...Core 2 Duo E6600 @ 3.15GHz + Zalman 9500| Gigabyte 965P DS-4 | Asus EAX1950Pro + Samsung 226BW | 4 x 1GB DDR-2 800 A-Data | CM Elite 330 + Fortron BS 500W | X-Fi Fatal1ty Pro | Samsung HD400LJ 400GB | NEC AD-7170A | MS Natural KB + A4 X7 G100 Game pad | Mouse A4 X750 BF
-
25th September 2007 17:46 #3
-
25th September 2007 19:41 #4
@metalhead17, , [CODE] , ?

@emagi, - SQL , SQL , . , magic_quotes_gpc, .Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
25th September 2007 21:02 #5
@icaci, ! , !, ! , :
: , :
" "
$zaqvka = "insert into potrebiteli (ime, familia, potr_ime, parola)
values (\"$ime\", \"$familia\", \"$potre_ime\", password (\"$parola\" )";
, , !
!!!
-
25th September 2007 21:06 #6
.
Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
25th September 2007 21:26 #7
:
:
else
{
$conn = @mysql_connect("localhost", "test", "test")
or die (" ");
$zaqvka = "insert into potrebiteli (ime, familia, potr_ime, parola)
values (\"$ime\", \"$familia\", \"$potre_ime\", password(\"$parola\"))";
$rez = @mysql_query($zaqvka, $conn)
or die (" ");
}
if ($rez)
{
echo (" $potr_ime ");}
}
?>
, !, ! !
-
25th September 2007 21:52 #8




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in