kidsnav.gif (4714 bytes)

Contact Us

boydog.gif (38330 bytes)

Registration & Contact Form

Tell us what you think about our web site or sign up to help! We welcome all of your comments and suggestions, and most of all your participation. Feel free to just enter a comments in the space below. NOTE: We do not release your contact information to anyone outside the group.

If you just have a question or a comment, and do not want to register -- check our email form.
If you have already registered and want to either or modify or delete that information, login here.

Please be patient, we are a small group now. Someone should acknowledge your message within a week, please resubmit if you don't hear anything.

\n"); $host="anvil"; $db="kidsrigh"; $table="users"; $order_by=""; $error=""; # Open the DB connection $status = DB_Open($db,$host, $user, $DBpasswd, $conn); if ($status) { $error = $error . $status; } // create our search array of placeholders $search = array( "SUB_ADDR" => $SUB_ADDR, "PASSWORD" => "", // remainder are empty "ADDRESS" => "", "USERNAME" => "", "CONTENT" => "", "WEBMASTER" => "", "COORDINATE" => "", "MAIL_LIST" => "", "CIVIL" => "", "CIVIL_SUPPORT" => "", "MEMBER" => "", "MEMBER_SUPPORT" => "", "SUBJECT" => "", "USERNAME" => "", "ORGANIZATION" => "", "URL" => "", "ADDRESS" => "", "CITY" => "", "STATE" => "", "ZIP" => "", "COUNTRY" => "", "WORK_TEL" => "", "HOME_TEL" => "" ); # the following must be set to "off" in case they do not appear in the form # response. Else, they are not placed in any associative arrays. # if (! $WEBMASTER) { $WEBMASTER = "off"; } if (! $CONTENT) { $CONTENT = "off"; } if (! $COORDINATE) { $COORDINATE = "off"; } if (! $MAIL_LIST) { $MAIL_LIST = "off"; } if (! $CIVIL) { $CIVIL = "off"; } if (! $CIVIL_SUPPORT) { $CIVIL_SUPPORT = "off"; } if (! $MEMBER) { $MEMBER = "off"; } if (! $MEMBER_SUPPORT) { $MEMBER_SUPPORT = "off"; } # first check to see if there are users already existing with that address # and get their data # amount of search is based on type of request. if (!strcmp($ACTION, "NEW") ) { // we look for sub_addr // no change to search array } else if (!strcmp($ACTION, "SEARCH") || !strcmp($ACTION,"UPDATE") ) { // match on sub_addr and password $search[PASSWORD] = crypt($PASSWORD,substr($PASSWORD,2,2)); } else if (!strcmp($ACTION, "DELETE")) { // we want a match on ALL $search[PASSWORD] = crypt($PASSWORD,substr($PASSWORD,2,2)); $search[ADDRESS] = $ADDRESS; $search[USERNAME] = $USERNAME; $search[CONTENT] = $CONTENT; $search[WEBMASTER] = $WEBMASTER; $search[COORDINATE] = $COORDINATE; $search[MAIL_LIST] = $MAIL_LIST; $search[CIVIL] = $CIVIL; $search[CIVIL_SUPPORT] = $CIVIL_SUPPORT; $search[MEMBER] = $MEMBER; $search[MEMBER_SUPPORT] = $MEMBER_SUPPORT; $search[SUBJECT] = $SUBJECT; $search[USERNAME] = $USERNAME; $search[ORGANIZATION] = $ORGANIZATION; $search[URL] = $URL; $search[ADDRESS] = $ADDRESS; $search[CITY] = $CITY; $search[STATE] = $STATE; $search[ZIP] = $ZIP; $search[COUNTRY] = $COUNTRY; $search[WORK_TEL] = $WORK_TEL; $search[HOME_TEL] = $HOME_TEL; } // end if-else type of action $status = DB_Get ($conn, $table, $search, $results,$order_by); # check here if they entered a password if (!$PASSWORD) { $status = "PLEASE enter a PASSWORD in the field provided. We cannot add your information without a PASSWORD"; } # check here if they entered an email addres, careful check $SUB_ADDR = trim($SUB_ADDR); # remove leading/trailing blanks if (!$SUB_ADDR) { $status = "PLEASE enter an EMAIL address in the field provided. We cannot contact you without an EMAIL address"; } else if (strstr($SUB_ADDR, " ")) { # can't have internal blanks $status = "SORRY, EMAIL address must not have blank spaces. Please try again."; } else if (!strstr($SUB_ADDR, "@")) { # better have one "@" $status = "SORRY, you forgot to include the '@' symbol in your EMAIL address."; } # make sure we get a TWO letter state $STATE = trim($STATE); if (strlen($STATE) != 2) { $status = "PLEASE enter only the two letter postal designation for your state. If you are outside the US, enter 'OT'"; } if ($status) { // something went wrong on our access $error = $status; } else { $numresults = count($results); // this confirms that what we want to do is okay # Now our action can be "NEW" -- for an insertion or "SEARCH/UPDATE" for an action # based on just SUB_ADDR and PASSWORD switch ($ACTION) { case "NEW" : if ($numresults == 0) { // no duplicate found $search[PASSWORD] = crypt($PASSWORD,substr($PASSWORD,2,2)); $search[ADDRESS] = $ADDRESS; $search[USERNAME] = $USERNAME; $search[CONTENT] = $CONTENT; $search[WEBMASTER] = $WEBMASTER; $search[COORDINATE] = $COORDINATE; $search[MAIL_LIST] = $MAIL_LIST; $search[CIVIL] = $CIVIL; $search[CIVIL_SUPPORT] = $CIVIL_SUPPORT; $search[MEMBER] = $MEMBER; $search[MEMBER_SUPPORT] = $MEMBER_SUPPORT; $search[SUBJECT] = $SUBJECT; $search[USERNAME] = $USERNAME; $search[ORGANIZATION] = $ORGANIZATION; $search[URL] = $URL; $search[ADDRESS] = $ADDRESS; $search[CITY] = $CITY; $search[STATE] = strtoupper($STATE); $search[ZIP] = $ZIP; $search[COUNTRY] = $COUNTRY; $search[WORK_TEL] = $WORK_TEL; $search[CREATE_TIME] = date("Ymd"); $search[HOME_TEL] = $HOME_TEL; # user doesn't see $search[CONFIRMED] = "no"; $status = DB_Insert($conn, $table, $search) ; if ($status) { $error = $error . $status . "Sorry, could not add you to the system, please send a message to webmaster@kids-right.org"; } # looks like the insert went okay, send us email $message = "Mailing List($MAIL_LIST) Member($MEMBER) Member Support($MEMBER_SUPPORT) Subject($SUBJECT)\n\nDear Kids-Right,\n\n$COMMENTS\n\nSincerely $USERNAME\n"; send_mail ("register@kids-right.org", "$SUB_ADDR", "Kids-Right Registration", "$message"); # send them email $message = "Dear $USERNAME,\n\nPlease keep this message. It contains the address and password you used to register with Kid's Right.\nAddress: $SUB_ADDR \nPassword: $PASSWORD\n \nIf you don't get a response within a week, please contact us again, your message may have been lost.\n\nBest Regards!\nKids-Right (register@kids-right.org)\n"; send_mail ("$SUB_ADDR", "register@kids-right.org", "Kids-Right: Got your information", $message); # sign them up for the mailing list if (!strcmp($MAIL_LIST, "on")) { $message="subscribe members"; send_mail("newsletter-subscribe@kids-right.org", "$SUB_ADDR", "subscribe", "subscribe"); } } else { // a duplicate $error = $error . "The email address: $SUB_ADDR is already in the system, please send a message to webmaster@kids-right.org"; } break; case "UPDATE" : case "DELETE" : if ($numresults == 1) { // found there $oldVal[SUB_ADDR] = "$SUB_ADDR"; $search[ADDRESS] = $ADDRESS; $search[USERNAME] = $USERNAME; $search[CONTENT] = $CONTENT; $search[WEBMASTER] = $WEBMASTER; $search[COORDINATE] = $COORDINATE; $search[MAIL_LIST] = $MAIL_LIST; $search[CIVIL] = $CIVIL; $search[CIVIL_SUPPORT] = $CIVIL_SUPPORT; $search[MEMBER] = $MEMBER; $search[MEMBER_SUPPORT] = $MEMBER_SUPPORT; $search[SUBJECT] = $SUBJECT; $search[USERNAME] = $USERNAME; $search[ORGANIZATION] = $ORGANIZATION; $search[URL] = $URL; $search[ADDRESS] = $ADDRESS; $search[CITY] = $CITY; $search[STATE] = strtoupper($STATE); $search[ZIP] = $ZIP; $search[COUNTRY] = $COUNTRY; $search[WORK_TEL] = $WORK_TEL; $search[HOME_TEL] = $HOME_TEL; # do NOT set CONFIRMED if (!strcmp($ACTION, "DELETE")) { $status = DB_Delete($conn, $table, $search); } else { $status = DB_Update($conn, $table, $oldVal, $search) ; } if ($status) { $error = $error . $status . "Sorry, could not $ACTION you in the system, please send a message to webmaster@kids-right.org"; } # the action went okay, if a DELETE, clear the fields if (!strcmp($ACTION, "DELETE")) { $SUB_ADDR = ""; $PASSWORD = ""; $USERNAME = ""; $ORGANIZATION = ""; $URL = ""; $ADDRESS = ""; $CITY = ""; $STATE = ""; $COUNTRY = ""; $ZIP = ""; $WORK_TEL = ""; $HOME_TEL = ""; } } else { $error = $error . "Sorry, there was an error getting your information ($SUB_ADDR). Make sure you entered your PASSWORD in the field provided. If this does not correct the problem send a message to webmaster@kids-right.org"; } break; case "SEARCH" : if (!$numresults) { // not there? $error = $error . "Sorry, could not find address: $SUB_ADDR in the system. PLEASE make sure you entered your password correctly. Click here to try again. feel this is in error please contact webmaster@kids-right.org"; } else if ($numresults > 1) { // TOO many $error = $error . "Sorry, there was an error getting your information ($SUB_ADDR). Please send a message to webmaster@kids-right.org"; } else { // okay $temp = $results[0]; $ADDRESS = $temp[ADDRESS]; $USERNAME = $temp[USERNAME]; $SUB_ADDR = $temp[SUB_ADDR]; $CONTENT = $temp[CONTENT]; $WEBMASTER = $temp[WEBMASTER]; $COORDINATE = $temp[COORDINATE]; $MAIL_LIST = $temp[MAIL_LIST]; $CIVIL = $temp[CIVIL]; $CIVIL_SUPPORT = $temp[CIVIL_SUPPORT]; $MEMBER = $temp[MEMBER]; $MEMBER_SUPPORT = $temp[MEMBER_SUPPORT]; $SUBJECT = $temp[SUBJECT]; $USERNAME = $temp[USERNAME]; $ORGANIZATION = $temp[ORGANIZATION]; $URL = $temp[URL]; $ADDRESS = $temp[ADDRESS]; $CITY = $temp[CITY]; $STATE = $temp[STATE]; $ZIP = $temp[ZIP]; $COUNTRY = $temp[COUNTRY]; $WORK_TEL = $temp[WORK_TEL]; $HOME_TEL = $temp[HOME_TEL]; } // end if- else break; default: $error = $error . "Severe System Error. Please notify webmaster@kids-right.org"; } // end switch } // end if-else error status if ($error) { // give them the error echo("

ERROR
$error
The following results may not be valid. Your message has not been sent to us!


"); } // Make any results HTML okay $ADDRESS = htmlspecialchars($ADDRESS); $USERNAME = htmlspecialchars($USERNAME); $SUB_ADDR = htmlspecialchars($SUB_ADDR); $CONTENT = htmlspecialchars($CONTENT); $WEBMASTER = htmlspecialchars($WEBMASTER); $COORDINATE = htmlspecialchars($COORDINATE); $MAIL_LIST = htmlspecialchars($MAIL_LIST); $CIVIL = htmlspecialchars($CIVIL); $CIVIL_SUPPORT = htmlspecialchars($CIVIL_SUPPORT); $MEMBER = htmlspecialchars($MEMBER); $MEMBER_SUPPORT = htmlspecialchars($MEMBER_SUPPORT); $SUBJECT = htmlspecialchars($SUBJECT); $USERNAME = htmlspecialchars($USERNAME); $ORGANIZATION = htmlspecialchars($ORGANIZATION); $URL = htmlspecialchars($URL); $ADDRESS = htmlspecialchars($ADDRESS); $CITY = htmlspecialchars($CITY); $STATE = htmlspecialchars($STATE); $ZIP = htmlspecialchars($ZIP); $COUNTRY = htmlspecialchars($COUNTRY); $WORK_TEL = htmlspecialchars($WORK_TEL); $HOME_TEL = htmlspecialchars($HOME_TEL); ?>

Current registration info follows. You may make changes below and resubmit.

What kind of participation are you interested in?
(check all that apply)

>Site Layout/Content - You would like to produce material for the site, i.e. articles, etc.
>Webmaster - You could help with managing portions of the web site.
>Coordinator - You would like to be a contact point in your local area for folks interested in the group.
>Join the Mailing List - You would like to get new information about our activities. Material is sent via E-mail. We send on average about 1 message per week or less. Please give us your address below.
>Ready to "sit-in" - Actively participate in Civil Disobedience, if necessary (you can change your mind!).
>Ready to support those who "sit-in" - Ready to help those who are protesting or in jail.
>Member - Count me as a member, overall I agree with your goals.
>Member Support - Please show me on your Member Support page, use the info below.

What major area are you interested in?

Enter any other comments in the space provided below:
Your comments will be sent to us, but they will not be stored on the web server. Do not worry if you return to this page later and don't see the remarks you entered.

Tell us how to get in touch with you:
NOTE: We only need the info with an asterisk (*), the other fields are optional.

    Name*   

  E-mail*   
Make sure this value is correct. It will be used to respond to your request.
If you need to change your info with us later, you will need to use this value to 
retrieve your information

Group/Org  

URL http://
  
  Address  
    
  City       State*  Zip

Country     Enter a value only if NOT United States
    
Tel Work    Home   	
  
  Password*:  Click here to change
You may return to this page and change your information later. Please remember the email address you used and your password. You must always enter your password when making an update.
ACTION:

             

Site designed by staff of TheBook.Com
Kids-Right.Org - This Entire Site is Free to Copy/Distribute (just leave these credits intact)
This page was last updated on: 08/07/98 11:17

LinkExchange
LinkExchange Member