直接引用input或别的field的名称就可以了
比如:<input type=text name='txtNewUserName'......
在提交的页面中,直接用 $txtNewUserName当然你也可以用$arr_request['txtNewUserName']
都是一样的

解决方案 »

  1.   

    <?
    if($submit){
     echo $_POST['name'];
    }
    <form method=post>
    <input type=text name=name>
    <input type=submit name=submit>
    </form>
    ?>arr_request?偶也真的不知道。
      

  2.   

    如果表单是用post提交;则提交的值在$_POST数组里面存着;
    如果表单是用get提交;则提交的值在$_GET数组里面存着;
    post的实例:
    <?
    if($submit){
     print "<pre>";
     print($_POST);
     print "</pre>";}
    <form method=post>
    <input type=text name=name>
    <input type=submit name=submit>
    </form>
    ?>
      

  3.   

    修正一下实例:
    post的实例:
    <?
    if($submit){
     print "<pre>";
     print_r($_POST);
     print "</pre>";}
    <form method=post>
    <input type=text name=name>
    <input type=submit name=submit>
    </form>
    ?>
      

  4.   

    post 的实例中 将表单提交到哪里?  action="?" 是什么形式?还有common.inc 是不是需要自己编写的?arr_request 中的代码实现是不是要自己编写,不要笑话  哈哈!!!!
      

  5.   

    呵呵,
    再修正
    <?
    if($submit){
     print "<pre>";
     print_r($_POST);
     print "</pre>";}
    ?>
    <form method=post>
    <input type=text name=name>
    <input type=submit name=submit>
    </form>
    本实例,没有action,默认提交到本文件;
    你可以试一下;
    你也可写上action
    提交到哪个文件写上哪一个文件名就可以了
    <form method=post action='aa.php'>
    这个就提交到了aa.php文件;
    不过你的
    <?
    if($submit){
     print "<pre>";
     print_r($_POST);
     print "</pre>";}
    ?>
    内容得放到aa.php中呵;
    建议楼主去找一本php的书看一看;
    或下一个php手册
    www.lostinet.com
    里面有好多资料,找找看.
      

  6.   

    表单提交之后有如下警告:    Notice:  Undefined variable:  username in  "position"
      

  7.   

    PHP版本若为4.2.0以上,请使用$_POST["username"],
    或者使用$HTTP_POST_VARS["username"];
    或者修改php.ini
    register_globals = on