West Wind Web Connection for Visual FoxPro
The following examples all generate output dynamically using Visual FoxPro and Web Connection. If you're testing these examples on your own Web server make sure that the CGITEST.PRG sample program is running in a Visual FoxPro session before selecting any options on this form!

Simple CGI Request

The following link shows what kind of information is returned to your code from a Web Server CGI request. Using the wwCGI object you can find out about server and browser info as well as form variables defined on an HTML form.

Simple CGI Test


Data Query Example

The following example form allows you to query a time and billing database by selecting a client name and date range. To see a list of clients and pick one from the list click on the Client Name header button.

Client Name:

From: 
  To: 


Multi-Select Data Query Example

Here's the same example using a multi-select list box. Note for demo purposes this list is hardcoded with names (see above Client list example for creating dynamic list boxes)...

Client Name:


Data Input and Interactive HTML Forms

The Guest Book application demonstrates use of interactive HTML forms containing embedded Visual FoxPro Expressions. This form can take input from the user and save and update the values in a table. The main page uses an HTML template page stored on disk. The page contains the table fields and several expressions to display all data without having to generate the HTML in code.


Embedded HTML Example

The following example uses no Code on the Visual FoxPro end, but instead embeds Visual FoxPro code directly into the HTML page.

Client Name:


E-Mail Sample

The following example shows off Web Connection's ability to send SMTP email using the CGIServer's SendMail method. Enter your e-mail address below and Web Connection will reply by sending you a form email message...

Enter your email address :


HTTP Cookie Test

The following link assigns an HTTP Cookie with a lifetime of the Browser session. Cookies are great for keeping track of users when transactions spans multiple pages or forms. This example simply creates a Cookie and displays the value. If cookies are supported by your Browser the value should stay the same on each refresh, unless you stop and restart your browser.

Cookie Test


Powered by Web Connection