Results 1 to 8 of 8

Thread:

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User emagi's Avatar
    Join Date: Feb:2007
    Location: bulgaria
    Posts: 202

    !
    !, 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\">: &nbsp; ";
    $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'];
    , !!!

  2. #2
    Dark 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

  3. #3
    Registered User emagi's Avatar
    Join Date: Feb:2007
    Location: bulgaria
    Posts: 202
    , "PHP "! ,

  4. #4
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    @metalhead17, , [CODE] , ?

    @emagi, - SQL , SQL , . , magic_quotes_gpc, .
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  5. #5
    Registered User emagi's Avatar
    Join Date: Feb:2007
    Location: bulgaria
    Posts: 202
    @icaci, ! , !, ! , :
    : , :
    " "

    $zaqvka = "insert into potrebiteli (ime, familia, potr_ime, parola)
    values (\"$ime\", \"$familia\", \"$potre_ime\", password (\"$parola\" )";

    , , !
    !!!

  6. #6
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    .
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  7. #7
    Registered User emagi's Avatar
    Join Date: Feb:2007
    Location: bulgaria
    Posts: 202
    :
    :


    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 ");}
    }
    ?>

    , !, ! !

  8. #8
    Registered User emagi's Avatar
    Join Date: Feb:2007
    Location: bulgaria
    Posts: 202
    ! ! !!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |