initial import

This commit is contained in:
udo
2022-01-21 09:10:38 +00:00
parent ad3d65cdac
commit c047927b18
171 changed files with 16540 additions and 1 deletions
+47
View File
@@ -0,0 +1,47 @@
void show_form()
{
<><form action="?" method="post" enctype="multipart/form-data">
<div>
<label>Some text:</label>
<input type="text" name="fühld" value="<?= context->post["fühld"] ?>"/>
</div>
<div>
<label>Some multiline text:</label>
<textarea name="field2"><?= context->post["field2"] ?></textarea>
</div>
<div>
<input type="submit" value="Submit Form"/>
</div>
</form></>
}
RENDER()
{
<>
<link rel="stylesheet" href='style.css?v=1'></link>
<h1>
<a href="index.uce">UCE Test</a>:
Multipart-Encoded Form POST
</h1>
<? show_form(); ?>
<div>
</div>
<label>Parsed POST fields</label>
<pre><?= var_dump(context->post) ?></pre>
<label>Raw POST content</label>
<pre><?= context->in ?></pre>
<label>CGI Params</label>
<pre><?= var_dump(context->params) ?></pre>
</>
}