Click to See Complete Forum and Search --> : Form Failure


ixora
10-09-2008, 09:25 PM
I cannot seem to get my form script to work. I am using bnbform.cgi (bignosebird) if anyone is famililar with this scrupt. I do have this script working fine on another server.
Error message is: premature end of script headers.

opifex
10-09-2008, 10:07 PM
bnbform is an oldie but goodie....

first ... did you upload the file as ascii??
second... check your permissions ...did you remember to chmod to 755?

if all else fails.... check the author's troubleshooting guide (http://bignosebird.com/trouble.shtml)

good luck!

ixora
10-11-2008, 10:36 AM
Thanks. I did first and second. Will do third. I must have an error someplace but there are only a few places where the script is altered. Perhaps an error in the form itself. You look and look and evetually it's something simple.

ixora
10-12-2008, 01:42 PM
I also put in a request for help from the host thinking that the script is in the wrong place. The site is an add-on domain and the script works in the main site with a different form.

opifex
10-12-2008, 07:12 PM
you might want to verify that your path to PERL is the same in your add-on domain as the main one... should be, but depends on the server set-up.

ixora
10-17-2008, 03:56 PM
Yes, I did this. I got some clarification and they placed a test form on the site which worked. In that script, I noticed a line not in the bnbform.cgi ... print header(); and I was getting an error from the server log: premature end of header. So, I added this line to my script and it did execute.

BUT .... now I am dealing with script errors. This script always worked for me in the past.

Maybe you can see something I don't or recommend a plan of attack.

From the read me: data_order: In order for your information to show up in a file
or in your e-mail, you MUST list each field you want
to see in this comma "," separated list. This also
specifies the order the data will be printed to mail
and to file. Here is an example:
<INPUT TYPE="HIDDEN" NAME="data_order"
VALUE="name,country,submit_by,mailing_list,how_found,
grape,banana,apple">

In my form I have: <input type="hidden" name="data_order" value="lastname,firstname,submit_by,phone,address,city,call,mail,pushcard,yardsign,windowsign,canvas,hoodca pt,districtcapt,attdevent,attdfund,drive,donate,other />


In the script: sub valid_data
{
if ($fields{'data_order'} eq "") #make sure we have work to do!
{
print "Content-type: text/html\n\n";
print <<__W1__;

<H1>NO data_order list SPECIFIED!</H1>

__W1__
exit;
}
I get error: NO data_order list SPECIFIED!

opifex
10-17-2008, 04:48 PM
download the script from your server along with a test form, zip them up and post. this appears to be a different version or maybe even a different script.

ixora
10-18-2008, 10:25 AM
How do I post a zip file?

ixora
10-18-2008, 04:38 PM
Don't give up on me. I have the script on three sites on the GoDaddy server: my main domain, a sub-domain, and an add-on domain. The script excecutes from all three sites when I include the lines that appear on the test script that the GoDaddy tech placed on the addon site. But I get the error code from the script itself : NO data_order listSPECIFIED! .. this same error is delivered when I use bnb's own test form! All the forms clearly have a data order specified.

And this script does work properly on another host on another site. I am ragged already.

CyCo
10-18-2008, 07:43 PM
Looks like you are missing an ending double quote mark, for starters.<input type="hidden" name="data_order" value="lastname,firstname,submit_by,phone,address,city,call,mail,pushcard,yardsign,windowsign,canvas,hoodca pt,districtcapt,attdevent,attdfund,drive,donate,other" />

ixora
10-19-2008, 04:56 PM
No ... that seems besides the point. I see the missing quote, I added it, and the other forms do not have a missing quote nor does the bnbform (the test form). All give the error:
NO data_order list SPECIFIED. I have just tried all four again. I'll have access to the servoer error log in about an hour. (It seems to expire in 24 and must be renewed and then one has to wait ...)

ixora
10-19-2008, 04:58 PM
I'll post the lines, the script, the error and the server log.

ixora
10-20-2008, 08:32 AM
There is no server error, of course, the script is executed and terminating on an exit in the procedure: sub valid_data. Is does this with its own test form ... I can't think of any options here. I have used this script for 6 years on another site. I racing around trying this and that. I'm out of options. Use another script? I hate to give up.

ixora
10-31-2008, 10:15 AM
Started another thread. Problem solved. Using TFmail and it's working nicely ... just need to customize.