日期:2014-05-17  浏览次数:20545 次

关于表单的问题不知道哪里出错
搞到我快疯了 问题是: 表单直接用提交按键区提交,完全没问题 (做法是想 一个表单向不同个页面action)但是改成按键 用JS实现提交出现了问题,能转到该页面,但是结果是,数据库,没任何反应,修改插入都实现不了!但是我单个表直接按键提交一点问题都没有!!郁闷啊 !随便说一下 我用HTML5的,应该没什么不一样吧!


《-------------------------------代码----------------------------------------------》
<form name="submitform1" method="post" id="for" enctype="multipart/form-data"><article class="module width_full">
  <?php if (!session_id()) session_start(); echo $_SESSION["message"]; $_SESSION["message"]=null; ?>
<header><h3>编辑窗口</h3></header>
<div class="module_content">
   
  <input name="id" type="hidden" value="<?php echo $row[0]?>">
<fieldset>
<label>标题</label>
<input type="text" name="title" value="<?php echo $row[1]?>"></br>
  <label>内容摘要</label>
  <input type="text" name="Summary" value="<?php echo $row[2]?>">
</fieldset>
<fieldset>
<label>主要内容</label>
<textarea name="content" cols="100" rows="25" id="textfield2"><?php echo $row[3]?></textarea>
  <script type="text/javascript">
  CKEDITOR.replace( 'content',
  {
  filebrowserBrowseUrl : 'ckfinder/ckfinder.html',
  filebrowserImageBrowseUrl : 'ckfinder/ckfinder.html?Type=Images',
  filebrowserFlashBrowseUrl : 'ckfinder/ckfinder.html?Type=Flash',
  filebrowserUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
  filebrowserImageUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
  filebrowserFlashUploadUrl : 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
  });
  </script>
</fieldset>
<fieldset style="width:48%; float:left; margin-right: 3%;"> <!-- to make two field float next to one another, adjust values accordingly -->
<label>版块</label>
<select style="width:92%;" name="class" >
<option value="Electronic" selected>电子</option>
<option value="Gossip">八卦</option>

</select>
</fieldset>
<fieldset style="width:48%; float:left;"> <!-- to make two field float next to one another, adjust values accordingly -->
<label>Tags</label>
<input type="text" style="width:92%;">
</fieldset><div class="clear"></div>
</div>
<footer>
<div class="submit_link">
<select>
<option>Draft</option>
<option>Published</option>
</select>
<input name="go" type="button" onClick="df1()" class="alt_btn" value="发布">
  <input name="go" onClick="df2()" type="button" class="alt_btn" value="修改">
</div>
</footer>
</article></form>


</script>
  <script type="text/javascript" language="javascript">
function