Jump to content

Recommended Posts

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>

Link to comment
https://forums.phpfreaks.com/topic/182290-form-help/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.