When should I use the URL and when a Web form
for passing arguments to a CGI-program?
Your CGI-programs will normally be able to receive their arguments
by either way.
Passing arguments through a Web form
A web form is more user friendly.
Always try to create self-explanatory web forms as interface for your CGI-programs.
Passing arguments through the URL
- During development of a CGI-program, it might be convenient for you
to pass its arguments through the URL, especially if the corresponding
HTML form is not yet ready.
- When you want to provide a link to a specific entry in a database.
In the link you write the name of the CGI-program that queries
the database and the arguments required to retrieve the desired entry.
Table of Contents.