.tutorial

git-svn-id: svn://ultimatepp.org/upp/trunk@5171 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-07-10 19:55:39 +00:00
parent 6416ba3242
commit d482d800ea
2 changed files with 4 additions and 4 deletions

View file

@ -7,8 +7,8 @@
<INPUT type="submit" value="Add to list">
</P>
</form>
List ($count(LIST)):<br>
$for(i in LIST)
List ($count(.LIST)):<br>
$for(i in .LIST)
"$i"
$endfor
</body>

View file

@ -9,12 +9,12 @@ SKYLARK(HomePage, "")
SKYLARK(Submit, "submit:POST")
{
Value h = http["LIST"];
Value h = http[".LIST"];
ValueArray va;
if(IsValueArray(h))
va = h;
va.Add(http["id"]);
http.SessionSet("LIST", va);
http.SessionSet(".LIST", va);
http.Redirect(HomePage);
}