Can I change the email recipient of a form using a script

A

Alex567

I am using FP 2002. My page has a simple form. The answers to the questions
dictate to whom I want the results to be emailed. Can I change the email
recipient using a simple script such that if say Value A is selected the
results go to A but if Value B is selected results go to B? How do I access
the mail recipient in an FP2002 form using VBScript? At the moment I am using
script to send the user to fill out another form with the different recipient
programmed in. Yuk.Thanks in advance for any help.
 
R

Ronx

If the coding is client side (in the browser) then use JavaScript, not
VBscript.
JavaScript is usable in any browser, whereas VBscript is limited to
Internet Explorer.

The FrontPage form has the recipient hard coded in the webbot. This
is impossible to change using client side scripting, since your script
would have to parse the webbot code to find the original recipient,
then change it and save the page on the server.

You could set the form to use the Subject to determine the final
recipient - use JavaScript to set a unique subject field and send to a
single recipient. In the recipient's email client set up rules to
forward the mail to others depending on the subject value.

The best solution, if your host supports server side scripting (ASP,
PHP, Perl/CGI etc.) then write your own form handler which will send
the mail to the appropriate address. This method has the added
benefit of removing all the recipients' email addresses from the form
altogether and thus reduce spam.
 

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