PHPでエスケープ処理がうまくいきません。
エスケープ処理自体初めてなので間違っている箇所があれば指摘してほしいです。
ぐぐってもいまいちわからなかったですし
アップロードしたサイト上で確認するとどうやらclassが反映されていないことと
<input type="submit" value="内容を確認する">
をクリックしてもNotFoundになってしまうことです。
lang
1<section> 2 3<h2>送信内容確認</h2> 4 5<?php 6$user1 = $_GET["name"]; 7$user2 = $_GET["mail"]; 8$user3 = $_GET["place"]; 9 10if ($_GET["select"] == 1 ) { 11 $user4 = 1; 12}elseif($_GET["select"] == 2 ) 13{ 14 $user4 = 2; 15}elseif($_GET["select"] == 3 ){ 16 $user4 = 3; 17}elseif($_GET["select"] == 4 ){ 18 $user4 = 4; 19}elseif($_GET["select"] == 5 ){ 20 $user4 = 5; 21} 22$user5 = $_GET["question"]; 23 24echo "<form action=" contact-send.php " method= " get "> 25<table class=" ta1 mb1em "> 26<tr> 27<th>お名前※</th> 28<td>".$user1."</td> 29</tr> 30<tr> 31<th>メールアドレス※</th> 32<td>".$user2."</td> 33</tr> 34<tr> 35<th>ご住所</th> 36<td>".$user3."</td> 37</tr> 38<tr> 39<th>お問い合わせ項目※</th> 40<td>".$user4."</td> 41</tr> 42<tr> 43<th>お問い合わせ詳細※</th> 44<td>".$user5."</td> 45</tr> 46</table>"; 47 48 49?> 50 51<p class="c"> 52<input type="submit" value="内容を確認する"> 53</p> 54 55</section>
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。