-1

--編集--- ユーザーがデータを入力できるテキスト ボックス領域を作成しました。

基本的に送信ボタンを押すと、入力したデータが保存されます。ここに完全なコードがありますが、修正できません。:/

ユーザー エントリは更新されません。

    <?php
if ( $act == "htmlprofile" ) {


 ?>


    <div class="contentcontainer">
  <div class="contentmboardheaderarea"><img src="images/header.png" />
<div style=”word-wrap: break-word”&gt;<div class="contentheadertext"><?php echo "$hlang2"; ?></div></div></div>
  <div class="contentheading">
      <form id="htmlform" name="htmlform" method="post" action="options.php?act=htmlsubmit">
    <div class="contentheading4">
    <?php echo "$olang15"; ?></div>
</div>
    <div class="contentmboardlistarea2"><textarea id="htmlprofile" name="htmlprofile" cols="33" rows="10"><?php echo $qry2[htmlprofile];?>
 </textarea></div></form>
  <div class="contentbuttonarea">
    <div class="contentbutton1" onClick="document.location.href = 'profile.php?act=index'";><?php echo "$glang3"; ?></div>
    <div class="contentbutton2" onClick="document.forms['htmlform'].submit();"><?php echo "$glang21"; ?></div>
    <div class="contentbutton3"></div>
    <div class="contentbutton4"></div>
    <div class="contentbutton5" onClick="document.location.href = 'help.php#htmlprofile'";><?php echo "$glang5"; ?></div>
  </div>
</div>

<?php
}
?>


<?php
if ( $act == "htmlsubmit" ) {

$save ='Profile updated successfully';  
$query4 = "UPDATE members SET htmlprofile = '$htmlprofile' WHERE username = '$myuser'";
mysql_query($query4);
?>
4

4 に答える 4