‰pŒê “ú–{Œê
 Web Email Submission Form
 Senator John Wankin (D - Cuba) for US Senate
 Senator John Wankin (D- Cuba)

Who's Senator John Wankin? Whoever he is, if he provided the world with an open source email submission form packed with lots of the neat features then i'd vote for him.

Seriously when we searched for "email web form" we got. Don't believe us try it yourself!!:

United States Senator Dianne Feinstein - E-Mail Formwww.senate.gov/~feinstein/email.html
Office of US Senator George Allenallen.senate.gov/email.html
Senator Hillary Rodham Clinton: Constituent Email Formclinton.senate.gov/email_form.html
US Senator Rick Santorum-Pennsylvaniasantorum.senate.gov/emailrjs.html
Email the Senatormiller.senate.gov/email.htm
US Senator Maria Cantwell - Contact - cantwell.senate.gov/contact/
Contact Senator Schumerschumer.senate.gov/webform.html
Senator Tom Daschledaschle.senate.gov/webform.html

What does email web forms have to do with politics? According to the powers that be, everything. Our competitors obviously understand the market much better than we and have some of the biggest names in the world behind them. Senator Dianne Feinstein, Senator Hillary Rodham Clinton, Senator Tom Daschle our competitors seemed to have cornered the market before we were weaned off our mother's milk. So we got on the phones pulled out our shortlist of famous politicians that we have confidence will lead the United States back to greatness:

Senator John McCain - (R - AZ)Campaign Finance Reform. We heard him talking at a college. He's brilliant.
Wierd Al Yankovic (Star Wars Fanatic - CA)Best known for parody of popular music.
Senator Joseph Lieberman (D - CT)
Senator Elizabeth Dole - (R - NC)
Senator Bob Graham - (D - FL)

We discovered getting a senator on the phone isn't a simple task. If we had a talk show like Howard Stern or Rush Limbaugh then we might have stood a fighting chance. The next feat was selling our idea past the PBx guard. That secretary that makes all business impossible, nasal voice and all. We tried to sneak past her by teasing her by suggesting we were interested in sending money but the trained sleuth say right past our ploy. She suggested we draft a check and our response we a dumb "huh??". I think we've been in Japan too long when you don't know how to send a check payment. Hey wake up Japan doesn't use checks. Japan only believes in cash, who ever heard of an above board Senator that doesn't take cash??

We obviously have a lot to learn when it comes to attracting big name support. Any suggestions would be much appreciated.

So until we've gotten our political sea legs, we're throwing our 80kg frame behind the candidacy of John Winkin (D - Cuba) for the US Senate. John Winkin is a firm believer in open source software, freedom of expression, opposition to the DMCA, supports legislation to limit lawsuits targeting individual music listeners by RIAA, and supports raising food standards, legislation which is opposed by the factory food industry, to help raise the quality of life of all Americans.


Senator John Wankin (D) Cuba for Senator Web Email Submission Form

Files included in this package:
inc/api_mime_mail.phpMIME Email Classes by Richard Heyes
inc/api_mime_mail_2.phpMIME Email Classes by Richard Heyes
inc/api_mime_mail_3.phpMIME Email Classes by Richard Heyes
inc/background.gifA sample email background image
inc/common.php3php library containing the fcns Quote2HTML and IsNothingCheck
js/common.jsjavascript file containing the fcn submitForm.
emailscript.phpMain code script. html email, attachments, and file uploading support.
get_quote.htmlA sample submission form page ( w/o file uploading )
tij_place_order.htmA sample submission form page (w/ file uploading )
phpinfo.php3A one line useful script for displaying your servers php configuration
readme.txtPolicy Statement from the offices of US Senator John Wankin (D - Cuba).

How to get started:
Download the package here.
Unzip the package and upload the files.
Make sure files that are placed in their respective directories. We recommend using SmartFTP to upload the files.
Make a folder upload/. Change the upload/ folder permission to 766. In SmartFTP right click the upload folder and choose CHMOD. Then type in 766. This allows reading and writting to this folder but not execution of any scripts. Copies of uploaded files will be placed in this folder by the script.

Next take a look at the example html pages. The TIJ sample page is file uploading capable whereas the get_quote page isn't using this feature. Choose the one that best fits your needs. Please keep in mind that the included sample pages are for your reference. These pages are copyrighted by their respective owners. However the html form behind each of these pages are open source. Feel free to use the sample pages to test to see how this script works but then rip out the html form and put it into your own sites layout (look and feel).

SCRIPT CUSTOMIZATION

txtEmailIf the user submits their email address in form input text elements "txtEmail" ( <input type="text" name="txtEmail" value="" tabindex="10">) then the user will receive a copy of his/her email.
Surname and Given_NamesIf the user submits these form input text elements ( <input type="text" name="Surname" value="" tabindex="10">) then the users name will be printed in the email.
urlAfter form submission and processing this is the page which will be displayed.
base_folderDon't need to change this. Leave it alone. The base directory of your web site on your server.
bg_imagebackground image of the html email. You can change this to another background image as long as you put the new background image in the inc/ folder.
mailtoA comma seperated string of email addresses. Please don't put spaces between the email addresses.
recepient_nameYour name. Used as the FROM name in emails.
company/subjectself explanitory
max_file_sizelargest size file that can be uploaded. In bytes. Remember 1KB = 1024bytes. 1KB does not equal 1000bytes
image_max_widthif the file that is uploaded is an image then this is the maximum width the image can be in pixels.
image_max_heightif the file that is uploaded is an image then this is the maximum height the image can be in pixels.
image_folderWhere the uploaded files are stored.
registered_typesthis array contains possible mime-types. If the mime type isn't found in the array for a file you want to be able to upload then go to google.com and type [filename] mime type. One of the results will contain the mime type like text/html is the mime type for .html files.
allowed_typesthe allowed mime types of files that can be uploaded. If the mime type is not in this array then you can't upload that type of file.

Please support the candidancy of Senator John Wankin (D) Cuba for Senator!! The champion of open source!!
 

 
© The text and layout of this page is Copyright 2004 Global Business Resources Corporation All Right Reserved.
Any links to this story are required to link to this page, the original article. The software is open source under the same license as Python, absolutely free!!
  Contact Us Terms Of Use Web Hosting Email Accounts