I wrote the following code
<?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>
the problem How I print the entered value in input text inside php code.
First of all, you need to define a form in your markup if you want the input fields to do anything. The form should have an
action
and amethod
attribute.Then you can use the
$_GET
or$_POST
superglobal arrays to access the data in the following manner: