PDA

View Full Version : perl unix cgi error



luca2
April 5th, 2001, 13:34
Does anyone know what might be the problem here?

malformed header from script. Bad header=Recipient names must be specif: /member2/cgi-bin/form.cgi

/Luca

akersche
April 5th, 2001, 15:21
tricky to answer without knowing your script and how you call (start) it.

hmm, you should doublecheck, if you set your email-adress properly.

example:

print MAIL "To: arno\@kersche.net (Arno Kersche)\n";
print MAIL "From: arno\@kersche.net (Arno Kersche)\n";


print MAIL "Subject: Test\n";

print MAIL "thats my body\n";

luca2
April 5th, 2001, 15:33
Thank you, it was not the problem though.

KapTinKiRk
April 5th, 2001, 15:54
Could you post the script, or a URL to it, or give more details on what it is and what it does, what you think could have caused the error etc. Can't help without details :)

luca2
April 5th, 2001, 16:04
Here is the form on the html page:

<FORM METHOD="POST" ACTION="/cgi-bin/metroform.cgi">
<INPUT TYPE="HIDDEN" NAME="subject" VALUE="Beställning av CD">
<INPUT TYPE="HIDDEN" NAME="response" VALUE="response">
<INPUT TYPE="HIDDEN" NAME="recipient" VALUE="hargel@swipnet.se">
<INPUT TYPE="HIDDEN" NAME="required" VALUE="realname">
<input type=hidden name="background"
value="http://www.supertrend-software.se/bak.gif">
* måste fyllas i
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="14%"><font face="Times New Roman, Times, serif" size="3">Förnamn: </font></td>
<td width="86%">
<font face="Times New Roman, Times, serif" size="3"><input type="text" name="realname">
*</font></td>
</tr>
<tr>
<td width="14%"><font face="Times New Roman, Times, serif" size="3">Efternamn:</font></td>
<td width="86%">
<font face="Times New Roman, Times, serif" size="3"><input type="text" name="efternamn">
</font></td>
</tr>
<tr>
<td width="14%"><font face="Times New Roman, Times, serif" size="3">Adress: </font></td>
<td width="86%">
<font face="Times New Roman, Times, serif" size="3"><input type="text" name="adress" size="30">
</font></td>
</tr>
<tr>
<td width="14%"><font face="Times New Roman, Times, serif" size="3">P.nr/P.adress: </font></td>
<td width="86%">
<font face="Times New Roman, Times, serif" size="3"><input type="text" name="Postadress">
</font></td>
</tr>
<tr>
<td width="14%"><font face="Times New Roman, Times, serif" size="3">Tel: </font></td>
<td width="86%">
<font face="Times New Roman, Times, serif" size="3"><input type="text" name="Telefonnr">
</font></td>
</tr><tr><td width="14%"><font face="Times New Roman, Times, serif" size="3">E-mailadress:</font></td><td width="86%"><font face="Times New Roman, Times, serif" size="3"><input type="text" name="email"></font></td></tr><tr><td colspan="2" align="right" valign="top"><div align="left"><font face="Times New Roman, Times, serif" size="3">-----------Jag önskar Demo på CD, pris 150 kr.</font></div></td></tr><tr><td width="14%" align="right" valign="top"><font face="Times New Roman, Times, serif" size="3"><input type="radio" name="betalningssatt" value="bankgiro" checked></font></td><td width="86%"><font face="Times New Roman, Times, serif" size="3">Jag sätter in 150 kr på
bg 5162-0573</font></td></tr><tr><td width="14%" align="right" valign="top"><font face="Times New Roman, Times, serif" size="3"><input type="radio" name="betalningssatt" value="postförskott"></font></td><td width="86%"><font face="Times New Roman, Times, serif" size="3">Jag betalar mot postförskott (postförskottsavg.
tillkommer)</font></td></tr>
</table><font face="Times New Roman, Times, serif" size="3">-----------(Vid senare beställning av SuperTrend programvara avdrages 150 kr)
<br><br>
<input type="submit" name="Beställ" value="Beställ"> <input type="reset" name="Submit2" value="Rensa formulär">
</font>

</form>


The cgi file (in txt format) can be found here: http://www.metropolitanclubs.com/cgitest/metroform.txt



thanks for the help.

/luca

KapTinKiRk
April 5th, 2001, 16:29
well, im familiar with formmail, and it shouldn't give any errors so long as it is uploaded correctly, chmod, proper path to perl etc. And i also don't see any problems in your html code.

I noticed you changed some things in the formmail script for language purposes, could you have accidentally replaced something, or overwritten something? Thats the only thing I can think of that might be the problem.

luca2
April 6th, 2001, 12:08
Thanks,

I started all over and it worked.

I quess that's a good tip to those with cgi problems.

/luca