cgiemail

liunx

Guest
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.<br /><br />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.<br /><br />You can see it in action at: <a href="http://www.irricomp.com/info.htm" target="_blank">http://www.irricomp.com/info.htm</a> -- 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.<br /><br />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?<br /><br />-kw<!--content-->
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="<br />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 <a href="http://www.crawfordfair.com/beef.htm" target="_blank">http://www.crawfordfair.com/beef.htm</a> . To test error, leave off either first name, last name or email. Hope this helps.<br />Joe<!--content-->
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. <br /><br />Yes? No?<br /><br />-kw<!--content-->
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<br />Joe<!--content-->
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.<br /><br />Thanks.<br />kw<!--content-->
kw (aka "The Shell Answer Man) -<br /><br />Question for you: what is the difference between FormMail and cgiemail? Are there advantages in terms of flexibility of one over the other?<br /><br />Also, were you able to learn which version of cgiemail TCH is running?<br /><br />As always, thanks.<br />Sully<!--content-->
No answer tonight, but I'll get back to you on it tomorrow or the next day!<br />-kw<!--content-->
I have been trying to setup cagiemail aswell. I have read over the documentation 100 times and I still have some questions. <br /><br /><br />1. Where do I uploadmy template text file? Is it in the cgi-bin directory?<br />2. what is the action url? I tried everything and nothing is working. I keep getting a 500 error.<br /><br />Here is the link to my site <a href="http://www.cbhr.com/volform.htm" target="_blank">http://www.cbhr.com/volform.htm</a>.<br /><br />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.<!--content-->
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 <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/laugh.gif" style="vertical-align:middle" emoid=":lol:" border="0" alt="laugh.gif" /> Mine isn't working yet.<!--content-->
 
Back
Top