- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
<?php
include ($_SERVER["DOCUMENT_ROOT"]."/config.php");
if (isset($_REQUEST['sub'])) //Если нажата кнопка (name="sub")
{
//Создаем таблицу, если ее еще не существует
mysql_query ('CREATE TABLE IF NOT EXISTS gostivaay_ckniga (
id int(100) NOT NULL AUTO_INCREMENT,
stamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
GCkname varchar(20) NOT NULL,
GCkemail varchar(40) NOT NULL,
GCkICQ varchar(15) NOT NULL,
GCkURL varchar(50) NOT NULL,
GCktext varchar(2000) NOT NULL
)') or die(mysql_error());
//Делаем запись в таблицу
$sql = mysql_query("INSERT into gostivaay_ckniga (GCkname, GCkemail, GCkICQ, GCkURL, GCktext)
values ('".$_REQUEST['name_3']."', '".$_REQUEST['e-mail_3']."',
'".$_REQUEST['ICQ_3']."', '".$_REQUEST['URL_3']."', '".$_REQUEST['text_box_3']."');");
}
?>
<body>
<link rel="stylesheet" type="text/css" href="/gostivaay_ckniga/style/style_forma.css">
<script type="text/javascript" src="/gostivaay_ckniga/script/gostivaay_ckniga_script.js"></script>
<form action="gostivaay_ckniga.php" method="post" name="test_form">
<table id="table" cellspacing="0" cellpadding="2">
.........
<td colspan="4" id="smile_form">
<table cellspacing="0" id="div_smile_form">
<tr>
<td class="kletka_2" onclick='InsertSmile(":0001:")'><img id="smile_1" src="/images/smile/0001.gif" title=":0001:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0002:")'><img id="smile_2" src="/images/smile/0002.gif" title=":0002:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0003:")'><img id="smile_3" src="/images/smile/0003.gif" title=":0003:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0004:")'><img id="smile_4" src="/images/smile/0004.gif" title=":0004:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0005:")'><img id="smile_5" src="/images/smile/0005.gif" title=":0005:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0006:")'><img id="smile_6" src="/images/smile/0006.gif" title=":0006:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0007:")'><img id="smile_7" src="/images/smile/0007.gif" title=":0007:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0008:")'><img id="smile_8" src="/images/smile/0008.gif" title=":0008:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0009:")'><img id="smile_9" src="/images/smile/0009.gif" title=":0009:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0010:")'><img id="smile_10" src="/images/smile/0010.gif" title=":0010:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0011:")'><img id="smile_11" src="/images/smile/0011.gif" title=":0011:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0012:")'><img id="smile_12" src="/images/smile/0012.gif" title=":0012:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0013:")'><img id="smile_13" src="/images/smile/0013.gif" title=":0013:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0014:")'><img id="smile_14" src="/images/smile/0014.gif" title=":0014:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0015:")'><img id="smile_15" src="/images/smile/0015.gif" title=":0015:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0016:")'><img id="smile_16" src="/images/smile/0016.gif" title=":0016:" /></td>
<td class="kletka_2" onclick='InsertSmile(":0017:")'><img id="smile_17" src="/images/smile/0017.gif" title=":0017:" /></td>
</tr>
</table>