Business Directory
Trade Forum
Vision 2000
Delphi
Domain Rates
Search
Music
Opinion Award
About
FeedBack
Quit


Delphi Internet

| Tips & Tricks | Bug List | Cool Delphi Sites |
| Connectivity | Delphi 2.0 Features | Internet |

HTML Code for the CGI Tester!

Don't really enter your email, this is a sample page that demonstrates the HTML that calls the script. If you create your page correctly, this is what you should see! Read the directions belows the horizontal rule.

Your email here:


To create your own form that will trigger a CGI event, edit/copy then edit/paste the HTML code that follows this paragraph. You can paste the text into the Windows NotePad (or Write or Word, etc.). Save the files as text only (*.txt) into the Website directory heierarchy, perhaps C:\WEBSITE\HTDOCS. Please note, you will select (*.txt) as the file type, but you must use the HTM extension in the file name dialog box, i.e. CGITESTR.HTM. Or simply download the file and unzip it.

The full path might be C:\WEBSITE\HTDOCS\CGITESTR.HTM.

Notice the FORM ACTION entry directing the server to the CGI-WIN directory. The WebSite Server will look in the cgi-win subdirectory for a program entitled eecgi.exe.

<HTML><HEAD>
<TITLE>CGI with DELPHI and WebSite! </TITLE>
</HEAD><BODY><H2>CGI Tester!
</H2><P>
<HR>
Don't really enter your email, this page just demonstrates the HTML for calling the script. PRESS THE SUBMIT BUTTON.
<P>
<FORM ACTION="../cgi-win/eecgi.exe" METHOD="Post">
Your email here:<INPUT TYPE="text" NAME="email" SIZE="40"><INPUT TYPE=submit>
</FORM>
<HR>
</BODY>
</HTML>

After the file has been created, you can start the WebSite server and your browser. If your system has an IP address of 205.214.124.23 then you will load the following URL to look at your form "http://205.214.124.23/cgitestr.htm". If your system is properly configured the form will load. Don't press the submit button, you haven't created the script.  

| Borland Delphi | About the Authors | Home |

For Queries Mail To Webmaster

Copyright © 1996 Asylum Software Pvt. Ltd. This is an ASPL production.
Produced in conjunction with ASPL DELPHI TEAM.
Last revised November 27, 1996.