Jump to content

feedback form / CGI script form2email


arcon

Recommended Posts

the last part of making my website is a feedback form, and i'm having trouble getting it to work. basically i downloaded the free form2email.pl CGI script, and edited it as instructed. i uploaded the pl file to my cgi-bin folder, and the html contact page to my httpdocs (so the html is told to action="../cgibin/form2email.pl" however browser says it can't find can't find the pl file... i've enabled execute permissions on the pl... ? is my path wrong or is it likely something else..?

 

as a test i tried copying the pl just to httpdocs and it found it, but firefox tried to open the pl file lol, i'm guessing its supposed to be in cgi-bin... as if you couldn't tell already i'm a total newb at this.

 

any help much apprec.

Link to comment
Share on other sites

Your path is probably wrong. If your html contact page is not in a folder but in the root then your path should probably be "cgibin/form2email.pl" You would use ../cgibin/form2email.pl" if your contact html file was in a folder, the ../ says "get out of the folder, then look for the folder cgibin".

Link to comment
Share on other sites

I know this sounds like a random question, but how do you have the form2email.pl file set up after the form submits? What page do you send the user to? Sounds like someone was having a similar problem to you (https://forums.powweb.com/showthread.php?t=55577) and the issue was that the variable "HTML_thankyou" needed to use a full path, including http:// rather than a relative path.

 

$HTML_thankyou = 'http://www.yourdomain.com/thankyou.htm';

 

Might be something to check.

Link to comment
Share on other sites

i've got most of my feedback form layout pretty nice now, used class identifier to change mandatory text field names to a different color, but i just need to find a tutorial that guides me through actually making them mandatory so it brings up a dialogue box or something if the mandatory fields aren't complete... i couldn't find this in the archives..? any tips or links to form tutorials much apprec :)

 

i also figured out i need to disable the enter key on that page somehow.... as when filling out the 'comments' section and they hit enter for next line, it sends automatically lol.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...