Equinox Online Help - Language Reference - A to Z

Home

WebPostData

Applies to
SyntaxWebPostData memo
Action[Statement] Returns the raw form post data to a variable which must be an Equinox memo. HTML form parameters can still be retrieved with WebParameter, provided the entity encoding has not been changed from the default.
ScopeUsed in method language on an ESP page.
Notes

Retrieving the entity body of a form post using WebPostData may require extensive parsing to extract the content.

CategoryWeb Server
See Also WebBaseDirectory, WebCurrentPage, WebGetCookies, WebGetHeader, WebOutput, WebOutputFile, WebParameter, WebRedirect, WebSetCookie, WebSetHeader
Example

This example demonstrates how data posted in an HTML form can be collected and manipulated.

This is an extract from an html page using a form to collect input:

<form action="/forum/save_upload.esp" ENCTYPE="multipart/form-data" method="post"^gt;
<table>
<tr>
<td>Upload the following file:</td>
<td><input type="file" size=40 name="File"></td>
</tr>
<tr>
<td>Give it the following title:</td>
<td><input type="text" size=54 name="Title"></td>
</tr>
<table>
<input type="submit" value="Upload" name="B1">
</form>

This second esp page assigns the posted data to a memo called mPostData that can then be manipulated in the normal manner.

This is an extract from the file SaveUpload.esp

memo mPostData

| Get the full set of posted data
WebPostData mPostData