<% set_form_variables # user_id_from_search is the one we care about set db [ns_db gethandle] set domain_id [database_to_tcl_string $db "select contest_domain_id_sequence.nextval from dual"] ns_db releasehandle $db %> <%=[ad_header "Add New Contest"]%>

Add New Contest

<%=[ad_admin_context_bar [list "index.tcl" "Contests"] "New Contest"]%>
> <%= [export_form_vars domain_id] %>

About your Contest

We need something to use as a database key. Something reasonably short and without spaces, but descriptive. E.g., for a contest where you are giving away tickets to Paris, you could use "ParisTix" or "Paris_tickets".

Your domain name is going to be part of a SQL table definition. That means that special characters such as "-" are out. Just use alphanumerics and underscores. Oracle limits table names to 30 characters and we're already using 17 some to form the entrants table, so please limit you domain name to no more than 13 characters.

Domain Name:

You don't want to show something ugly like "Paris_tickets" to readers. So please enter a pretty name, e.g., "Tickets to Paris Contest".

Pretty Name:

Next, we need to know the part of this service where the contest starts off (typically one page before the entry form). Presumably this is on this server and need not include the "http://hostname"

Contest Home URL:

<% if [ad_parameter SomeAmericanReadersP] { ns_puts " Is your contest limited to residents of the United States? Yes No " } else { ns_puts "\n" } %>

If we're going to generate an entry form for you, then you'll want to explain something about this contest on the top level page, e.g., stating the conditions under which you are giving out prizes and what people must do to win. Note that, at least in the United States, it is very difficult to run games of skill (where you give prizes only to people who answer correctly). It is much easier legally to run games of chance (where you give prizes to everyone who enters). An example would be "Every month, we'll give away a free round-trip ticket to Paris from any city in the United States.".

Explanatory HTML for the entry form:

Note that this is unnecessary if you're going to write your own entry form from scratch.

Dates

This software will bounce entrants who are too early or too late. You just have to say when this contest starts and ends.

Contest Start Date (optional): <%=[philg_dateentrywidget_default_to_today start_date]%>
Contest End Date (optional): <%=[philg_dateentrywidget_default_to_today end_date]%>

Options

You can change these later, so don't agonize too much...

Do you want the maintainer to be notified every time a user enters the contest? Yes No

Note: you might set this up to notify you right now, then disable it once you have a good feel for the volume of entries.

<%=[ad_contest_admin_footer]%>