| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
| 11 |
| 12 |
| 13 |
| 14 |
| 15 |
| 16 |
| 17 |
| 18 |
| 19 |
| 20 |
| 21 |
| 22 |
| 23 |
| 24 |
|
| | |
| | <?php |
| |
include("connect.php"); |
| |
|
| |
if($_POST["title"]!="" && $_POST["title"]!="" && $_POST["title"]!="") { |
| |
|
| |
$SQL = "insert into webboard (main_id, title, detail, name, ip, postdate) values( |
| |
0, |
| |
'".htmlentities($_POST["title"], ENT_QUOTES | ENT_IGNORE, "UTF-8")."', |
| |
'".htmlentities($_POST["detail"], ENT_QUOTES | ENT_IGNORE, "UTF-8")."', |
| |
'".htmlentities($_POST["name"], ENT_QUOTES | ENT_IGNORE, "UTF-8")."', |
| |
'".$_SERVER["REMOTE_ADDR"]."', |
| |
'".date("Y-m-d H:i:s")."')"; |
| |
mysql_query($SQL) or die(mysql_error().$SQL); |
| |
header("location:webboard.phpl"); |
| |
|
| |
} else { |
| |
header("location:post.html"); |
| |
} |
| |
?> |
| |
|
| | |
|