Form Questions

G

Guest

Hi all,
I have two questions. 1) I would like to have a letter (sent by email) upon
submission of a form. Is this possible? If so, how do I set it up? 2) I
want to add an option on my "thank you for submitting your information" page
that allows people to refer a friend. Basically where the client can fill in
a series of friend's email addresses, and then fp automatically sends and
invite to sign up online. Is this possible? If so, how do I set it up?
Thanks a bunch!
 
T

Thomas A. Rowe

The FP Form Handler can not be used to do this. You would need to learn to (or hire someone to)
write a custom application using whatever server-side scripting 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.
==============================================
 
T

Trevor L.

Thomas said:
The FP Form Handler can not be used to do this. You would need to
learn to (or hire someone to) write a custom application using
whatever server-side scripting language is supported by your web host.
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 ?

Re 1)
I posted a suggested script in reply to another post.
It needs the user to have an email client installed, but how many people
wouldn't ?

Bliss,
Re 2)
You can modify this

function checkEmailAddress(field)
{
// the following expression in () after 'match' must be all on one line...
if
(field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi))
return true
else
{ alert('Please enter a valid e-mail address.')
field.focus()
field.select()
return false }
}
function mailThisUrl()
{
var subj = "I thought this might interest you..."
var text = "Here is an interesting Website: "
var content = "mailto:"
+ document.eMailer.address.value
+ "?subject=" + subj
+ "&body=" + text + "%0d%0a"
+ document.title
+ " (" + location.href + ")"
if (checkEmailAddress(document.eMailer.address))
window.location = content
}

Some HTML would be
<form id="eMailer">
E-Mail this page as link<br />
Enter recipient's e-mails, separated by commas:<br />
<input type="text" id="address" size="100" />
<input type="button" value="Send" style="cursor:pointer"
onclick="mailThisUrl()" />
</form>

The address field would need to be large enough for several names. Perhaps a
textarea field (type="textarea") might be better

The contents of var subj could be altered to the invitation that you want.
Use "%0d%0a" for a line break.
 
T

Thomas A. Rowe

See below

--
==============================================
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,
Is it actually necessary to use a server-side script ?

Personally, I would not rely on a site visitor running JavaScript. Server-side is more secure,
supported by all browsers and site visitors can keep their privacy, from the person they are sending
the email to by using a form on a web site.
Re 1)
I posted a suggested script in reply to another post.
It needs the user to have an email client installed, but how many people wouldn't ?

The email application must be set as the default email client for the browser being used for the
mail function to work by the site visitor. I have IE and OE as my default, so I could use this,
however I would not be able to use this from Netscape, Opera or FireFox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top