###前提・実現したいこと
会員ページを登録後に編集ページを作って再登録したいのですが、
会員番号、受給者番号、ユーザーの名前、年齢、所属先選択、性別、都道府県を
コメントが最初にクリックしたときに文字が出てきません。
どうしたらよいでしょうか?
よろしくお願いします。
###該当のソースコード
<?php //connection.php(データベース連携)mgList.php(会員登録表)からの内容を編集するページ if ($_SERVER['REQUEST_METHOD'] == 'POST') { include ('connection.php');// $id_user = mysqli_real_escape_string($dbc,trim($_POST['user_id'])); $gender = htmlspecialchars($_POST['gender']); $q = mysqli_query($dbc ,"UPDATE users SET companynumber,id,Recipientnumber,company,first_name,last_name,tell, fax,email,gender,age,belong,zip,prefecture, city,bill,addressnam,coments,password,registration_date WHERE id = '$id_user'"); echo "<p>内容が更新されました</p>"; }else { echo "<p>現在のご登録内容です。変更される場合は該当箇所を修正の上で内容更新。</p>"; } //mysqli_close($dbc); ?> -省略- </table> <form method="POST" action="edit_user.php" class="contact"> <table> <tr> <th colspan="2">事業者およびその事業所</th> <td><input type="text" name="company" size="20" maxlength="50" value="<?php if (isset($_GET['company'])) {echo htmlspecialchars($_GET['company'],ENT_QUOTES,"UTF-8");} ?>"> </tr> <th colspan="2">事業者番号</th> <td><input type="text" name="companynumber" size="10" maxlength="15" value="<?php if (isset($_GET['companynumber'])) {echo htmlspecialchars($_GET['companynumber'],ENT_QUOTES,"UTF-8");} ?>"> </tr> <tr> <th colspan="2">会員番号</th> <td><input type="number" name="user_id" size="10" maxlength="10" value="<?php if (isset($_GET['user_id'])) {echo htmlspecialchars($_GET['user_id'],ENT_QUOTES,"UTF-8");} ?>"> </tr> <th colspan="2">受給者番号</th> <td><input type="number" name="Recipientnumber" size="10" maxlength="10" value="<?php if (isset($_GET['Recipientnumber'])) {echo htmlspecialchars($_GET['Recipientnumber'],ENT_QUOTES,"UTF-8");} ?>"> </tr> <th colspan="2">ユーザー</th> <td>名前:<input type="text" name="first_name" value="<?php if (isset($_GET['first_name'])) {echo htmlspecialchars($_GET['first_name'],ENT_QUOTES,"UTF-8");} ?>"><br> フリガナ;<input type="text" name="last_name" value="<?php if (isset($_GET['lname'])) {echo htmlspecialchars($_GET['lname'],ENT_QUOTES,"UTF-8");} ?>"> </tr> <tr> <th colspan="2">年齢</th> <td><select name="age" value="<?php if (isset($_GET['age'])) {echo htmlspecialchars($_GET['age'],ENT_QUOTES,"UTF-8");} ?>"> </tr> <tr> <th colspan="2">所属先選択</th> <td><select name="belong" value="<?php if (isset($_GET['belong'])) {echo htmlspecialchars($_GET['belong'],ENT_QUOTES,"UTF-8");} ?>"> </td> </tr> <tr> <th colspan="2">性別</th> <td><input type="radio" name="gender" value="<?php if (isset($_GET ['gender'])) {echo htmlspecialchars($_GET['gender'],ENT_QUOTES,"UTF-8");} ?>"> </tr> <tr> <th colspan="2">パスワード</th> <td><input type="text" name="password" maxlength="50" value="<?php if (isset($_GET['password'])) {echo htmlspecialchars($_GET['password'],ENT_QUOTES,"UTF-8");} ?>"> </tr> <tr> <th rowspan="3"><label for="zip1">連絡先</label></th> <th>電話番号</th> <td><input type="tel" name="tell" value="<?php if (isset($_GET['tell'])) {echo htmlspecialchars($_GET['tell'],ENT_QUOTES,"UTF-8");} ?>"> <tr> <th>FAX</th> <td><input type="number" name="fax" value="<?php if (isset($_GET['fax'])) {echo htmlspecialchars($_GET['fax'],ENT_QUOTES,"UTF-8");} ?>"> <tr> <th>メール</th> <td><input type="text" name="email" size="20" maxlength="50" value="<?php if (isset($_GET['email'])) {echo htmlspecialchars($_GET['email'],ENT_QUOTES,"UTF-8");} ?>"> </tr> <tr> <th rowspan="5"><label for="zip1">ご住所</label></th> <th>郵便番号</th > <td> <input type="text" name="zip" id="zip" size="12" value="<?php if (isset($_GET['zip'])) {echo htmlspecialchars($_GET['zip'],ENT_QUOTES,"UTF-8");} ?>"> </tr> <tr> <th >都道府県</th > <td><select name="prefecture" id="prefecture" value="<?php if (isset($_GET['prefecture'])) {echo htmlspecialchars($_GET['prefecture'],ENT_QUOTES,"UTF-8");} ?>"></select></td> </tr> <tr> <th >市区町村</th > <td><input type="text" name="city" size="20" value="<?php if (isset($_GET['city'])) {echo htmlspecialchars($_GET['city'],ENT_QUOTES,"UTF-8");} ?>"> </tr> <tr> <th >番地番号</th > <td><input type="text" name="addressnam" id="address" value="<?php if (isset($_GET['addressnam'])) {echo htmlspecialchars($_GET['addressnam'],ENT_QUOTES,"UTF-8");} ?>"> </tr> <tr> <th >アパート・マンション</th > <td><input type="text" name="bill" id="address" value="<?php if (isset($_GET['bill'])) {echo htmlspecialchars($_GET['bill'],ENT_QUOTES,"UTF-8");} ?>"> </tr> <tr> <th colspan="2">コメント</th> <td><textarea name="comments" cols="55" rows="3"placeholder="何かあれば詳しく入力して下さい (10文字以上 1000文字以内)"></textarea></td> </tr> <tr> </table> <p><input type="reset" name="submit" value="やり直し"> <input type="submit" name="submit" value="内容更新"></p>
###試したこと
課題に対してアプローチしたことを記載してください
###補足情報(言語/FW/ツール等のバージョンなど)
より詳細な情報