if(request.table != null) client.table = request.table; if(client.table == null) redirect("table.html"); if(client.cols == 0) client.create = "CREATE TABLE " + client.table + " (\n"; else client.create = client.create + ",\n"; if(request.name != null) { client.columns = client.columns + "
" + request.name + "
" + request.type + "
" + request.size + "
" + request.nulls + "
" + request.index + "
"; client.create = client.create + request.name + " " + request.type; if(request.type == "CHAR" || request.type == "VARCHAR" || request.type == "NUMERIC") { client.create = client.create + "(" + request.size + ")"; } if(request.nulls == "Not Allowed") { client.create = client.create + " NOT NULL"; } client.cols = 1 + parseInt(client.cols,10); }

Columns for Table: write(client.table);

Column Name | Type | Size | Null | Index
--- | --- | --- | --- | ---
write(client.columns);

<server>write(client.create + ")");</server>