The Source
So you all want to know how this masterpiece was constructed, right? Right? Well, here's the source for your enjoyment.
The program requires PHP 4 and mysql, though it could easily be adapted to use other databases (or even other languages if you were feeling adventurous).
The original version, which requires register_globals to be on, is here:
http://www.iamcal.com/games/choose/room_globals_on.phps
A new, updated version, which doesn't requires register_globals to be on, is here:
http://www.iamcal.com/games/choose/room_globals_off.phps
A script to allow an administrator to edit rooms is here: (you'll want to password protect it)
http://www.iamcal.com/games/choose/edit.phps
And finally you'll need the database schema:
CREATE TABLE choose_rooms (
id int(11) NOT NULL auto_increment,
email varchar(255) NOT NULL default '',
blurb text NOT NULL,
text_1 varchar(255) NOT NULL default '',
room_1 int(11) NOT NULL default '0',
text_2 varchar(255) NOT NULL default '',
room_2 int(11) NOT NULL default '0',
end_here tinyint(4) NOT NULL default '0',
ip varchar(255) NOT NULL default '',
PRIMARY KEY (id),
) TYPE=MyISAM;
INSERT INTO choose_rooms VALUES (1, 'cal@iamcal.com', 'First Room', 'Choice 1', 0, 'Choice 2', 0, 0, '');