私のテストPHP送信コード:
<?php 
if($_POST['create']) { echo $_POST['name']; }
?> 
私のHTMLフォームコード:
<form class="form-horizontal" id="ConsultantSignUp" method="post" action="#">
<div class="control-group">
    <label class="control-label" for="inputForename">Name</label>
    <div class="controls">
        <input type="text" class="input-xlarge" id="name" name="name" rel="popover" data-content="Enter your first and last name." data-original-title="Full Name">
    </div>
</div>
<div class="control-group">
        <label class="control-label" for="input01"></label>
        <div class="controls">
            <button type="submit" class="btn btn-success" rel="create" title="create" id="create" name="create">Create My Account</button>
        </div>
    </div>
</form>
私のエラーは、送信後に名前が出力されないことです。PHPエラーログを確認したところ、次のようになっています。
PHPの注意:未定義のインデックス:2行目の/ Users / ** /sites/ signup.phpに作成
2行目は'if($ _ POST ['create']){echo $ _POST ['name']; }'。
Undefined Index通知を削除するisset()メソッドを知っていますが、フォームをテストしたいだけです。