Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
mooredb
Joined: Dec 04, 2003
# Posts: 15
|
Posted: 2004-Jan-09 06:58
I need help...I have created a form and copied the mail.cgi file to my cgi-bin directory and I still can't get it to work....After I fill out the form and hit the submit button is say "You are not authorized to view this page" I have set the excute permission for all to access..and still not working. This is the file of where my form is at http://www.houston-real-estate-agent.com/form2 ...and this is where my cgi file is located at http://www.houston-real-estate-agent.com/cgi-bin/mail.cgi can someone take a look and see why this is not working.
Also I am on a linux server
Or does anyone know of a good website use a script that will work...I am new to the scripting side.
thanks
|
 |
NEntropy
Joined: Dec 08, 1999
# Posts: 1117
|
Posted: 2004-Jan-11 04:09
There are many many things that could be triggering the forbidden error. If you're absolutely sure about the permissions, (check not only the script, but also the parent cgi-bin directory), then without further knowledge of how the server is setup, it'll be hard to troubleshoot it.
Hmm... What I would recommend is that you use PHP instead of Perl for your mail script :D - if (and this is a big if) it's already installed and configured for you, it tends to be easier to deploy PHP based scripts.
To see if you have PHP installed, create a file with extension "php" (ie, info.php) anywhere in your web accessible space and put the following code in there
<?
php_info( ) ;
?>
If access that page through webbrowser and you see the code you posted above, then you don't have PHP. If you do see information about PHP and your server, then PHP is setup. One good place to start for mail related PHP scripts is the php mail function manual page at http://www.php.net/mail
|
 |
mooredb
Joined: Dec 04, 2003
# Posts: 15
|
Posted: 2004-Jan-12 02:14
NEntropy,
Thanks for the information! Yes it does appear that I do have PHP installed So I will check out that site.
Thanks
|
 |
NEntropy
Joined: Dec 08, 1999
# Posts: 1117
|
Posted: 2004-Jan-12 03:09
I thought I was linking to the right article, but I wasn't. this page has more specific content on the actual mail() function that's used to send emails using PHP including examples.
|
 |
mooredb
Joined: Dec 04, 2003
# Posts: 15
|
Posted: 2004-Jan-12 03:46
Yikes! After reading that too much code for me to understand. . But I sort of got an idea of some of it. I also just came accross this site. http://www.boaddrink.com/projects/phpformmail/ do you think this would be a good srcipt to use? Also where would I put the script on my server? What directory should it be in or does it matter?
I just tired to create a simple form and use the above and that doesn't seem to be working either . What can you make of this. I have my script located at http://www.houston-real-estate-agent.com/formmail.php
Here is the code for the form:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form action="formmail.php" method="get" enctype="application/x-www-form-urlencoded" name="testing" target="_top">
<input type="text" name="mytext"
value="This is a text Field you can Edit" size="30">
These are check boxes
<input type="checkbox" name="music" value="checkbox">Music
<input type="checkbox" name="health" value="checkbox">Health <input type="checkbox" name="travel" value="checkbox">Travel
These are Radio Buttons
<input type="radio" name="payment" value="visa">Visa<input type="radio" name="payment" value="master">Master Card<input type="radio" name="payment" value="american">American Express
This is a button
<input type="submit" name="Submit" value="click Me">
</form>
</p>
</body>
</html>
|
 |
NEntropy
Joined: Dec 08, 1999
# Posts: 1117
|
Posted: 2004-Jan-12 06:54
You seem to be missing some required fields - check the readme file.
One word of advice - the form as it currently stands can be used by spammers to spam people... and it'll look like the spam is coming from you. You'd want to edit the script so that recipient value is hardcoded in the script itself. If you can't figure it out, ask on the forum.
Because it's PHP, the script can be located anywhere...
|
 |
joe_vimal
Joined: Mar 22, 2001
# Posts: 104
|
Posted: 2004-Jan-13 09:29
It looks like as if you have removed the page form2 from your site. There are a few things you should pay attention to.
1. Your mail.cgi - if you have copied the original script from some script repository and modified the script for your server, the chances are - it should work alright - if you have followed the explicit instruction given by the script author. Perl has thousands of pre-cooked scripts for such application. Most of the well-written scripts always give in their comments - adequate instructions to set up the scripts in your server. In case you run into any problem with the installation, the best thing to do is reproduce the complete listing here and the error messages you get.
This helps one of the Perl gurus here to sort it out for you.
The script here http://www.houston-real-estate-agent.com/cgi-bin/mail.cgi returns a 403 error which implies that the permissions are wrong.
Check with your host that the cgi-bin directory is configured to éxecute' Perl scripts. If it is, use your shell access to set the permission like this:
chmod 755 mail.cgi
In case you have only a FTP access, use your FTP client to set the permission. When you call this script, it should display some other message other than a 403.
In case you are greeted with a Internal Server Error - 500 message, it is likely that you did not set the shebang (The first line of the script) to the appropriate path to the Perl binary.
This Perl installation http://www.bestnetcraft.com/readme.html tip might be of help.
|
 |
gaddy
Joined: Jan 01, 2005
# Posts: 1
|
Posted: 2005-Jan-01 23:44
There are several automated web form creation sites that may help if you are having too much trouble. I personally gave up and went to createaform.com. They have a lot of features without having to code the form.
The only catch is that you need to pay after 25 form submissions are used. But it's pretty cheap anyway.
- gaddy
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|