Form Question...

D

Don Schneider

Hi,

I have a form that is working great! A person fills in the form and it
emails the results to me no problem. My question is, how can I make it so
that ONLY the information entered is sent. If someone does not enter
anything in certain fields, I want the results not to show those fields when
sent, I only want the data that was filled in.

TIA
donlizard
 
T

Thomas A. Rowe

Not possible when using the FP Form Handler. Requires the use of server-side scripting (ASP,
ASP.net, PHP, etc. to process the form data.

--
==============================================
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.

Don said:
Hi,

I have a form that is working great! A person fills in the form and it
emails the results to me no problem. My question is, how can I make
it so that ONLY the information entered is sent. If someone does not
enter anything in certain fields, I want the results not to show
those fields when sent, I only want the data that was filled in.

If you use:
<form name="form1" action="">
then you can have a field at the bottom:
<input type="button" id="submit" value=" Send " onmouseover="testform()"
onclick="sendform()" />

testform() and sendform() are user written (client-side) JS functions

testform() tests to see if there are any errors (as defined in the
function). It alerts if there are and returns to the form, allowing changes
to be made

sendform() selects only those fields which you want to send and writes them
into the variable body.
It then sends the form using:
window.location = "mailto:" + "email address"
+ "?subject=whatever"
+ "&body=" + body

I have tried it and it works for me.

I think the sender's browser has to have a default email client, but
otherwise there are no problems.

I can post an example (or possibly a web reference) if you want.
 

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