Re: form script question



David Pyles wrote:
On 7/30/2007 12:47 PM, J. Gleixner wrote:
David Pyles wrote:
I'm a web designer, but not a perl programmer. I've been working on some forms using the form mail program that is part of VDeck.

Whatever that is...


$vdeck->send_email({ -to => $to,
-from => $to,
-cc => [split ',', $cc],
-bcc => [split ',', $bcc],
-subject => "Feedback: from $form_meta->[2]",
-message => $message
});


Can someone tell me how to modify this script to make it pick-up the value of a hidden "subject" field in the form and place it's value in the subject line of the resulting email?

-subject => $q->param('name_of_hidden_subject_field'),

If $to is supplied via the form, then anyone can easily set it and use your site to send E-Mail to anyone.
Thanks. Mumia W. suggested the same thing in a private email, but it soesn't work. I just get a server error. I guess I'll leave it as is.
Dave Pyles

You're not giving us enough information to help you. What's the error
and the code you're using that causes the error?

If the HTML contains...

<form ...>
<input type="hidden" name="bar" value="foo">
....other form elements...
<input type="submit">
</form>

And the CGI program to process it contained something like:

use CGI;
my $q = CGI->new();
my $hidden_value = $q->param( 'bar' );


Then $hidden_value will be 'foo'.

Possibly it's something to do with 'VDeck', so maybe it's covered in
the documentation for that product.



.



Relevant Pages

  • Re: form script question
    ... some forms using the form mail program that is part of VDeck. ... I just get a server error. ... And the CGI program to process it contained something like: ...
    (comp.lang.perl.misc)
  • Re: form script question
    ... David Pyles wrote: ... some forms using the form mail program that is part of VDeck. ... If $to is supplied via the form, then anyone can easily set it and use your site to send E-Mail to anyone. ...
    (comp.lang.perl.misc)