ASP中的代码。
<form name=phpForm enctype="multipart/form-data" method="post" action="upload.php">
<input type="text" name="serverID" /><p /> <input type="text" name="userName" /><p /> <input type="text" name="passWord" /><p /> </form>PHP文件中的代码。
$host = $_POST['serverID']; $user = $_POST['userName']; $pass = $_POST['passWord']; 就是取不到值。提示以下错误。
SWF DEBUG: <b>Notice</b>: Undefined index: serverID in <b>c:\inetpub\wwwroot\sfvod\manager\upload.php</b> on line <b>19</b><br />
SWF DEBUG: <br />
SWF DEBUG: <b>Notice</b>: Undefined index: userName in <b>c:\inetpub\wwwroot\sfvod\manager\upload.php</b> on line <b>21</b><br />
SWF DEBUG: <br />
SWF DEBUG: <b>Notice</b>: Undefined index: passWord in <b>c:\inetpub\wwwroot\sfvod\manager\upload.php</b> on line <b>23</b><br />
SWF DEBUG: Cannot initiate connection to host
<form name=phpForm enctype="multipart/form-data" method="post" action="upload.php">
<input type="text" name="serverID" /><p /> <input type="text" name="userName" /><p /> <input type="text" name="passWord" /><p /> </form>PHP文件中的代码。
$host = $_POST['serverID']; $user = $_POST['userName']; $pass = $_POST['passWord']; 就是取不到值。提示以下错误。
SWF DEBUG: <b>Notice</b>: Undefined index: serverID in <b>c:\inetpub\wwwroot\sfvod\manager\upload.php</b> on line <b>19</b><br />
SWF DEBUG: <br />
SWF DEBUG: <b>Notice</b>: Undefined index: userName in <b>c:\inetpub\wwwroot\sfvod\manager\upload.php</b> on line <b>21</b><br />
SWF DEBUG: <br />
SWF DEBUG: <b>Notice</b>: Undefined index: passWord in <b>c:\inetpub\wwwroot\sfvod\manager\upload.php</b> on line <b>23</b><br />
SWF DEBUG: Cannot initiate connection to host
这个写得很清楚啊,没有连接到服务器
没连上的原因是,参数没有传到,Undefined index: serverID
这个应该是说参数没有传到这里吧,
我从ASP传过来的参数为什么这里取不到呢?