NETWORK WORLD NEWSLETTER:  STEVE BLASS WITH ASK THE EXPERTS
08/30/04
Today's focus:  Saving Web survey data to a file

Dear [EMAIL PROTECTED],

In this issue:

* Dr. Internet columnist Steve Blass offers advice on how to 
��save Web survey data to a file
* Links related to Ask the Experts
* Featured reader resource
_______________________________________________________________
This newsletter is sponsored by Statscout 
Blanket Network Performance Monitoring  

Monitor your entire network every 60 seconds with minimal impact 
on the network.  Businesses and organizations seeking detailed 
performance and troubleshooting reporting on networks of 1000 to 
200,000 network interfaces in size will benefit substantially 
from using Statscout.  Request your 30-day trial now, click here 
http://www.fattail.com/redir/redirect.asp?CID=78742
_______________________________________________________________
IS SECURITY RIPE FOR OUTSOURCING? 

Security demands for online applications such as e-commerce and 
Web services are prompting more corporate customers to hand off 
security functions - such as intrusion detection and firewalls - 
to outside service providers. Find out if security should be 
outsourced in this Network World article: 
http://www.fattail.com/redir/redirect.asp?CID=78224
_______________________________________________________________

Today's focus:  Saving Web survey data to a file

By Steve Blass

An old survey form submitted through a Perl script called 
FormMail sends the survey data to an administrator in e-mail, 
and we want to store the data to a file instead. How can we do 
that in Perl?

FormMail can be modified to save submitted data to a 
comma-separated value (CSV) file, in addition to sending e-mail, 
by adding a few reasonably simple commands to the script.

First, get a copy of the FormMail.pl script to work with. If you 
don't have access to the copy on your server, you can download 
it from Matt's Script Archive ( 
<http://www.scriptarchive.com/formmail.html> ).

Open the script in a text editor and look for the "send_mail" 
subroutine by searching for "sub send_mail". Four or five lines 
below that, you will see

open(MAIL,"|$mailprog");

add the line

open(CSV,">>mydata.csv");

immediately below that.

Search for the line

close(MAIL);

and add a line that says

close(CSV);

immediately below it.

Then for every line in the send_mail subroutine that begins with 
"print MAIL ...", create a duplicate immediately below it with 
"MAIL" replaced by "CSV." FormMail will append the submitted 
data to the CSV file, and send an e-mail when a survey form is 
received.
_______________________________________________________________
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 Statscout 
Blanket Network Performance Monitoring  

Monitor your entire network every 60 seconds with minimal impact 
on the network.  Businesses and organizations seeking detailed 
performance and troubleshooting reporting on networks of 1000 to 
200,000 network interfaces in size will benefit substantially 
from using Statscout.  Request your 30-day trial now, click here 

http://www.fattail.com/redir/redirect.asp?CID=78741
_______________________________________________________________
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
WONDERING IF YOUR PAY IS UP TO SNUFF?

Check out Network World's 2004 Salary Calculator to see if 
you're getting paid what you're worth. Using data collected in 
the 2004 Network World Salary Survey, we've programmed this 
calculator with several categories that could affect your pay. 
Answer the questions and find out what the average salary is for 
your job category. Click here:
<http://www.nwfusion.com/salary/2004/calculator.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/
 

Reply via email to