fixed the examples
This commit is contained in:
parent
1f0f08f787
commit
8195154e4c
@ -4,7 +4,7 @@ void show_stuff()
|
||||
{
|
||||
//context->header["Content-Type"] = "text/plain";
|
||||
|
||||
<html>
|
||||
<><html>
|
||||
Mwahahaaha <?= time() ?>
|
||||
<div>hello world: <?= context->params["HTTP_HOST"] ?></div>
|
||||
<pre>
|
||||
@ -169,14 +169,14 @@ California Privacy Notice
|
||||
Lifewire is part of the Dotdash publishing family.
|
||||
|
||||
</pre>
|
||||
</html>
|
||||
</html></>
|
||||
|
||||
}
|
||||
|
||||
RENDER()
|
||||
{
|
||||
|
||||
<html>
|
||||
<><html>
|
||||
<link rel="stylesheet" href='style.css?v=1'></link>
|
||||
<h1>
|
||||
<a href="index.uce">UCE Test</a>:
|
||||
@ -184,6 +184,6 @@ RENDER()
|
||||
</h1>
|
||||
<? show_stuff(); ?>
|
||||
<pre><?= var_dump(context->params) ?></pre>
|
||||
</html>
|
||||
</html></>
|
||||
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
RENDER()
|
||||
{
|
||||
|
||||
<html>
|
||||
<><html>
|
||||
<link rel="stylesheet" href='style.css?v=1'></link>
|
||||
<h1>
|
||||
<a href="index.uce">UCE Test</a>:
|
||||
@ -42,6 +42,6 @@ RENDER()
|
||||
|
||||
<label>CGI Params</label>
|
||||
<pre><?= var_dump(context->params) ?></pre>
|
||||
</html>
|
||||
</html></>
|
||||
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
void show_form()
|
||||
{
|
||||
|
||||
<form action="?" method="post">
|
||||
<><form action="?" method="post">
|
||||
<div>
|
||||
<label>Some text:</label>
|
||||
<input type="text" name="field" value="<?= context->post["field"] ?>"/>
|
||||
@ -14,14 +14,14 @@ void show_form()
|
||||
<div>
|
||||
<input type="submit" value="Submit Form"/>
|
||||
</div>
|
||||
</form>
|
||||
</form></>
|
||||
|
||||
}
|
||||
|
||||
RENDER()
|
||||
{
|
||||
|
||||
<html>
|
||||
<><html>
|
||||
<link rel="stylesheet" href='style.css?v=1'></link>
|
||||
<h1>
|
||||
<a href="index.uce">UCE Test</a>:
|
||||
@ -38,6 +38,6 @@ RENDER()
|
||||
|
||||
<label>CGI Params</label>
|
||||
<pre><?= var_dump(context->params) ?></pre>
|
||||
</html>
|
||||
</html></>
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user