KevinW Posted January 20, 2003 Posted January 20, 2003 I have ported a customer's web site from BellSouth to TCH. On Bell South we were using a cgiemail form. After bring the site up on TCH, the cgiemail form only works if the designated "required" fields are entered. If any of the required fields are left blank, the script errors instead of displaying a message to the user that a required field was not entered. You can see it in action at: http://www.irricomp.com/info.htm -- scroll down to the bottom. If you simply click on Submit, script errors. But if you enter anything for a name and email (the only two required fields) , script runs. P.S. I have tried defining the required fields as both required-fieldname and required_fieldname -- per the documentation. Can some identify the version of cgiemail installed here? -kw Quote
Jstephenson Posted January 22, 2003 Posted January 22, 2003 If you are using the supplyed cgi form mail you will need to modify the form. If you are using another script then the following information will do you no good. Instead of <form method="POST" action="/cgi-bin/cgiemail/mail101.txt">it should be <form action=""http://www.irricomp.com/cgi-sys/FormMail.cgi" method="POST" >. As for the field you have the required in the form instead it should be hidden. This should be the added <input type=hidden name="required" value=" required_Name,required_Email"> You will need to add a missing_field_redirect page, to let them know what the problem is and to get back to fix it. An example is on a site I am working on http://www.crawfordfair.com/beef.htm . To test error, leave off either first name, last name or email. Hope this helps. Joe Quote
KevinW Posted January 23, 2003 Author Posted January 23, 2003 Joe, thanks for the response. But it looks like you are using the FormMail Clone version, whereas I'm trying to use the 'cgiemail' version. Yes? No? -kw Quote
Jstephenson Posted January 23, 2003 Posted January 23, 2003 Sorry, yes that is what I am using. I misunderstood that was what you were trying to use , since you asked what mail form was used here. Good luck Joe Quote
KevinW Posted January 24, 2003 Author Posted January 24, 2003 I was asking which version of 'cgiemail' was in use at TCH, since my BellSouth site is using version 1.6 and it appears to display the error screen correctly. Thanks. kw Quote
Sully Posted March 12, 2003 Posted March 12, 2003 kw (aka "The Shell Answer Man) - Question for you: what is the difference between FormMail and cgiemail? Are there advantages in terms of flexibility of one over the other? Also, were you able to learn which version of cgiemail TCH is running? As always, thanks. Sully Quote
KevinW Posted March 12, 2003 Author Posted March 12, 2003 No answer tonight, but I'll get back to you on it tomorrow or the next day! -kw Quote
MRwisdom12 Posted April 4, 2003 Posted April 4, 2003 I have been trying to setup cagiemail aswell. I have read over the documentation 100 times and I still have some questions. 1. Where do I uploadmy template text file? Is it in the cgi-bin directory? 2. what is the action url? I tried everything and nothing is working. I keep getting a 500 error. Here is the link to my site http://www.cbhr.com/volform.htm. I dont mean to mislead this post from your question K, I just thought this might be a good place to post my question as well. Quote
MRwisdom12 Posted April 4, 2003 Posted April 4, 2003 Sully as what I can see, formail has limited formatting, were as cgiemail has a very nice formated template email. Infact you create the template email, and the form fields fill in the template you created and then it is forwarded to the email address, well that is if it is working Mine isn't working yet. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.