Simpler alternative to PHP to handle email form?
Hello
For a very basic brochure site, I need to add an email form. Is there a lighter alternative to PHP just to read and validate the few parameters (email + subject + body) and send the email? Thank you. |
You can use Javascript for the form validation if you don't mind doing it on the client side. Honestly I don't think you will get a much lighter alternative for emailing the form, that's just my opinion though. Let me know if you need help with the Javascript portion.
|
Quote:
Or you get a visitor with JavaScript turned off. |
Thanks for the info. Is there a light, relatively spammer-proof, server-side solution?
|
Quote:
What is your defenion of "light"? Do you mean less coding, or lighter on CPU usage? I don't really think you need to worry about that. |
I meant a solution that doesn't require installing the whole of PHP simply to read input fields and send an e-mail, including some basic CAPTCHA (eg. "what is ten + six" type).
|
I have been a web developer for years, and unfortunately I don't think there is any way to go lighter. You are basically going to need a server side language; there are a bunch to choose from, but you are going to have to install something. CGI or Perl might be lighter than PHP, you can give them a shot.
|
Thanks for the suggestion. I was indeed reading about writing a short app in CGI, something like C or Freebasic.
|
All times are GMT -5. The time now is 10:42 PM. |