Jump to content

Recommended Posts

Posted

I'm trying to use CGI email to submit information.

 

Here I have a test page:

http://sepero.heliohost.org/test.html

 

When the form is submitted, it goes to 404 Error.

 

 

Here is my template:

http://sepero.heliohost.org/emailtemplate.txt

 

Using either of these addresses as post action seems to result in 404:

http://sepero.heliohost.org/bin/cgiecho/emailtemplate.txt

http://sepero.heliohost.org/usr/bin/cgiech...ailtemplate.txt

 

 

In CPanel under CGI Center, CGI email is listed as a resource. Is it installed? If so, can anyone suggest the proper directory for it, or what I'm doing wrong?

Posted

When you go to your CGI Center you need to click onto the link that says 'CGI email' and it will get installed in your cgi-bin.

 

I've never used a text file in my root directory so I can't say for sure if this is the correct path for the form action or not.

 

<form action="cgi-bin/cgiemail/emailtemplate.txt">

 

Normally you would have your text file inside of a sub directory and then the form action would look like this:

 

<form action="cgi-bin/cgiemail/SUB-DIR/emailtemplate.txt">

 

 

 

Posted
When you go to your CGI Center you need to click onto the link that says 'CGI email' and it will get installed in your cgi-bin.

When I click on it, it takes me here:

http://web.mit.edu/wwwdev/cgiemail/nopath.html

 

I'm thinking it should be installed in the system if it exists, rather than in my home directory. The default location appears to be /bin/cgiecho

 

 

Ah no, I see you're right byron. Thank you.

 

It appears in my local dir www/cgi-bin/cgiecho and www/cgi-bin/cgiemail

Posted

When your finished testing you need to change

cgiecho

to

cgiemail

 

http://sepero.heliohost.org/cgi-bin/cgiema...ailtemplate.txt

 

and you can use relative urls for the form action if you want.

 

cgi-bin/cgiemail/emailtemplate.txt

 

 

 

 

Here's something you might want to add to your contact page right before your form closing tag. It redirects the person to a thank you page after they've clicked submit.

 

<input type="hidden" name="success" value="http://your_site.heliohost.org/thankyou.html">

 

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...