Append?db=DatabaseName&field1=xx&field2=xx
To add new records to a database, use a web browser to link to a URL containing the Append command (alternately, you may embed an [Append] context into a template). Whenever WebCatalog receives an Append command, it immediately adds a new record to the end of the specified database given the named field values.
Example (normally you would link to a URL or form containing the following information):
Try It!
The database "SomeDatabase.db" is opened, and a new record is added to the end with fieldname "name" being set to "Grant", fieldname "address" being set to "1492 Somewhere Lane", and fieldname "zip" being set to "90000". The page sent back to the browser will be xx.tpl
Any fieldnames that do not exist in the database are ignored, and any fields you do not specify are left blank in the new record. You may specify a relative or full URL to the database file, as in "/WebCatalog/Folder/SomeDatabase.db" or "../SomeDatabase.db". The path to the database is always relative to the template URL, so if the database is in the same folder as the template the path would be "SomeDatabase.db", and if the database were one folder up then the path would be "../SomeDatabase.db".
Here are some other ways to send the same command:
|
HTML Source |
Description |
|
Hyperlink to WebCatalog CGI |
|
Hyperlink to WebCatalog plugin |
|
|
|
|