Having Trouble With Forms

liunx

Guest
OK...I'm new to this CGI stuff so please bear with me.<br /><br />I am trying to create a form but I seem to have problems with the scripting because everytime I try to "send" the form, I get a "500 Internal Server Error."<br /><br />Here is my coding:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> <form name="form1" method="post" action="http://hockeycat93.com/cgi-sys/FormMail.cgi"><br />    <input name="recipient" type="hidden" value="[email protected]"><br />  <input name="subject" type="hidden" value="Dreamweaver MX form"><br />    <input name="redirect" type="hidden" id="redirect" value="http://www.hockeycat93.com"><!--c2--></div><!--ec2--><br /><br />Am I missing something here or am I doing something wrong? Any help would be appreciated it. Thanks!<br /><br />Cat<!--content-->
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec--><form name="form1" method="post" action="http://hockeycat93.com/cgi-sys/FormMail.cgi"><!--QuoteEnd--></div><!--QuoteEEnd-->Unless you have purposely changed your directory name, I think the line shoule read<br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec--><form name="form1" method="post" action="http://hockeycat93.com/cgi-<b>bin</b>/FormMail.cgi"><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Also, I see that your redirect is pointing to your home page... you might want to construct a thank you page and set the redirect to that location.<br /><br />Example:<br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec--><input name="redirect" type="hidden" id="redirect" value="http://www.hockeycat93.com/thanks.htm"><!--QuoteEnd--></div><!--QuoteEEnd--><!--content-->
Jack, what is the status of FormMail?<br />I thought is was disabled see <a href="http://www.totalchoicehosting.com/forums/index.php?act=ST&f=19&t=2348&hl=formmail" target="_blank">this thread</a><br />In any case if it is dissabled, there have been a lot of posts here about php forms, which are more secure.<!--content-->
I started to respond earlier but needed to do some checking. Here's the latest.<br /><br />Personally, I would recommend using a different script such as the one that was shared on the forum when the problem with formmail started a few weeks back. Formmail.cgi has been disabled on all the servers. We are willing to reenable it and will keep an eye on it but prefer to do it on as it is requested for different servers right now. Once we see that it is working correctly we can do it on all servers. We have just re-enabled formmail.cgi on server 24 so, Hockeycat, if you will try the form again and see what happens.<br /><br />I am not real familiar with FormMail's format but am not sure the <!--coloro:blue--><span style="color:blue"><!--/coloro-->action="http://hockeycat93.com/cgi-sys/FormMail.cgi"<!--colorc--></span><!--/colorc--> is the correct format or whether it should be <!--coloro:blue--><span style="color:blue"><!--/coloro-->action="/home/username/public_html/cgi-sys/FormMail.cgi"<!--colorc--></span><!--/colorc--><br /><br />Perhaps someone who has used it more can help with this detail.<!--content-->
It's working now. Thanks Rick! <br /><br />You didn't have to bring up FormMail just for me. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> I ended up using one of the .php files suggested by one of the people on the thread listed here. I hadn't been aware of the problems FormMail was causing.<br /><br />Cat<!--content-->
 
Back
Top