securityCheck(client.valid, client.usertype, "employer", "../login.htm?type=employer"); if(!dbCheck()) { redirect("../error.htm?error=dbfail"); } cursor = database.cursor("select * from employer where empid='" + client.userID + "'"); cursor.next(); // Initialize the cursor. // Parse out the month and year of the Credit Card expiration date if it isn't null. if (cursor.expdate != null) expdate = new Date(cursor.expdate); else expdate = new Date(); // default to today's date expmo = expdate.getMonth() + 1; // add one since getMonth returns 0-11 expyear = 1900 + expdate.getYear(); expyear += ""; expmo += ""; bodystr = dynBody("settings.cfg");

# Employer Profile Form

## Business Basics:

Business Name: |
Phone: |
Fax: |
URL: |
E-Mail: |
Addr 1: |
Addr 2: |
City: |
State: | if (cursor.state == null) tempStr = ""; else tempStr = cursor.state; stateList("state", "1", false, "", tempStr); // see dynhtml.js
Zip: |
Country: | if (cursor.country == null) tempStr = "US"; // Default to a value of United States else tempStr = cursor.country; countryList("country", "1", false, "", tempStr);

## Contact Information:

Contact Name: |
Phone: |
Fax: |
E-Mail: |

## Tell Us About Your Company:

### A Brief Description

(200 chars max.)
// Dynamically create the TEXTAREA and fill it with data from the database. write(""); /* Only write out the value if it is not null. If did not perform this check and the value was null, the string "null" would be printed, and that would look messy. */ if (cursor.desc != null) { descrip = unEscString(cursor.desc); // process the string for SQL Statements write(descrip); // see "lib/sqlstr.js" for a description } </server>

## Payment Information:

Credit Card

Purchase Order

Enter information below for only one payment method or the other, not both.

Credit Card Information:

Card Type: |
Card No.: |
Exp. Date: | Mo. Year:

Purchase Order Information:

P.O. Number:

cursor.close();

| #### Return to the WorkNet Home Page.