$name=$address=$login=$password='';
これは何なのでしょうか。
意味が解りません。
後程詳しく書きます...
php:
1<?php require '../header.php'; ?> 2<?php require 'menu.php'; ?> 3<?php 4session_start(); 5$name=$address=$login=$password=''; 6if (isset($_SESSION['customer'])) { 7 $name=$_SESSION['customer']['name']; 8 $address=$_SESSION['customer']['address']; 9 $login=$_SESSION['customer']['login']; 10 $password=$_SESSION['customer']['password']; 11} 12echo '<form action="customer-output.php" method="post">'; 13echo '<table>'; 14echo '<tr><td>お名前</td><td>'; 15echo '<input type="text" name="name" value="', $name, '">'; 16echo '</td></tr>'; 17echo '<tr><td>ご住所</td><td>'; 18echo '<input type="test" name="address" value="', $address, '">'; 19echo '</td></tr>'; 20echo '<tr><td>ログイン名</td><td>'; 21echo '<input type="text" name="login" value="', $login, '">'; 22echo '</td></tr>'; 23echo '<tr><td>パスワード</td><td>'; 24echo '<input type="password" name="password" value="', $password, '">'; 25echo '</td></tr>'; 26echo '</table>'; 27echo '<input type="submit" value="確定">'; 28echo '</form>'; 29?> 30<?php require '../footer.php'; ?>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/03/13 07:22