iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-01-2006, 08:01 AM
WebProWorld New Member
 
Join Date: Sep 2006
Posts: 6
frogkettle RepRank 0
Default Using a Form-to-Email CGI Application

I wonder if I could get some help and advice regarding a server based application that I have just encountered on a site.

My initial research indicates that this is a Form-to-Email CGI Application (of which there are several types available) that handles data entered into an html form & then can do various things with it

For example the url:- http://www.dss-uk.co.uk/quote.html
This page simply takes the form data & emails it to a predefined email address which I am assuming is a rather nice way of hiding it from the Email Bots send out by Spammers to gather viable email addresses. Looking at the source code it would also appear that the Form-to-Mail application then displays one of three different screens depending of if an error was encountered or the data was accepted

The second example url:- http://www.dss-uk.co.uk/caldera/brochure.htm
Again this sends out an email using the data entered into the form but this time it allows the user to download a pdf file (this I have located to being stored in the directory http://www.dss-uk.co.uk/caldera)- would I be correct in assuming that all they have done is add a link onto the 'form accepted' page and so in principle is exactly the same as the first example?

Now for some questions that are bothering me;

i) Which of the available applications would folks recommend I load onto my server? (it looks like the site in question is using AlienForm2 but then I have also picked up a report on www.securityspace.com that this package is not all that secure)

ii) How does the application know what action to perform as the links from each of the different web pages all appear to be identical?

iii) Is this the best way of achieving the examples above or is there a better / easier way?

iv) Where would the 3 response pages for each option be stored, as I cannot find the source html anywhere?

v) Where would the destination email be stored?

vi) And lastly why is a .pl file used when refering to the server hosting the application?


I would be grateful for any advice or help on the pros & cons of this method
Reply With Quote
  #2 (permalink)  
Old 09-01-2006, 05:49 PM
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Spain
Posts: 343
computergenius RepRank 1
Default Re: Using a Form-to-Email CGI Application

Quote:
Originally Posted by frogkettle
My initial research indicates that this is a Form-to-Email CGI Application (of which there are several types available) that handles data entered into an html form & then can do various things with it
The programming language you use could just as easily be PHP or ASP. Simplest is to figure out what you have available on your server

Quote:
Originally Posted by frogkettle
would I be correct in assuming that all they have done is add a link onto the 'form accepted' page and so in principle is exactly the same as the first example?
Sounds like it

Quote:
Originally Posted by frogkettle
Now for some questions that are bothering me;

i) Which of the available applications would folks recommend I load onto my server? (it looks like the site in question is using AlienForm2 but then I have also picked up a report on www.securityspace.com that this package is not all that secure)
This would depend on what is available on your server.

Quote:
Originally Posted by frogkettle
ii) How does the application know what action to perform as the links from each of the different web pages all appear to be identical?
Not all data is visible. Data could be passed from page to page by POST or by SESSIONS

Quote:
Originally Posted by frogkettle
iii) Is this the best way of achieving the examples above or is there a better / easier way?
Totally depends on what you are trying to do <G>

Quote:
Originally Posted by frogkettle
iv) Where would the 3 response pages for each option be stored, as I cannot find the source html anywhere?
You can store the pages whereever you like. I write in PHP normally. You will not see the PHP code, something on the lines of "if you need to send an email, mail it off now", because PHP code is only normally visible on the server. HTML is not capable of this kind of behaviour, it cannot send emails, etc.

Quote:
Originally Posted by frogkettle
v) Where would the destination email be stored?
Either in a database, or emailed to the recipient.

Quote:
Originally Posted by frogkettle
vi) And lastly why is a .pl file used when refering to the server hosting the application?
Because the programming language is (appears to be) PERL, which usually has a .pl extension.

I use many different methods, usually writing my own, to pass a message to someone at the website, to put a message into a database for action, to "tell a friend" about this page.

You should first decide what is available on your server. There isn't an awful lot of difference at this level between PHP and ASP (these are the two main choices of web programming language)

And before some pedants jump in, the question appears to be a basic one, so I have simplified some parts of the answers.
__________________
Pete Clark
Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com
Reply With Quote
  #3 (permalink)  
Old 09-02-2006, 07:04 AM
TrafficProducer's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Jul 2003
Location: United Kingdom
Posts: 1,643
TrafficProducer RepRank 4TrafficProducer RepRank 4TrafficProducer RepRank 4
Default Form-to-Email CGI Application

Form-to-Email CGI Application.. I heard that there have been security issues using such code in the past.. Maybe much better now?

in PERL

Code:
# Mailprogram (Most it's OK so. On NT its Blat)
$mailprog = '/usr/sbin/sendmail';
Then

Code:
 
   open(MAIL,"|$mailprog -t -oi") || die;

    print MAIL "To: $my_email\n";
    print MAIL "From: $from_email\n";
    print MAIL "Subject: $subject\n\n";

    print MAIL "$mailmessage\n";

    close(MAIL);
Reply With Quote
  #4 (permalink)  
Old 09-03-2006, 02:41 PM
WebProWorld New Member
 
Join Date: Jul 2003
Location: usa
Posts: 14
thepcman RepRank 0
Default online form generator

Hello,

I don't know if this will help but you might try this FREE Formmail Form Generator it creates the form page for you and answers many set up questions.
Maybe it will help...
Reply With Quote
  #5 (permalink)  
Old 09-04-2006, 02:54 PM
WebProWorld Member
 
Join Date: Jun 2006
Location: Los Angeles
Posts: 62
itsdonny RepRank 0
Default

Here is a good one that was recomended to me.

Dagon Design Contact Form Generator
Reply With Quote
  #6 (permalink)  
Old 09-05-2006, 05:38 AM
WebProWorld New Member
 
Join Date: Sep 2006
Posts: 6
frogkettle RepRank 0
Default

Thanks guys - gives me some more to be looking into

one typo in my original post changed the meaning of one of the questions

Quote:
v) Where would the destination email be stored?
should have read

Quote:
v) Where would the destination email address be stored?
Reply With Quote
  #7 (permalink)  
Old 09-05-2006, 05:45 AM
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Spain
Posts: 343
computergenius RepRank 1
Default

Quote:
Where would the destination email address be stored?
Normally in the "code" section of the second page, be it PHP or ASP, or whatever. Visitors cannot read the "code", they can only read the HTML which the code generates, so the email address is not visible.

I sometimes store the email addresses in a database, if there are more than one, or if there is a choice - that would depend on the application.
__________________
Pete Clark
Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com
Reply With Quote
  #8 (permalink)  
Old 09-05-2006, 06:01 PM
WebProWorld Member
 
Join Date: Jun 2006
Location: islip, ny
Posts: 42
philscanlan RepRank 0
Default

This is a classic. CGI-Perl

http://www.scriptarchive.com/formmail.html
Reply With Quote
  #9 (permalink)  
Old 09-15-2006, 07:47 AM
WebProWorld New Member
 
Join Date: Sep 2006
Posts: 6
frogkettle RepRank 0
Default

Just some final feedback for anyone else following the same path as myself ....

AlienForm does not appear to have an English based web support site - so that was no good to me

And it seems the security issues are still there in the original FormMail application but has been fixed & enhanced by the guys at NMS http://nms-cgi.sourceforge.net/scripts.shtml

Support documents are not obvious for the NMS version but are there and do a rather good job of explaining how to use the package http://nms-cgi.sourceforge.net/formm...-3.14m1/README

Now that I think I fully understand how to use this package how I want all I have to do is put it into practice and as I am using XAMPP the perl support should already be there

Now to see if I can put it into working practice ... :) Thanks again to everyone who has added their comments on this :)
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:02 AM.



Search Engine Optimization by vBSEO 3.3.0