NETWORK WORLD NEWSLETTER: STEVE BLASS WITH ASK THE EXPERTS 09/06/04 Today's focus: Web forms and CSV files
Dear [EMAIL PROTECTED], In this issue: * Dr. Internet columnist Steve Blass offers some advice on ��working with FormMail * Links related to Ask the Experts * Featured reader resource _______________________________________________________________ This newsletter is sponsored by Xerox Want to learn the key steps to building a document output strategy that will enhance productivity and reduce costs for your organization? Start by downloading Xerox's white paper, Optimizing Document Output ROI. See how Xerox's solutions can help you manage devices, reduce costs and even boost productivity. http://www.fattail.com/redir/redirect.asp?CID=80878 _______________________________________________________________ DOWNLOAD THE LATEST SPECIAL REPORTS FROM NETWORK WORLD Focused reports on compelling industry topics, Network World Special Reports are available online at Network World Fusion. Network World Special Reports on IP Telephony Security, the State of Wireless LANs, trends in the networked world and more are currently available. Download any or all of our Special Reports at: http://www.fattail.com/redir/redirect.asp?CID=79644 _______________________________________________________________ Today's focus: Web forms and CSV files By Steve Blass We tried the FormMail modifications you suggested last week ( <http://www.nwfusion.com/columnists/2004/083004internet.html> ), and the data file was saved but the comma separated value format didn't work. The data file contains copies of the FormMail e-mails rather than a simple table containing the values. How do we fix it? The instructions I provided create a text file containing copies of the FormMail messages with a CSV extension rather than a comma separated value table. To extract and save only the submitted form field values to such a table requires parsing the name/value pairs out of the e-mail body and writing the table. The easy fix is to modify the stock FormMail.pl script to add a subroutine that uses the standard Perl CGI module for parameter parsing and writes comma separated data values to the file. To use the CGI module, include the line: use CGI;To write an actual CSV string to the CSV file, use a statement such as: foreach $p (CGI::param()) { print CSV "$p,"}; Depending on your original form, you might need to perform some validation to ensure that each line contains values from the proper field in each column. _______________________________________________________________ To contact: Steve Blass Blass is a network architect at [EMAIL PROTECTED] in Houston. He can be reached at <mailto:[EMAIL PROTECTED]>. _______________________________________________________________ This newsletter is sponsored by Xerox Want to learn the key steps to building a document output strategy that will enhance productivity and reduce costs for your organization? Start by downloading Xerox's white paper, Optimizing Document Output ROI. See how Xerox's solutions can help you manage devices, reduce costs and even boost productivity. http://www.fattail.com/redir/redirect.asp?CID=80877 _______________________________________________________________ ARCHIVE LINKS Dr. Internet archive: http://www.nwfusion.com/columnists/blass.html Nutter's Help Desk archive: http://www.nwfusion.com/columnists/nutter.html _______________________________________________________________ FEATURED READER RESOURCE CHECK OUT NW FUSION'S NEW WHITE PAPER LIBRARY NW Fusion's White Paper Library was recently re-launched with new features and improved capabilities! Sort NW Fusion's library of white papers by Date and Vendor, view white papers by TECHNCIAL CATEGORY, mouse over white paper descriptions and take advantage of our IMPROVED white paper search engine. CLICK HERE: <http://www.nwfusion.com/vendorview/whitepapers.html> _______________________________________________________________ May We Send You a Free Print Subscription? You've got the technology snapshot of your choice delivered at your fingertips each day. Now, extend your knowledge by receiving 51 FREE issues to our print publication. Apply today at http://www.subscribenw.com/nl2 International subscribers click here: http://nww1.com/go/circ_promo.html _______________________________________________________________ SUBSCRIPTION SERVICES To subscribe or unsubscribe to any Network World e-mail newsletters, go to: <http://www.nwwsubscribe.com/Changes.aspx> To unsubscribe from promotional e-mail go to: <http://www.nwwsubscribe.com/Preferences.aspx> To change your e-mail address, go to: <http://www.nwwsubscribe.com/ChangeMail.aspx> Subscription questions? Contact Customer Service by replying to this message. This message was sent to: [EMAIL PROTECTED] Please use this address when modifying your subscription. _______________________________________________________________ Have editorial comments? Write Jeff Caruso, Newsletter Editor, at: <mailto:[EMAIL PROTECTED]> Inquiries to: NL Customer Service, Network World, Inc., 118 Turnpike Road, Southborough, MA 01772 For advertising information, write Kevin Normandeau, V.P. of Online Development, at: <mailto:[EMAIL PROTECTED]> Copyright Network World, Inc., 2004 ------------------------ This message was sent to: [EMAIL PROTECTED] ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/BCfwlB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/kumpulan/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
