jerrelle Posted November 20, 2009 Share Posted November 20, 2009 Hello all. I am a basic web designer. I deal with primarily html, java script and css. the only php coding i deal with is editting the FormMail.pl files. Currently this is where I am having major issues. I have put up plenty of forms before but right now I am having the worst time ever to get it to work. Please review and see what I am missing: FormMail.cgi file: BEGIN { $DEBUGGING = 1; $emulate_matts_code= 0; $secure = 1; $allow_empty_ref = 1; $max_recipients = 5; $mailprog = '/usr/lib/sendmail -i -t'; $postmaster = 'vince@vjcinnovativedesigns.com'; @referers = qw(dave.org.uk 209.207.222.64 watchdogonwallstreet.com); @allow_mail_to = qw('vince@vjcinnovativedesigns.com'); @recipients = (); %recipient_alias = (); @valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT); $locale = ''; $charset = 'iso-8859-1'; $date_fmt = '%A, %B %d, %Y at %H:%M:%S'; $style = '0'; $no_content = 0; $double_spacing = 1; $wrap_text = 0; $wrap_style = 1; $address_style = 0; $send_confirmation_mail = 0; $confirmation_text = <<'END_OF_CONFIRMATION'; From: you@your.com Subject: form submission Thank you for your form submission. END_OF_CONFIRMATION Form: <form method="GET" action="cgi-bin/FormMail.cgi"> <input type="hidden" name="subject" value="Watchdog - Gold and Diamond Source" /> <input type="hidden" name="fromaddress" value="Watchdog Site" /> <input type="hidden" name="required" value="email,phone,name,address,state,city,zip" /> <input type="hidden" name="recipient" value="vince@vjcinnovativedesigns.com"> <input type="hidden" name="redirect" value="thankyou.html" /> <br/> <table width="297" border="0" align="left" cellpadding="5"> <tr> <td width="51" align="left" valign="top"><div align="left">Name:</div></td> <td width="229" align="left" valign="top"><label> <input name="name" type="text" id="name" size="25" /> </label></td> </tr> <tr> <td align="left" valign="top"><div align="left">Email:</div></td> <td align="left" valign="top"><label> <input name="email" type="text" id="email" size="25" /> </label></td> </tr> <tr> <td align="left" valign="top"><div align="left">Address:</div></td> <td align="left" valign="top"><label> <input name="address" type="text" id="address" size="25" /> </label></td> </tr> <tr> <td align="left" valign="top"><div align="left">City:</div></td> <td align="left" valign="top"><label for="textfield"></label> <input name="city" type="text" id="city" size="25" /></td> </tr> <tr> <td align="left" valign="top"><div align="left">State:</div></td> <td align="left" valign="top"><label> <input name="state" type="text" id="state" size="2" maxlength="2" /> </label></td> </tr> <tr> <td align="left" valign="top"><div align="left">Zip:</div></td> <td align="left" valign="top"><label> <input name="zip" type="text" id="zip" size="5" maxlength="5" /> </label></td> </tr> <tr> <td align="left" valign="top"><div align="left">Phone:</div></td> <td align="left" valign="top"><label> <input name="phone" type="text" id="phone" size="20" maxlength="20" /> </label></td> </tr> <tr align="left" valign="top"> </tr> <tr> <td height="56" colspan="2" align="left" valign="top"><div align="left"> <label> <input type="submit" name="button" id="button" value="Submit" /> </label> <label> <input type="reset" name="button2" id="button2" value="Reset" /> </label> </div></td> </tr> </table> </form> Quote Link to comment https://forums.phpfreaks.com/topic/182290-form-help/ Share on other sites More sharing options...
GingerRobot Posted November 20, 2009 Share Posted November 20, 2009 This isn't PHP i'm afraid. You're looking for a Perl forum! I'll move this over to the "Other Programming Languages" section -- you might get a reply there. Quote Link to comment https://forums.phpfreaks.com/topic/182290-form-help/#findComment-961925 Share on other sites More sharing options...
jerrelle Posted November 20, 2009 Author Share Posted November 20, 2009 is there an easier way to create a form using php? I'm at my wits end and I have a 4 hour deadline right now. any help would be appreciated... Quote Link to comment https://forums.phpfreaks.com/topic/182290-form-help/#findComment-961928 Share on other sites More sharing options...
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.