Following is my form html code:
<form action="mysite.com/searchNum" method="post">
<div>
<label for="say">Number</label>
<input name="num" id="num" value="">
</div>`
<div>
<button>Send</button>
</div>
</form>
When I submit the form I get something like this:
{
"message": "Successfully retrived",
"error": false,
"result": [{
"id": 6128071,
"name": "jhon doe",
"number": "31231231230",
"city": "C",
"cnic": "8982378237897278",
"address": "address123",
"activation_date": "0"
}]
}
How do I show response data in following format and show on other page
(data.html):<br>
Name : ___<br>
Number: ______<br>
Cnic: ________<br>
Address : ________<br>
activation date: _______