Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Re: Second hack at Secure Mailer

by SilverB1rd (Scribe)
on Feb 15, 2001 at 04:12 UTC ( [id://58514]=note: print w/replies, xml ) Need Help??

in reply to Re: Second hack at Secure Mailer
in thread Second hack at Secure Mailer

Thanks for the help, I would really like to see how you would write it.

The reson I did not use the header option in the is that it did not work it kept giving me a script error on the server. I use the to process the form data.

I can not have a static list of templates such as default extra, because this script would be used on a number of different forms.

Like I said before I'm only trying to making this script work the way the first script worked.

Replies are listed 'Best First'.
Re: Re: Re: Second hack at Secure Mailer
by $code or die (Deacon) on Feb 15, 2001 at 04:39 UTC
    Ok, this problem is that if you POST and have a query string, by default will only put the form values that are "POSTed" into the param() function, and ignore the query string.

    There is a hack provided by the author that will allow it to process both the query string and the POSTed values together. You can check the CGI docs for more info, but basically search for "cake and eat it" in the file and uncomment the next line of code.

    $code or die
    Using perl at
    The Spiders Web
Re: Re: Re: Second hack at Secure Mailer
by MeowChow (Vicar) on Feb 15, 2001 at 05:20 UTC
    Are you doing:
    print $query->header;
    print header;
    If the latter, you will need to change your use CGI into:
    use CGI qw(:standard);
    Or something of that sort, as CGI is not exporting any functions by default.
                   s aamecha.s a..a\u$&owag.print
      I'm was using print $query->header;

      I dont have access to the perl files on my web server. Second I dont think it would pull the information off the commmand line like I need it to. The command line would look like this "/myfolder/mytemplate.txt".

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 08:08 GMT
Find Nodes?
    Voting Booth?

    No recent polls found