I am trying to display the row values in Dataextension based on the values submitted in the landing page form .Is there any way to display the retrieved value in HTML? And the code which i tried is
<!DOCTYPE HTML>
%%[ set @UrlThispg = RequestParameter('PAGEURL') ]%%
<script runat="server" type="text/javascript">
Platform.Load("core", "1");
if (Request.Method == "POST")
{
var useremail = Request.GetFormField('useremail');
Write("UserMail::<br/>"+useremail);
var CDE = DataExtension.Init("Codelist");
var filter = {Property:"codeno",SimpleOperator:"equals",Value:"78888"};
var totrowscount=CDE.Rows.Retrieve(filter);}
</script>
<html>
<head>
</head>
<body>
<form id="formName" action="%%=v(@urlThispg)=%%" method="post" enctype="application/x-www-form-urlencoded">
<input type="text" name="useremail" placeholder="Your email address...">
<input type="submit" value="submit">
</form>
</body>
</html>
And to desserialize the json and display the out put i have used the method defined in docmentation here ETDocument .But I am not sure whether I am using it in correct place.If I could get some help it will be great.Thanks in advance.