CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Perl Form Still Not Working With BlueHost

 



Mbconsulting
Novice

Mar 1, 2017, 4:58 PM

Post #1 of 2 (958 views)
Perl Form Still Not Working With BlueHost Can't Post

I have attached the FormMail.pl code.
Have been working on this form for 37 hours. When you fill form at http://www.scholars-discount-card.com/contact-us.htm

I am getting a 404 Error File Not Found

The page you are looking for might have been removed,
had its name changed, or is temporarily unavailable.

Url shows up as :http://www.scholars-discount-card.com/scholars-discount-card.com/cgi-bin/FormMail.pl

Code on Page:
<form action="scholars-discount-card.com/cgi-bin/FormMail.pl

Here is my FormMail.pl code:
#!/usr/bin/perl

#

# NMS FormMail Version 3.14c1

#



use strict;

use vars qw(

$DEBUGGING $emulate_matts_code $secure %more_config

$allow_empty_ref $max_recipients $mailprog

$encryptuser $encryptprog @referers

@allow_mail_to @recipients %recipient_alias

@valid_ENV $date_fmt $style $send_confirmation_mail

$confirmation_text $locale $charset $no_content

$double_spacing $wrap_text $wrap_style $postmaster

$address_style

);



# PROGRAM INFORMATION

# -------------------

# FormMail.pl Version 3.14c1

#

# This program is licensed in the same way as Perl

# itself. You are free to choose between the GNU Public

# License <http://www.gnu.org/licenses/gpl.html> or

# the Artistic License

# <http://www.perl.com/pub/a/language/misc/Artistic.html>

#

# For help on configuration or installation see the

# README file or the POD documentation at the end of

# this file.



# USER CONFIGURATION SECTION

# --------------------------

# Modify these to your own settings. You might have to

# contact your system administrator if you do not run

# your own web server. If the purpose of these

# parameters seems unclear, please see the README file.

#

BEGIN

{

$DEBUGGING = 1;

$emulate_matts_code= 0;

$secure = 1;

$allow_empty_ref = 1;

$max_recipients = 5;

$encryptuser = '';

$encryptprog = '';

$mailprog = '/usr/sbin/sendmail -oi -t';

$postmaster = '';

@referers = qw(scholars-discount-card.com);

@allow_mail_to = qw(danny@mbconsultingnj.co);

@recipients = qw(danny@mbconsultingnj.co);

%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: you@your.com

Subject: form submission



Thank you for your form submission.



END_OF_CONFIRMATION

Any ideas on why form is not working? Bluehost is no help
Thanks for any help.
Attachments: FormMail.pl (83.3 KB)


FishMonger
Veteran / Moderator

Mar 1, 2017, 8:29 PM

Post #2 of 2 (955 views)
Re: [Mbconsulting] Perl Form Still Not Working With BlueHost [In reply to] Can't Post

Try not assigning anything to the @referers array.

If that doesn't work, then change the value of the action to either use the full url (which includes http://) or just use the relative path to the script. IMO, using a relative path is better because it doesn't require the unnecessary DNS lookup.


(This post was edited by FishMonger on Mar 1, 2017, 8:39 PM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives