|
| A R C H I V E D M E S S A G E |
|
Subject: Can't get + (plus) marks out of data files |
| Posted: 06/10/2004 at 2:54:57 am |
| By: cinke |
| This script is really great and works fine, exept for one thing.
If one writes more than one word in a field in the form, then the words in the output data file are separatesd by a + (plus). Another script converts the data file to a html table, but of course it's not looking good with all those +s, and the lines cannot be broken too.
(System: Bizmail 2.0, WinXP SP1, Apache 2.0.49, Active Perl 5.8.3)
It seems there is something in the script which sould do that, so what's wrong? | |
|
|
Subject: Re: Can't get + (plus) marks out of data files |
| Posted: 06/10/2004 at 5:57:53 am |
| By: Seth Knorr |
| if you look through bizmail.pl/.cgi
you will see a line of text on line 267 that is probably commented and looks like this:
#$value2 =~ s/\+/ /g; # convert + signs to spaces #
UNCOMMENT THAT LINE SO IT LOOKS LIKE THIS:
$value2 =~ s/\+/ /g; # convert + signs to spaces #
Then you will be all set.
Seth | |
|
|
Subject: Re: Can't get + (plus) marks out of data files |
| Posted: 06/10/2004 at 1:28:44 pm |
| By: cinke |
| thanx a lot, it works now, i was blind :)
just one more question:
is there a way to email the form to myself without autoreplying AND PROVIDING A REAL EMAIL IN THE FORM.
most of the people who will fill the form won't use email addresses :(
evan without the reply enabled the script needs a correct email field. | |
|
|
Subject: Re: Can't get + (plus) marks out of data files |
| Posted: 06/10/2004 at 2:11:03 pm |
| By: Seth Knorr |
| To not send the auto-response set "sendreply" to 2 like below:
<input type="hidden" name="sendreply" value="2">
2. When you say a real email, are you talking the FROM email address on the form results email?
Seth | |
|
|
Subject: Re: Can't get + (plus) marks out of data files |
| Posted: 06/14/2004 at 12:46:07 pm |
| By: cinke |
| the auto reply part is clear.
what i was trying to ask:
I want the form data to be sent to my email address, but
I don't want the guys, filling out the form, to provide any email addresses.
it seems to me, that if no email data required (and given) in the form, then the form data can't be sent to my email address. even if the auto-replay is off.
most of the people who will fill out the form don't have or don't use an email address, so i wouldn't require that, but it would be great to still get the form sent to my email address.
thanx | |
|
|
Subject: Re: Can't get + (plus) marks out of data files |
| Posted: 06/15/2004 at 12:53:00 pm |
| By: Seth Knorr |
| Yes, the form data getting sent to your email address has nothing to do with whether or not someone fills out the form. UNLESS, your email provider requires a valid email address as the FROM on the email. Then just configure your form like so.
<input type="hidden" name="email" value="valid_from_email_address@mydomain.com">
and this way you will have a valid from email, and it will not be required on the form.
ALSO MAKE SURE that this email is different than the sendto and ccto emails.
Seth | |
|
|
Subject: Re: Can't get + (plus) marks out of data files |
| Posted: 06/16/2004 at 9:33:32 am |
| By: cinke |
| hi Seth!
I thought your script does the email check.
I thought of what you suggested, but that's not really working in my case as the data file is converted to html and published - so the email field shouldn't be in the data. but i talk with our smtp admin.
just one more question: how can i define a background image for the suces page?
i tried everythin: absolute path, rel. path in the background="" tag but apache keeps saying:
##
[Wed Jun 16 18:22:23 2004] [error] [client 193.225.80.88] script not found or unable to stat: C:/Program Files/Apache Group/Apache2/cgi-bin/bizmail/kep, referer: http://www.csot.sote.hu/cgi-bin/bizmail/success.pl?p=1&nev=m
##
succes.html is in the htdocs, and i use background="kep/hatter.gif" as background.
thanx, cinke | |
|
|
Subject: Re: Can't get + (plus) marks out of data files |
| Posted: 06/16/2004 at 10:52:05 am |
| By: Seth Knorr |
| For a background image I would use the absolute path like:
background="http://www.yourdomain.com/kep/hatter.gif"
Seth | |
|
|
Subject: Re: Can't get + (plus) marks out of data files |
| Posted: 06/17/2004 at 4:42:28 am |
| By: cinke |
| everything is working just fine now.
thanx for your help and for your great script.
cinke | |
|
|