This is topic Any CGI Script/Java Script Guru's out there? in forum Old Archives at The Letterville BullBoard.


To visit this topic, use this URL:
http://www.letterville.com/ubb/ultimatebb.php/topic/13/8575.html

Posted by Robert Beverly (Member # 1907) on :
 
For the life of me, I can't seem to get a script working for my submit buttons.I use Dreamweaver(ironically enough)... [Smile]

Thought I would see if anybody has code that I can pop in and it would format to be emailed to me

Thanks in advance!
 
Posted by Amy Brown (Member # 1963) on :
 
Robert,

I am definately not a guru. A while back when I was trying to get my formmail to work I went about crazy. I did everything the way it said at http://www.worldwidemart.com/scripts/

It ended up that when I was sending the files via ftp I was in binary mode and needed to be in ascii. It took me 10 hours to figure that out.

Just a thought. It might work!
 
Posted by Mike Pipes (Member # 1573) on :
 
Robert, are you using a custom script or one of the scripts posted at the link Amy added?

Also, are the permissions set correctly on the folder that contains the cgi script? If you are using a cgi-bin directory that was already setup on your server, it's probably already set correctly, but if you are adding a new folder you have to use TelNet to log in to the server and execute a few commands to set the permissions on that folder. This is something you should have your webhost do for you if you are not familiar with TelNet. If the permissions are not set right, the server cannot execute the script.

Otherwise, you can drop the following code into your form once the cgi is working, this will email it to you.

"<input type="hidden" name="recipient" value="your@emailaddress">"
"<input type="hidden" name="redirect" value="URL of your "Thank You" page after the user submits the form">"
"<input type="hidden" name="subject" value="Your preferred emailed result subject line!">"

Be sure to remove the quotes before and after the brackets, I used them so the BB wouldnt interpret the code.

the "input type=hidden" parts make these items invisible to the user but Dreamweaver will show them in edit mode.

You should be able to drop these in anywhere in your form, I have them after the submit button on my forms just so I can locate them easier.
 
Posted by Robert Beverly (Member # 1907) on :
 
THANKEE >>>THANKEE!!!!

I see what I am doing wrong now. I will try it this weeknd and give it a whirl!

I'll let ya know what I come up with!

I do appreciate it!!!!!
 


Powered by Infopop Corporation
UBB.classic™ 6.7.2