Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコードを書きました
<?xml version="1.0" ?> <wml> <card> title : <input type="text" name="title" /><br/> body : <input type="text" name="body" /><br/> <?php echo $(title) ?> </card> </wml>
問題 入力された値をphpコード内の入力テキストに出力する方法。
まず、入力フィールドに何かをさせたい場合は、マークアップでフォームを定義する必要があります。フォームにはactionおよびmethod属性が必要です。
action
method
次に、$_GETまたは$_POSTスーパーグローバル配列を使用して、次の方法でデータにアクセスできます。
$_GET
$_POST
echo $_POST['title'];