<input id="username" value="<?=$data["message"];?>">

解决方案 »

  1.   

    先谢谢你啊!
    test.html,文件中怎么可能允许这个呢<?=$data["message"];?>;
    假如说是asp页面传递文本框数据到php页面,怎么做?只所以用js,是方便可以在jsp、asp页面上通用!不知道可行不?
      

  2.   

    先谢谢你啊!
    test.html,文件中怎么可能允许这个呢 <?=$data["message"];?>;
    假如说是asp页面传递文本框数据到php页面,怎么做?只所以用js,是方便可以在jsp、asp页面上通用!不知道可行不?
      

  3.   


    test.html 
    <html> 
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <title>asdasd</title> 
    </head> 
    <body>                 <form action="test.php" method="post"> 
                        name: <input type="text" name="username" id="username"> 
                        <input type="submit" value="submit" > 
                    </form> </body> 
    </html> test.php <?php 
    echo $_POST["username"]; ?> 
      

  4.   

    那要用 ajax 了,
    http://hi.baidu.com/lael80/blog/item/5d2d835053d5a26285352449.html示例:AJAX发的邮件
    http://www.i-ones.cn/detail.php?CateTwoID=60
    分享[Longing]发送给朋友