12.02.2013 Views

Community Building with ChatSpace Server Manual

Community Building with ChatSpace Server Manual

Community Building with ChatSpace Server Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<br />

<br />

Name: <br />

Age: <br />

<br />

<br />

<br />

<br />

When the user enters his name and age into the form, then clicks the button,<br />

<strong>ChatSpace</strong> generates a URL (web address) like this:<br />

http://www.My<strong>Server</strong>.com/<br />

displayNameAndAge.htm?username=Bob&userage=40<br />

This task does not perform special processing. Almost all web servers work<br />

in this standard manner <strong>with</strong> respect to forms.<br />

The sample code below demonstrates how an HTML page served by a<br />

<strong>ChatSpace</strong> Web <strong>Server</strong> uses the variables in the URL.<br />

<br />

<br />

Your name is %username%<br />

<br />

Your age is %userage%<br />

<br />

<br />

Built-in Web <strong>Server</strong> Variables<br />

The following is the list of the Built-in Web <strong>Server</strong> variables which can be<br />

used in HTML files served by the <strong>ChatSpace</strong> Web <strong>Server</strong>:<br />

Variable Explanation<br />

%nick% Nickname as passed in on the URL via the nick= parm.<br />

%name% The value passed in on the URL via the name= parm.<br />

67

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!