NameSilo

Please Help!!

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

pb21baller

Account Suspended
Impact
0
Im coding a site by hand. And i need help with forms. www.chillendesigns.com/contact.htm
is where the form is, view my source and c wat i did wrong. I am coding in html, is it sumthing with the cgi?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
You have this in your code:

<form method="post" form action="ftp://[email protected]/public_html/cgi-bin/comments.pl">

the form will try to open an ftp connection to your server, hence the request for authentication. Try instead something like this for the "action=" destination:

chillendesigns.com/cgi-bin/comments.pl

Assuming that is where your comments.pl script is, then it should work.

Good luck!

Apollo aka armstrong
 
0
•••
0
•••
Two possibilities:

- You didn't set appropriate access rights to the file comments.pl ; this should have read and execute privilege to run correctly.

- Maybe your webhost didn't configure your account to have access to cgi-bin? Contact their support to get it cleared up.
 
0
•••
How do i go about setting acess rights? and my host was local very good hosting but does nto know very good at cgi....... so how does he give me acess
 
0
•••
If you don't have command line access, then you can use ftp instead. Most ftp software (which you need to upload your files on to the server) will allow you to set access rights. I use a free one from smartftp.com , and it works great.
 
0
•••
I use smartftp also but how do i set acess rights
 
0
•••
in smartftp, click to highlight a file or directory, then press F7 . Its really all there in the short smartftp manual/readme if you need help with anything else.
 
0
•••
Dude yet again.......i need ur help.........i mean i dont relly get wat ur saying......i highlighted cgi-bin and pressed f-7 but nuthing happenedso now wat do i do
 
0
•••
highlight it on the right (contents) window /area, not on the left. Also, cgi-bin should be already good to go; most probably the problem lies with the actual file comments.pl. FYI:

For Reference...
644 is Owner: Read Write
Group: Read
Other/World: Read

766 is Owner: Read Write Execute
Group: Read Write
Other/World: Read Write

755 is Owner: Read Write Execute
Group: Read Execute
Other/World: Read Execute

777 is Owner: Read Write Execute
Group: Read Write Execute
Other/World: Read Write Execute

Unless you have special requirements, 755 should work in this case.

Are you using the most current smartftp version?
 
0
•••
Hi, if youre having trouble with cgi why not use a php script to process your form

heres one that I use:

PHP:
<?php

$MailToAddress = "[email protected]"; // your email address
$redirectURL = "url of thank you page"; // the URL of the thank you page.

# optional settings
$MailSubject = "Subject of the form here"; // the subject of the message you will receive
$MailToCC = ""; // CC (carbon copy) also send the email to this address (leave empty if you don't use it)
# in the $MailToCC field you can have more then one e-mail address like "[email protected], [email][email protected][/email], [email][email protected][/email]"

# If you are asking for an email address in your form, you can name that input field "email".
# If you do this, the message will apear to come from that email address and you can simply click the reply button to answer it.
# You can use this scirpt to submit your forms or to receive orders by email.
# You need to send the form as POST!

# If you have a multiple selection box or multiple checkboxes, you MUST name the multiple list box or checkbox as "name[]" instead of just "name" 
# you must also add "multiple" at the end of the tag like this: <select name="myselect[]" multiple> 
# and the same way with checkboxes

# This script was made by George A. & Calin S. from Web4Future.com
# There are no copyrights in the e-mails sent and we do not ask for anything in return.

# DO NOT EDIT BELOW THIS LINE ============================================================
# ver. 1.2
$Message = "";
    if (!is_array($HTTP_POST_VARS))
    return;
reset($HTTP_POST_VARS);
	while(list($key, $val) = each($HTTP_POST_VARS)) {
		$GLOBALS[$key] = $val;
		if (is_array($val)) { 
			$Message .= "<b>$key:</b> ";
			foreach ($val as $vala) { 
				$vala =stripslashes($vala);
				$Message .= "$vala, ";
			} 
			$Message .= "<br>";
		} 	
		else {
			$val = stripslashes($val);
			if (($key == "Submit") || ($key == "submit")) { } 	
			else { 	if ($val == "") { $Message .= "$key: - <br>"; }
					else { $Message .= "<b>$key:</b> $val<br>"; }
			}
		}
	} // end while
$Message = "<font face=verdana size=2>".$Message;
mail( $MailToAddress, $MailSubject, $Message, "Content-Type: text/html; charset=ISO-8859-1\r\nFrom: ".$email."\r\nBCc: ".$MailToCC);
header("Location: ".$redirectURL);
?>
 
0
•••
form method="post" form action="ftp://[email protected]/public_html/cgi-bin/comments.pl">


Do you need a password to access that user account (baller) on the ftp ?

If so, perhaps you need to add it to string with the ftp address above like so...

Code:
"ftp://baller: [email][email protected][/email]/public_thml/cgi-bin/comments.pl">

(Just take out the gap after the ":")

That is my best guess. If thats not it let me know and I'll try to help you out.
 
Last edited:
0
•••
Truehost — .com domains from $4.99, hosting includedTruehost — .com domains from $4.99, hosting included

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back