Created Form now what do I do to get it to be emailed back to me?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have created a form on my web page, but I need help in figuring out how,
once it's filled out by clients it can be sent to my email.

Sandra
 
You must publish it to server that has the FP extensions via FP's File Menu | Publish Web / Site
command to a URL the beginning with http:// and the remote host server must also be configured by
the host to process the email generated by the FP form. Check with your web host.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
right click the form, go to "Properties" and insert the email you want the data
sent to.
 
Rightclick forms-Form properties-Options-E-mails results

There you can mention your e-mail id
 
Is there a way to list multiple emails in that section so the form is sent to
more than one individual?
 
Not when using the FP Form Handler. Require a custom written server-side script based on whatever
language is supported by your web host.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
Thomas said:
Not when using the FP Form Handler. Require a custom written
server-side script based on whatever language is supported by your
web host.

Thomas,
Is it actually necessary to use a server-side script ?

Wouldn't something like this work?
I know it needs the user to have an email client installed, but how many
people wouldn't ?

JS code
function testform()
{
/* code to validate the form */
}

function sendform()
{
with (document.form1)
{
var body = ''
var i = elements.length , j = 0
while (i-- > 2) // drop last two elements
{
body += elements[j].name
body += elements[j].value
+ '%0d%0a' // line break after each line
j += 1
} // end while
}
window.location = "mailto:" + "mysite" + "@" + "mydomain" + ".com"
+ "," + "anothersite" + "@" + "anotherdomain" +
".com"
// add more addresses separated by commas
+ "?subject=Title"
+ "&body=" + body
}

HTML code
<form name="form1" action="">
<div style="background-color:#DBE0F5; padding:3px; font:75% arial;">
<b>Title</b>
</div>
<div style="padding:10px; font:75% Arial; text-align:left;">
<p>
Hi all,<br />
Introductory text
Name:<br/>
<input type="text" id="Name" value="Insert name" size="40"
onfocus="if (this.value=='Insert name'){this.value='';};return
false;"
onblur="if (this.value==''){this.value='Insert name';return
false;}"/><br/>
Email:<br/>
<input type="text" id="Email" value="Insert e-mail address" size="40"
onfocus="if (this.value=='Insert e-mail
address'){this.value='';};return false;"
onblur="if (this.value==''){this.value='Insert e-mail
address';return false;}"/><br/>
<!-- other fields -->
Enter Comment:<br/>
<textarea id="Comment" rows="10" cols="100"
style="font:100% Arial;">Enter your comment in
here</textarea><br />
</p>
</div>
<div align="center" style="background-color:#DBE0F5; padding:3px;
font:12px arial;">
<input type="button" id="submit" value=" Send "
onmouseover="testform()" onclick="sendform()" />
<input type="reset" id="reset" value=" Clear "/>
</div>
</form>
 
Don't users get a warning prompt about using a mailto from a form?

I prefer to always try to eliminate any warning message that might cause people to consider maybe
not using the site.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Trevor L. said:
Thomas said:
Not when using the FP Form Handler. Require a custom written
server-side script based on whatever language is supported by your
web host.

Thomas,
Is it actually necessary to use a server-side script ?

Wouldn't something like this work?
I know it needs the user to have an email client installed, but how many people wouldn't ?

JS code
function testform()
{
/* code to validate the form */
}

function sendform()
{
with (document.form1)
{
var body = ''
var i = elements.length , j = 0
while (i-- > 2) // drop last two elements
{
body += elements[j].name
body += elements[j].value
+ '%0d%0a' // line break after each line
j += 1
} // end while
}
window.location = "mailto:" + "mysite" + "@" + "mydomain" + ".com"
+ "," + "anothersite" + "@" + "anotherdomain" + ".com"
// add more addresses separated by commas
+ "?subject=Title"
+ "&body=" + body
}

HTML code
<form name="form1" action="">
<div style="background-color:#DBE0F5; padding:3px; font:75% arial;">
<b>Title</b>
</div>
<div style="padding:10px; font:75% Arial; text-align:left;">
<p>
Hi all,<br />
Introductory text
Name:<br/>
<input type="text" id="Name" value="Insert name" size="40"
onfocus="if (this.value=='Insert name'){this.value='';};return false;"
onblur="if (this.value==''){this.value='Insert name';return false;}"/><br/>
Email:<br/>
<input type="text" id="Email" value="Insert e-mail address" size="40"
onfocus="if (this.value=='Insert e-mail address'){this.value='';};return false;"
onblur="if (this.value==''){this.value='Insert e-mail address';return false;}"/><br/>
<!-- other fields -->
Enter Comment:<br/>
<textarea id="Comment" rows="10" cols="100"
style="font:100% Arial;">Enter your comment in here</textarea><br />
</p>
</div>
<div align="center" style="background-color:#DBE0F5; padding:3px; font:12px arial;">
<input type="button" id="submit" value=" Send " onmouseover="testform()" onclick="sendform()"
/>
<input type="reset" id="reset" value=" Clear "/>
</div>
</form>
 
Thomas said:
Don't users get a warning prompt about using a mailto from a form?

I prefer to always try to eliminate any warning message that might
cause people to consider maybe not using the site.

Hi Thomas,
Thanks for your answer to my similar post

But to reply to your question above,
No, with this script, the user does not get a warning.

When (s)he clicks on Send, it simply opens the email client with the text
embedded.

To all intents, it is justs like opening the email client oneself, except
that certain text is pre-generated.
 
Back
Top