我想request.JSON  在动态表格上。
是否可以通过表单 ID 发布完整的表单?
<table>
<form id="form">
        <tr>
          <td>username</td>
          <td><input type="text" id="username"></td>
        </tr>
        <tr>
          <td>password</td>
          <td><input type="password" id="password"/></td>
        </tr>
        <tr>
          <td></td>
          <td><input type="submit" id="go" value="go"/></td>
        </tr>
</table>
在脚本方面:
$('go').addEvent('click',function( event )
{
  event.stop();
   var myForm = document.id('form');
  var request= new Request.JSON (
  {
    url: 'check_login.php',
    method: 'post',
    data:
    {
     form: myForm
    },
    onSuccess: function( response ) 
    {
      if ( response.status )
      {
        document.location = "home.php"   
      }
      else
      {
        $('response').addClass('error');
        $('response').set('html', response.message);
      }
    },
});
     request.send();
在 php 脚本中,我想通过 $_POST 变量进行检查。但我找不到这样的方法。实际上我什么都没有。
问候