Download WebPort Programming Guide

Transcript
WebPort Programming Guide
Ver 1.0
5.31.2005
Basic Program and Custom Web Page Tutorial
6.2.4 Dynamically built Web Pages
You can build your web page dynamically thanks to the <%#ExeSSI,___%> syntax, and you can even use context
variables.
See /usr/Page4.shtm
<%#ExeSSI,
rem here, we are in Basic
print #0,"This message is dynamic"
print #0,"Current eWON time is: ";time$
print #0,"<br>"
for i%=1 to 5
print #0,"line ";i%
next i%
for i%=1 to 5
print #0,"line ";i%;
next i%
%>
Basic instructions for the generation of the output above
Note that a html <br> (line break) is added at the end of each
output of PRINT #0,”text”
You need to add a semi-colon (;) at the end of PRINT to avoid
this <br> addition.
output of PRINT #0,”text”
Page 33