Hey guys I have a form where the output is saved in database. What I want is to save it in a json string and show the string.
<form>
First name:<br>
<input type="text" name="firstname">
<br>
Last name:<br>
<input type="text" name="lastname">
<select name="gender" >
<option value=""></option>
<option value="Man">Man</option>
<option value="Vrouw">Vrouw</option>
</select>
adress:<br>
<input type="text" name="adress">
<input type="submit" class="submit" value="Submit!" />
</form>
{
"PersonalData" : {
"Gender" : [value of gender]
"FirstName" : "[valeu of firstname]",
"adress" : "[valeu of adress]",
}