Chpater8. handling html & cgi, 1 web configuration, 2 example html code – Solvline Eddy DK Ver 2.20 User Manual
Page 63: Chpater8. handling html & cgi -1, 1 web configuration -1, 2 example html code -1
Chapter 8. Handling HTML & CGI
Chpater8. Handling HTML & CGI
This chapter describes the HTML documents and CGI modules that are used for configuration. Provided CGI
source and HTML documents are used by Eddy’s default firmware. Take a look at these sources and modify them as
you want.
8.1 WEB Configuration
HTML sources run by Eddy are located at src/Eddy_APPs/web/htdocs.
CGI sources supporting information needed by HTML is located at src/Eddy_APPs/web/cgi.
getagent.c
This reads environment configuration file of /etc/sb_config and transfers configuration value to HTML page to
show configuration information with browser.
setagent.c
This reads configuration value modified by user in HTML page and saves to configuration file of /etc/sb_config.
8.2 Example HTML code
The following example is part of main.html source.
For users cannot program using variables as they would do in C language, HTML processes by using symbols
linked with CGI to receive value as shown below.
Shown in red are symbol link which transfers value from getagent.c.
(network.html source abstract)
="N_IP
" value="[v,
n_ip
]" >
" value="[v,
n_mask
]"
>
" value="[v,
n_gw
]" >
8-1