Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 07, 2012, 09:04:37 PM

Pages: [1]   Go Down
  Print  
Author Topic: My form in dreamweaver not working  (Read 2856 times)
gromano
Newbie
*
Offline Offline

Posts: 1


« on: March 02, 2009, 02:32:41 PM »

I set up everything for my form used NMS Formail script followed the instructions here is what i put:

BEGIN
{
  $DEBUGGING         = 1;
  $emulate_matts_code= 0;
  $secure            = 1;
  $allow_empty_ref   = 1;
  $max_recipients    = 5;
  $mailprog          = '/usr/sbin/sendmail -oi -t';
  $postmaster        = '';
  @referers          = qw(moversonthemovela.com localhost);
  @allow_mail_to     = qw(gsr0328@aol.com localhost);
  @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             = '/css/nms.css';
  $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: rick@moversonthemovela.com
Subject: form submission

When i hit submit the form which is located on http://www.moversonthemovela.com i get this error code:

Bad Referrer - Access Denied
The form attempting to use this script resides at http://moversonthemovela.com/, which is not allowed to access this program.

If you are attempting to configure FormMail to run with this form, you need to add the following to @referers, explained in detail in the README file.

Add 'moversonthemovela.com' to your @referers array.

FormMail © 2001-2003 London Perl Monger
Logged
vks87
Intergalactic Cowboy
*****
Offline Offline

Posts: 63


« Reply #1 on: March 17, 2009, 04:59:49 AM »

I am really confused..so i am helpless for help you.sorry dear..
Logged
Ibanez Player 85
Jabba the Hutt
*****
Offline Offline

Posts: 517


« Reply #2 on: March 17, 2009, 05:32:58 AM »

I don't use NMS Formail, but just from looking at the error message, this is what I interpret:

You are accessing the form by going to http://moversonthemovela.com rather than http://www.moversonthemovela.com which is different (though I think many people see this as unintuitive, but true). Since the address is different, the script thinks you're accessing the script from another website, and thus, it will deny access to prevent someone from exploiting it. Try browsing to the site using the WWW in your domain name and then use the script.  You shouldn't get the same error message.

Now how you fix this is up to you... it says you can add the address to the @referers array, but I'm not sure what the syntax for this is. Also, since you already have the address moversonthemovela.com in the array, I'm not sure how you would differentiate between the WWW address and the address without it.  I suppose you can try adding the whole thing: i.e. http://moversonthemovela.com and http://www.moversonthemovela.com and see if that does anything. Again, you may have to look at the documentation to see what the syntax is.  Just from looking at what you've got already, it looks like the addresses are separated by a space.

Another solution might be to edit your .htaccess file and redirect your users to one or the other: http://moversonthemovela.com or http://www.moversonthemovela.com.

Hope this helps
« Last Edit: March 17, 2009, 05:34:55 AM by Ibanez Player 85 » Logged
vks87
Intergalactic Cowboy
*****
Offline Offline

Posts: 63


« Reply #3 on: April 01, 2009, 03:38:37 AM »

Thanks Ibanez Player 85.
Your post also help me..
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: