These examples use
Databases - Delphi WebServer - Data Entry Form basic html form commands
and work with a TPageProducer.
On this page, there are many references to a
Delphi web server.
You should interpret that to mean either an *.exe or an *.dll file.
| Calling Actions
| Different Browser Types
| Automatic Submission
Stopping History Entries
| Locating items on the form
| Selecting a record with an html combobox
However, when a web server displays a form,
and the response calls the same server, then
This defines a basic form with a single data entry field and a button.
Basic form structure Action
should point to just the PretendDirectory.
__doPostBack is a function created by IIS for
When a single web page is called over and over,
each call is placed in the browser's history list.
There are many times that this is acceptable, and others where it is not.
Stopping History Entries
According to -
Q244 (dated 2-28-05)
You cannot tell the browser to not store the URL in the history.
Several FAQs on this page provide work arounds to keep
data out of the History buffer. Based on the number of related questions,
there is an obvious need for a real solution.
In most applications, you can place a data entry field or button
anywhere you want.
Standard html does not provide this capability.
Locating items on the form
Traditionally, users have used tables and clear *.gif files to
fake it. Unfortunately,
the W3C Web Accessibility Initiative forbids this method.
(Useful formatting is not fair to disabled users that can
not understand the formatting.)
These examples (produced via an
ASP.NET page) show how to use
style information inside individual elements
to explicitly control position.
This button calls the specified web page
This button is used to return to the main page.
I hate using the double dots (I don't like what it does to the web server stats),
but I don't know what else to do.
To simplify the Exit button (required on all pages), I use substitution
in the web pages is replaced via
Using a single dot produces ../CGI_Filename.exe/ (notice trailing slash)
It displays the correct info ... but links to internal pages are wrong
A null string does nothing
Just double dots calls the parent page
if TagString = 'Exit_Button' then begin
This are 2 alternatives
I searched the web to find this code - what I found DID NOT WORK (but it was close).
There are 2 apparent problems
Normally, forms are submitted via a button ... this is another way -
when a new value is selected, the form submits.
Selecting a record with an html combobox
Specifically, these combinations fail (nothing happens)
theform = document.Edit_Sphere_Assignments fails
theform = Edit_Sphere_Assignments works
The form name property does not work - you have to use id