Lunarpages Web Hosting Forum

Author Topic: NMS help!  (Read 10730 times)

leighsww

  • Guest
NMS help!
« Reply #15 on: August 20, 2004, 03:36:51 AM »
Okay, post the top portion of your script again.  I don't need the whole thing this time, I just need the CONFIGURATION part.

Offline parish2

  • Spaceship Navigator
  • *****
  • Posts: 93
NMS help!
« Reply #16 on: August 20, 2004, 03:38:45 AM »
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(parishomeawayfromhome.com localhost);
  @allow_mail_to     = qw(jeffrey@parishomeawayfromhome.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: jeffrey@parishomeawayfromhome.com
Subject: Paris reservation request

Thank you for your form submission.

END_OF_CONFIRMATION

# You may need to uncomment the line below and adjust the path.
# use lib './lib';

leighsww

  • Guest
NMS help!
« Reply #17 on: August 20, 2004, 03:42:30 AM »
Everything looks just fine.  Hmmmm, why aren't you getting the email when the form is sent from your server?

You didn't touch any part of the script below that CONFIGURATION portion, right?

Your script ends with this right?

Code: [Select]
 );
}

$script->request;

leighsww

  • Guest
NMS help!
« Reply #18 on: August 20, 2004, 03:45:00 AM »
I just filled out the form on your website, see if you got it.

Offline parish2

  • Spaceship Navigator
  • *****
  • Posts: 93
NMS help!
« Reply #19 on: August 20, 2004, 03:47:17 AM »
Nope.

leighsww

  • Guest
NMS help!
« Reply #20 on: August 20, 2004, 03:50:17 AM »
If you didn't get the email.  Try removing the following line from your html page (it's in the "submit" tag):

Code: [Select]
onClick="MM_goToURL('parent.frames[\'mainFrame\']','thankyou.htm');return document.MM_returnValue"

And instead put the following hidden tag just under your "action" tag:

Code: [Select]
<input type="hidden" name="redirect" value="../thankyou.htm">

leighsww

  • Guest
NMS help!
« Reply #21 on: August 20, 2004, 04:00:20 AM »
Okay, I need to go to  :sleep:

So, I'll check this thread tomorrow to see if you got resolved or if you still need help.

Offline parish2

  • Spaceship Navigator
  • *****
  • Posts: 93
NMS help!
« Reply #22 on: August 20, 2004, 04:01:03 AM »
I did what you suggested, and tried submitting the form.  I got this error message:

Not Found
The requested URL /cgi-bin/reservecode.pl was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/1.3.31 Server at www.parishomeawayfromhome.com Port 80

leighsww

  • Guest
NMS help!
« Reply #23 on: August 20, 2004, 04:17:46 AM »
Check to see if the script is still in the cgi-bin.

If it is, then put that "OnClick" tag back in (you can copy it from my post) and remove the "hidden" tag.

GAD, it worked on my server and you got the email, so I can't understand why it is not working from your server?

I absolutely have to go to bed, so I'll check back tomorrow.

Offline parish2

  • Spaceship Navigator
  • *****
  • Posts: 93
NMS help!
« Reply #24 on: August 20, 2004, 07:16:57 AM »
OK, I did it, it still doesn't work, I hope you're having a good sleep. Thanks for your help.  I'll look for you tomorrow.

leighsww

  • Guest
NMS help!
« Reply #25 on: August 20, 2004, 10:17:15 AM »
Still doesn't work, meaning you're not getting server errors, but just not the email, right? Cuz, if you are getting server errors like the last one, then we need to fix that first.

Offline parish2

  • Spaceship Navigator
  • *****
  • Posts: 93
NMS help!
« Reply #26 on: August 20, 2004, 02:08:44 PM »
Just not getting the email - no more server errors.

leighsww

  • Guest
NMS help!
« Reply #27 on: August 20, 2004, 02:10:36 PM »
Hmmmm, I don't know what to tell you then, parish2.  Cuz as you can see (since you got the email that came from my server) that your form and the script works.

For some reason, you just can't get the email back when the forum/script is accessed from your server.

Weird :abduct:

Offline parish2

  • Spaceship Navigator
  • *****
  • Posts: 93
NMS help!
« Reply #28 on: August 20, 2004, 02:34:57 PM »
So you think the form is working, but not when I try to use it?   Yes, that is strange.  I guess I'll try logging on to another computer and seeing if I can generate a successful form submission that way.

leighsww

  • Guest
NMS help!
« Reply #29 on: August 20, 2004, 02:55:19 PM »
Quote from: parish2
So you think the form is working, but not when I try to use it?

Yes, the form works because if it didn't, it wouldn't have worked on my server either, but it did and you even got the email, so we know it's not a filter otherwise, you wouldn't have received even the one from my server.