-

  • (0)
  • (0)
  • (0)
  • (0)
  • (0)
  • (0)
  • (0)

 -

   saitstroy-lineseo

 - e-mail

 

 -

:

 -

 LiveInternet.ru:
: 19.01.2010
:
:
: 8

:


, 14 2010 . 17:17 +
, ! . , , ( ), , ( , ). , . . , , .




, , . . , . . , .

- , .
- PHP+MySQL .


, "" . . . , , - .

, . , , , - , . - .

, , . - , . .


: , . , , , , . , . , , , - .


.

1. .

9045:


, .

2. .

(index.php) :

:


Email:


:



: html
: html

, , :

:


Email:


:


:


: html

: html

3. .

, ( 2 ) spam-img, style.css. :
.spam-img {
border: 1px solid #999; /**/
margin-top:6px; /* */
: css
}: css

4. .

advanced. spam. SQL-:
ALTER TABLE `advanced` ADD `spam` INT( 5 ) NOT NULL;
: sql
UPDATE `advanced` SET `spam` = '24' WHERE `id` =1 LIMIT 1: sql

24 - , . , .

5. -.

submit.php. , , , , . :
$res=mysql_query("SELECT spam FROM ".$tbl2."",$db);
: php
$row=mysql_fetch_array($res);: php

:
$spam = trim ($_POST["spam"]);
: php
$spam = htmlspecialchars ($spam);: php

, :
: php
if (!isset($spam) or empty ($spam)) {echo "";exit ("
!
");}: php

, :
: php
if ($row["spam"] !== $spam) {echo "";exit ("
!
");}: php
$row["spam"] - , .
$spam - , .
!== - , , .
if() { } - ( - "").
empty - , 0.
!isset - ( - isset).

:

(24) , , " !".

. , , .

,
index.php - , , .
submit.php - , .
style.css - .
images/ - .

. !
:  
: 14

: [1] []
 

:
: 

: ( )

:

  URL