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