Help - Search - Members - Calendar
Full Version: cgiemail
HTMLHelp Forums > Programming > Server-side Scripting
Lundbird
Hi all,

Trying to create a webform for users to contact me. Tired of spam, so I'm told a CGI script will prevent this. Anyway, I like trying to figure this out, but I'm kind of stuck.

Here is the contact form link:

http://trainingwithinindustry.net/contact.html

Here is the success page link:

http://trainingwithinindustry.net/success.html

Here is my email template. I saved it in Unicode. Is that o.k.? I'm 99% sure that it is ASCII, but not 100%: (my email isn't posted like this in the actual file, by the way smile.gif

___________________________________________________________________
To: bryan [at] trainingwithinindustry [dot] net
Subject: TWI Service User Webform

What is your name? [yourname]
Would you like to receive TWI Service Updates via email? [subscribe]
What is your email address? [useremail]
What is your message topic? [topic]
What is your question, comment or suggestion? [comment]

____________________________________________________________________

And here is the error that I am getting.


Error
No email was sent due to an error.

403 No variable substitutions in template

Template filename hidden for security reasons

cgiemail 1.6
____________________________________________________________________

cgiecho works beautifully, cgiemail keeps yielding the previously mentioned error.

If anyone can just put another set of eyes on my ACTION, maybe some of my variables markup, I would appreciate it.

All the best,

Bryan
Brian Chandler
QUOTE
Trying to create a webform for users to contact me. Tired of spam, so I'm told a CGI script will prevent this.


Sadly no longer true, but starting from a form is probably a good idea. It helps if the script you are using (cgiemail) is well-written, for security.

Anyway the script gives an error, so you need to read the script instructions again carefully. Perhaps this "template" file needs to have variables indicated by $$ signs or whatever - I don't know, because I haven't read the cgiemail instructions.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.