Web Development

General discussion


Is anyone talented in CGI?

By ryrobinson ·
Is anyone talented in CGI?

I have no problems with form mail except this:

My form looks like this >>

<form action="http://myURL/cgi-bin/mailme.pl" method="post">
<input type=hidden name="recipient" value="me@myURL.com">
<input type=hidden name="redirect" value="http://myURL/thanks.html">
<input type=hidden name="subject" value="Mail from the website">
<input type=hidden name="required" value="Name,Address,Email,Remarks">
<input type=hidden name="print_blank_fields" value="1">
Forms and buttons go here

But it does not deliver the from: email address into the from: of the mail that arrives.

The from: address line reads:
() ()

and this is shown in the message body:
This message is sent by () on Tuesday, February 10, 2004 at 09:32:10

I'm using the Matt's script where line 394 reads:
print MAIL "From: $Config{'email'} ($Config{'realname'})\n";

What, please, am I not doing?

If there's something I can do for you in return, tell me - anything css, html or javascript.

Thank you.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

Uh, no email field?

by RexWorld In reply to Is anyone talented in CGI ...

Umm, well the form you have given doesn't even have an email field in the HTML. I'm not sure of the context here though--is there some other way that your CGI is supposed to grab the email (i.e., is it in a cookie or something?).

Collapse -

recipient = email

by ryrobinson In reply to Uh, no email field?

Thank you for taking the time, etc ...

This line delivers email to me:
<input type=hidden name="recipient" value="me@myURL.com">

Compliments, RR

Collapse -

Other form fields

by RMcVay In reply to Is anyone talented in CGI ...

You have to have two inputs in the rest of your form for those to bits of info. You have to have:

<input type="text" name="email">
Where the person filling out the form enters THEIR email address.

<input type="text" name="realname">
Where the person filling out the form enters their name.

Once you have that you will find your From: is populated.

Collapse -

Matt's Scripts

by jezter~ In reply to Is anyone talented in CGI ...

Not an answer to your question, but you might consider looking at http://willmaster.com/possibilities/ for other scripts. The reason I say this (no, I'm not linked to Will Bontrager :) ) is that even Matt says his scripts are not secure and no longer recommends them.

Related Discussions

Related Forums