Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: modification of simple form-email script

by gellyfish (Monsignor)
on Mar 06, 2002 at 21:17 UTC ( [id://149856]=note: print w/replies, xml ) Need Help??


in reply to modification of simple form-email script

To cut a long story short you have been looking at the wrong scripts to modify - in the first instance I would suggest that you look at the nms form to e-mail program.

To expand a bit, firstly the program will not run cleanly with '-w' or 'use strict', the parseform() subroutine will not return the correct details with a perfectly valid form submission. parseform() cannot handle a GET request however their is no attempt to detect what the request method is. There is no attempt to determine whether the pipe to 'sendmail' was opened successfully. parseform() will potentially output before any CGI headers are output... you probably want to check where the $to variable you are using in your mail message is being assigned - I think you forgot the $send_to variable you assigned to earlier.

/J\

  • Comment on Re: modification of simple form-email script

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://149856]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (None)
    As of 2024-10-15 19:17 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found

      Notices?
      erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.