Multi-programming-language "cookbook", sample CGI code

Table of contents (after decoding relevant HTML FORM fields):
.
.
.
.
.
.
.
.
 
 
 

Check one key=val for correct value: PHP
 
 
 


 
PHP

Check one key=val, PHP

Dummy form with field missing:
Dummy form with field present, but contents alphabetically too early:
Dummy form with contents alphabetically too late:
Dummy form with contents exactly correct:
Live form for you to fill in the text:
(Warning: Case sensitive. All upper-case comes before any lower case!)
See source. //INEDIT
.
.
.
.
.
.
.
.
 
 
 

Validating/parsing decimal-integer fields: PHP / perl / lisp / c / c++ / java
 
 
 


 

Decimal-integer fields, PHP

Put some text here: and here: and here: and here: and here: and here: and here: and here: then run my and see what happens.

See source.
 
 
 

Decimal-integer fields, perl

Put some text here: and here: and here: and here: and here: and here: and here: and here: then run my and see what happens.

See source.
 
 
 

Decimal-integer fields, common lisp

Put some text here: and here: and here: and here: and here: and here: and here: and here: then run my and see what happens.

See source.
 
 
 

Decimal-integer fields, c

Put some text here: and here: and here: and here: and here: and here: and here: and here: then run my and see what happens.

See source.

A re-write of that code, try this too:

Put some text here: and here: and here: and here: and here: and here: and here: and here: then run my and see what happens.

See source.
 
 
 

Decimal-integer fields, c++

Put some text here: and here: and here: and here: and here: and here: and here: and here: then run my and see what happens.

See source.
 
 
 

Decimal-integer fields, java

Put some text here: and here: and here: and here: and here: and here: and here: and here: then run my and see what happens.

See source.

.

.

.

.

.

.

.

.

.

.


 
 
 


Setting cookie, then retrieving it later: PHP / perl / lisp / c / c++ / java
 
 
 


 

Set cookie, PHP

Put some text here:
then run my and see what happens.


 
 
 

how to contact me

Copyright 2007 by Robert Elton Maas, all rights reserved