|
custom_parameter |
Top Previous |
|
Description:
Pass custom parameters to the database via the Java Applet. For example you can use this to gather information such as UserID, Email, or Location ID from the ASPX/PHP page, and when the user finishes the speed test, all the parameters will be passed to the SpeedCheck_statistics.aspx/php then writes to the database. The results shows in the admin report, you can identify the session is coming from which user or which location.
For advance users, you can customize your own column name in the database, and you have to modify the code in SpeedCheck_statistics.aspx/php, SpeedCheck_admin_report.aspx/php accordingly.
Syntax:
custom_parameter_1 custom_parameter_3
Notes:
- We only support maximum 3 custom parameters - This works ONLY when statistics is enabled
Example:
PHP: <param name="custom_parameter_1" value="<?php echo urlencode("Custom1");?>"> <param name="custom_parameter_2" value="<?php echo urlencode("Custom2");?>"> <param name="custom_parameter_3" value="<?php echo urlencode("Custom3");?>">
ASPX:
<param name="custom_parameter_1" value="<%=HttpUtility.UrlEncode("Custom1")%>"> <param name="custom_parameter_2" value="<%=HttpUtility.UrlEncode("Custom2")%>"> <param name="custom_parameter_3" value="<%=HttpUtility.UrlEncode("Custom3")%>">
|