Visual Vision **User's** Forum (normal) (http://www.paperinik.com/cgi-bin/eng/YaBB.pl)
Our Products >> HyperPublish >> Email form data without confirm
(Message started by: Jelly on Sep 29th, 2003, 2:45am)

Title: Email form data without confirm
Post by Jelly on Sep 29th, 2003, 2:45am
I created a form and it works, but when I press "Submit", before sending the content it asks permission to the user ("Security warning..." etc. etc.). Is there a way for avoiding this? Most forms on Web don't ask for confirm.

Title: Re: Email form data without confirm
Post by Support Staff on Sep 29th, 2003, 3:43am
This is the normal behavior if you use the direct mail method (you choose this in the form start marker).
You might be better off having the form submit to a "CGI" script that sends out the email, like formmail (it is a script that's usually installed on the server by default).

First of all, ask to your Web host for a "formmail.cgi".
It will give you an address like:
http://thehost.com/cgi-sys/formmail.cgi
or
http://thehost.com/cgi-bin/formmail.pl
or so...

then
a) edit the form start marker; choose the "POST" tab instead the email tab, and write
http://thehost.com/cgi-bin/formmail.cgi
in the box (the URL above, the one supplied by your host, not ours!).

b) inside the page, it is likely you'll have to insert 3 hidden form elements (with Insert menu):
1)
name="redirect"
value="http://www.yoursite.com/blabla_0000xx.htm"
(where blabla_0000xx.htm is a "thank you" page)
2)
name="recipient"
value="youremail@yoursite.com"
3)
name="subject"
value="Hi! I am the email sent from form 1!"

The name/value of the parameters above depends on the script, please make sure to read the script user's manual (ask to your host).





Title: Re: Email form data without confirm
Post by tinku singh on Jul 1st, 2004, 4:04pm
hi!
with reference to your above suggestion, i have an account with tripod.lycos.com, and they do have a cgi library regarding form mailers, but i was unable to use it to send forms without the standard warning that IE uses. could you plz give us an example of what a cgi-script is supposed to look like to accept form info without the standard warning message. or better still, could you or someone plz give me the cgi script or its link used by the site http//tripod.lycos.com?
thanx
tinku@gawab.com

Title: Re: Email form data without confirm
Post by Support Staff on Jul 12th, 2004, 5:11am
I think tripod doesn't allow you to install your own scripts.

If you have your own server, usually the Control Panel contains a preinstalled formtomail script.

You may found several scripts like this on Google. HyperPublish just calls the script so as long as the script works, it works.

You find some other info on this topic
http://www.paperinik.com/cgi-bin/eng/YaBB.pl?board=EWw;action=display;num=1083524402

(it's the EWE / 1SITE forum - the form support is identical)

Title: Re: Email form data without confirm
Post by Support Staff on Apr 6th, 2005, 4:38pm
(JUST RECEIVED FROM DANIEL A.R., I POST HERE AS THIS MAYBE OF HELP)

My host provided this code for the "formtomail" script. Can you help?
<html>
<head>
<title>Mailform example</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="formmail"  action="/cgi-bin/formmail/formmail.cgi" method="post">
<input type=hidden name="recipient" value="email@abc.com">
<p><b>Subject:</b><br>
<input type=text name="subject" size="45" value=""></p><br>
<p><b>Your Name:</b><br>
<input type=text name="realname" size="45" value=""></p><br>
<p><b>Your Email Address:</b><br>
<input type=text name="email" size="45" value=""></p><br>
<p><b>Comments:</b><br>
<textarea name="body" rows="10" cols="60" wrap="virtual"></textarea></p><br>
<p><input type="submit" value="Send Email"> <input type="reset" value="Reset Form"></p>
</form>
</body>
</html>

Let me know what I need to input!  Thanks for your help.

Title: Re: Email form data without confirm
Post by Support Staff on Apr 6th, 2005, 4:39pm
That is the "low level" HTML code for a page.

With HyperPublish all is visual so you don't need to type all this code.
From the code you may see that you need to:

1) insert a form start marker; it must be "POST" and must point to the script
/cgi-bin/formmail/formmail.cgi
(there is a box, fill it with the string above)

2) insert an Hidden form element with
identifier => recipient
value => youremail@yourisp.com
(Insert >Forms >Form element - then the Hidden tab)

3) insert some form elements (no matter what and how many), in order to fulfill your needs....

4) insert at least one form button in order to "close" the form

That's all.
Any form must start with a "form start marker" as above and must end with (at least) one form button. The Hidden identifier tells to the server where to send the form data once the user presses the form button.

Title: Re: Email form data without confirm
Post by Seb on Sep 7th, 2007, 11:35pm
Hi,

I made my whole site using Hyperpublish and enjoyed every second of the experience!

Now,  I feel like an idiot because there is something I just can't figure out with the POST method:

1-  I'm with netifrms.com

2-  They have no idea what I'm talking about  
     when I ask them for a formmail.cgi

3-  When I do publish my site,  I do see a /cgi-
     bin folder (which is empty at the moment).

4-  I can't figure out what to put in:  Program
    path and name.  I did try variations of what
    you suggested in previous posts but I keep
    getting error 404 file not found.  When you
    put:  thehost,  you do mean my address  
    right ?

HELP!!!

Thanks for your time:  it's greatly appreciated.

Seb.

P.S.  what's ENCTYPE ?







Title: Re: Email form data without confirm
Post by Support Staff on Sep 8th, 2007, 2:05am
1,2) change and move to a serious host. A host that does not know about formmail is like an electrician that does not know energy saving lamps.

3) if you are a programmer, or you have some experience, you can create or copy to the cgi-bin folder a formmail program, then you can use it.  There are several free form mail scripts (=programs) on the net...

4) Say you create the program fm.pl on the visualvision.com website, then the path will be
www.visualvision.com/cgi-bin/fm.pl

at present, you have no formmail scripts on your system, so there is not a path you can put...

enctype -> normally you don't touch this.

Title: Re: Email form data without confirm
Post by Seb on Oct 9th, 2007, 12:16pm
Hi,

I'm almost out of the woods:

I'm getting my forms sent to my email but here's what they look like:

sujet: annonce particulier unifamiliale

referers: www.pub

ex: paysagement,  propreté,  calme,  rénovations...: la vue


identifier: belle, 6879 lamont, 2002, 30, 35, 1000, 100, 100, 10 000 p2, haut de la
montagne, 12, 8, 8, garde-robe, 20, 20, foyer, longueur en pieds, largeur en pieds,
détail intéressant à me[......support had cut this interminable list......]



How may I customize the appearance of the report ?

Also,  for some reason,  once the form is sent in,  I get:

Not Found
The requested URL /merci.htm was not found on this server.

Thanks so much for your help!

Seb.

Title: Re: Email form data without confirm
Post by Support Staff on Oct 9th, 2007, 1:31pm
usually you can not customize what you receive for email.
you receive identifier = the content of the box or the seletion, or identifier: the content of the box or the selection, e.g. for a form with 5 fields that asks to the user full name and address you could receive

name = john
familyname = smith
address = 282, washington av.
city = new york
state = NY

this if the 5 boxes have these identifiers: name, familyname, address, city, state

probably you did some error for the element that has as identifier "identifier", it looks a long text...
My guessing is that maybe you did not define an unique different identifier for each field of your form, but you used "identifier" for everything. In case you did this way, the example above will result in messed crap like this

identifier = john, smith, 282, washington av., new york, NY


As for the "not found", you probably set up the script in order to show the page /merci.htm when the user presses the Submit button.

You should change this setup and point this to an existing "thank you" page of your web site, e.g.
http://www.visualvision.com/content_publishing_software_000094.htm

Title: Re: Email form data without confirm
Post by Seb on Oct 10th, 2007, 6:04pm
Thanks:  your feedback makes perfect sense and is extremely appreciated!

I will fix it shortly.

Thanks again.

Seb.



Visual Vision **User's** Forum (normal) » Powered YaBB 1 Gold - SP1!
YaBB © 2000-2001, XNull. All Rights Reserved.
This forum © 2001-2008 VisualVision and VisualVision Users