mas maaf saya mau nanya lagi..
saya ingin membuat form input data untuk memasukkan data (data tersebut berupa huruf korea) ke dalam database..
tapi ketika datanya selesai saya input, huruf korea tersebut berubah menjadi huruf yang aneh..
apakah saya harus menambahkan script tambahan kedalam script inputan saya, sehingga huruf korea tersebut ketika saya input tulisannya tidak berubah?
terima kasih..
<?php
//initialize the session
if (!isset($_SESSION)) {
session_start();
}
// ** Logout the current user. **
$logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
$logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
//to fully log out a visitor we need to clear the session varialbles
$_SESSION['MM_Username'] = NULL;
$_SESSION['MM_UserGroup'] = NULL;
$_SESSION['PrevUrl'] = NULL;
unset($_SESSION['MM_Username']);
unset($_SESSION['MM_UserGroup']);
unset($_SESSION['PrevUrl']);
$logoutGoTo = "form_login.php";
if ($logoutGoTo) {
header("Location: $logoutGoTo");
exit;
}
}
?>
<?php
if (!isset($_SESSION)) {
session_start();
}
$MM_authorizedUsers = "";
$MM_donotCheckaccess = "true";
// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
// For security, start by assuming the visitor is NOT authorized.
$isValid = False;
// When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
// Therefore, we know that a user is NOT logged in if that Session variable is blank.
if (!empty($UserName)) {
// Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
// Parse the strings into arrays.
$arrUsers = Explode(",", $strUsers);
$arrGroups = Explode(",", $strGroups);
if (in_array($UserName, $arrUsers)) {
$isValid = true;
}
// Or, you may restrict access to only certain users based on their username.
if (in_array($UserGroup, $arrGroups)) {
$isValid = true;
}
if (($strUsers == "") && true) {
$isValid = true;
}
}
return $isValid;
}
$MM_restrictGoTo = "form_login.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {
$MM_qsChar = "?";
$MM_referrer = $_SERVER['PHP_SELF'];
if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0)
$MM_referrer .= "?" . $QUERY_STRING;
$MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
header("Location: ". $MM_restrictGoTo);
exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Aplikasi Pembelajaran Bahasa Korea</title>
<link href="css/rinda_style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />
<style type="text/css">
<!--
.style1 {
font-size: 24px;
font-weight: bold;
}
.style3 {font-size: 14px}
.style4 {font-size: 14}
.style7 {color: #000000}
.style18 {font-family: Georgia, "Times New Roman", Times, serif}
.style22 {color: #FFFFFF;
font-weight: bold;
font-size: 24px;
font-family: Georgia, "Times New Roman", Times, serif;
}
.style23 {color: #000000;
font-size: 18px;
}
.style30 {font-weight: bold}
-->
</style>
</head>
<body>
<div id="desain_body_wrapper">
<div id="desain_wrapper"><span id="desain_wrapper_top"></span>
<div class="style1" id="desain_header">
<div align="center">Aplikasi Pembelajaran Huruf Han-geul & Bahasa Korea Dasar</div>
<div id="desain_menu" class="ddsmoothmenu">
<ul>
<li><a href="index.php" >Home</a></li>
<li><a href="input.php" >Input</a></li>
<li><a href="lihat.php">Lihat</a>
</li>
<li><a href="cari.php">Cari </a>
</li>
<li><a href="<?php echo $logoutAction ?>" onclick="return confirm('Apakah Anda yakin?')">logout</a></li>
</ul>
<br style="clear: left" />
</div>
</div>
<div id="desain_main">
<p> </p>
<form id="form1" name="form1" method="post" action="simpan.php">
<?php
if (!empty($_GET['message']) && $_GET['message'])
?>
</p>
<div align="center" class="style30"></div>
<table width="54%" border="0" align="center" cellpadding="4" cellspacing="2">
<tr>
<td colspan="3" bgcolor="#66CCFF"><div align="center">
<p class="style22 style23">INPUT KATA</p>
</div></td>
</tr>
<tr>
<td><span class="style18">Kata</span></td>
<td><strong>:</strong></td>
<td><label>
<input name="kata" type="text" id="kata" required="required" />
</label></td>
</tr>
<tr>
<td valign="top" width="43%"><p class="style18">Arti</p></td>
<td width="2%"><strong>:</strong></td>
<td width="55%"><textarea name="arti" cols="47" rows="5" id="arti"></textarea></td>
</tr>
<tr>
<td colspan="3" bgcolor="#66CCFF"><label>
<div align="right"><br />
<input type="submit" name="Submit" value="Simpan" />
<input type="reset" name="Submit2" value="Reset" />
</div>
</label></td>
</tr>
</table>
</form>
<?php
?>
</div>
</div>
</div>
<div id="desain_bottom">
<div class="cleaner"></div>
</div>
<div id="desain_footer_wrapper">
<div id="desain_footer">
<div align="center">Designed by Rinda Lisna Wulandari </a> </div>
</div>
</div>
</div>
</body>
</html>