2017-06-11 13 views
-1

Create1.phpコード

<form action="create2.php" method="POST"> 
    <table cellpadding="10"> 
    <tr> 
     <td>Name</td> 
     <td><input type="text" name="name" value="<?php echo $name; ?>" disabled></td> 
    </tr> 
    <tr> 
     <td>Mobile</td> 
     <td><input type="text" name="mobile" value="<?php echo $mobile; ?>" disabled/></td> 
    </tr> 
    <tr> 
     <td>Email</td> 
     <td><input type="text" name="email" value="<?php echo $email; ?>" disabled/></td> 
    </tr> 
    <tr> 
     <td>Company</td> 
     <td><input type="text" name="company" value="<?php echo $company; ?>"disabled /></td> 
    </tr> 
    <tr> 
     <td><input type="submit" value="Confirm" /></td> 
    </tr> 
    </table> 
    </form> 

を働いていない私は、私の次のページの入力を受け取るしようとしてすなわちcreate2.phpが、そのすべての名前属性のUndefined indexを示しています。 すべてが問題ないようです。私はその理由を知りませんか?

私Create2.phpコード

$name = $_POST['name']; 
$mobile = $_POST['mobile']; 
$email = $_POST['email']; 
$company = $_POST['company']; 

$sql = "INSERT INTO users (name,mobile,email,company,document) 
VALUES ('$name','$mobile','$email','$company','$document')"; 
mysqli_query($con,$sql); 

私はISSETとcreate2.php上の$ _POST []()を確認し、その設定されていません!値は受信されませんか?コードで何が間違っていますか?

答えて

-1

変更「無効」、多分あなたが必要な場合は、その要素が必要なプロパティを必要としている、「必要」。要素が無効になっているため、フォームは通知されません

関連する問題