eWebEditor Home >> eWebEditor Documentation >> Developer Guide >> Code Examples

Retrieving code from a form post

Make sure that eWebEditor is placed within a form.

When the form is submitted eWebEditor will behave exactly as if it were a textarea.

This example demonstrates how to receive and display HTML code submitted by form.

This example is packed in the example directory of _example/retrieve.asp(.php/.aspx/.jsp) in compressed system package.

ASP:

<%
Dim sContent, i
For i = 1 To Request.Form("content1").Count
    sContent = sContent & Request.Form("content1")(i)
Next
Response.Write "Content:<br><br>" & sContent
%>

PHP:

<?php
echo "Conent:<br><br>".stripslashes($_POST["content1"]);
?>

JSP:

<%
String sContent1 = request.getParameter("content1");
out.println("Content:<br><br>" + sContent1);
%>

ASP.NET (VB.NET)

<%
Dim sContent1
sContent1 = Request.Form("content1")
Response.Write ("Content:<br><br>" & sContent1)
%>