|
[1] INSTALL THE PHP CODE ONTO YOUR WEBSERVER
The DSL Lookup script is being rewritten. Version 2 will be released within 1 weeks time.
[2] CREATE THE HTML QUERY FORM
The next step is the setup of the query form program on your site. You will need create an Html Form to access the sript you installed in step [1]. A sample script is provided below. You may modify it to suit your needs, however all variables must stay the same to ensure propper functioning of the script.
Broadband Locator HTML Query Form
This form is very simple, and requires only three fields. These fields must be named as in the example, otherwise the Broadband Availability PHP program will not work.
Please view the SAMPLE FORM and include it in the web page used to submit information to the PHP program that you installed in step [1]:
This HTML code generates a form that looks like:
[3] CUSTOMIZE THE HTML OUTPUT
One of the features of the programs is that the html output can be completely customized to match the rest of your site. This is done without the need to make any changes to the script itself. If you have some basic experience with PHP you will be able to customize the output script and display or link to your own products.
The way it works is very simple. The script will look for two files located in the same directory as itself. These files should be named head.tmpl and foot.tmpl.
The program will read the head.tmpl file and display it's entire contents as the first thing it does. The next output is a simple HTML table containing the local access number, followed by a disclaimer. The program then reads the foot.tmpl file and displays it's entire contents.
At a minimum the head.tmpl should contain:
<html>
<head>
<title>Your Title Here</title>
</head>
<body>
The foot.tmpl should contain at a minimum:
</body>
</html>
|