• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

Forms and email

I want to generate a simple form that will be able to send a form to a specified user. Ive been trying to make buttons that when clicked will submit the form to the specified user.  The problem is, it looks like I can only specify one email address in the form wizard to send the form to.  I want to create buttons when clicked it would go to the users email that I assign to that button.  How can I do this?
0
tonylis
Asked:
tonylis
  • 8
  • 4
  • 2
1 Solution
 
wallstreetxCommented:
When you create a feedback form click on "submit" button in FP and click on HTML tab. Replace this code "<input type="submit" value="Submit Comments">" which will be highlighted, by below code. PS: /images/xyz.gif should have your gif.

Example:

<INPUT TYPE="IMAGE" SRC="/images/xyz.gif" WIDTH="69" HEIGHT="18" BORDER="0" NAME="Submit">
0
 
wallstreetxCommented:
When you create a feedback form click on "submit" button in FP and click on HTML tab. Replace this code "<input type="submit" value="Submit Comments">" which will be highlighted, by below code. PS: /images/xyz.gif should have your gif.

Example:

<INPUT TYPE="IMAGE" SRC="/images/xyz.gif" WIDTH="69" HEIGHT="18" BORDER="0" NAME="Submit">
0
 
astyanaxCommented:
Do I understand this right that you want to have the option to choose to which user the form email should be sent?

Then forget about the fp form handler. You can install a forn script like Matt Wrights formmail.cgi from http://www.worldwidemart.com/scripts and instead of adding the line to the html of your form for the normal recipient like

<INPUT TYPE=hidden NAME=recipient VALUE="cyborg@spacecop.de">

you would add a dropdown selection box with the following html:

<select size="1" name="recipient">
    <option value="tom@domain.com">Tom</option>
    <option value="andrea@domain.com">Andrea</option>
  </select>


Add  options for any desired recipient.
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
tonylisAuthor Commented:
astyanax's answer looks like the best to me.  However, what about this line of code generated by the form

<!--webbot bot="SaveResults" startspan S-Email-Format="TEXT/PRE"
  S-Email-Address="tonyl@lisantifoods.com" B-Email-Label-Fields="TRUE"
  S-Date-Format="%d %b %Y" S-Time-Format="%H:%M:%S"
  S-Builtin-Fields="REMOTE_NAME REMOTE_USER HTTP_USER_AGENT Date Time" --><strong>[FrontPage Save Results Component]</strong><!--webbot
  bot="SaveResults" endspan -->

I assume that I have to change this as well or nothing will work? Im new with frontpage so excuse my ignorance.  Im trying to take on bringing my family's business online and out of the 70's.

0
 
tonylisAuthor Commented:
astyanax's answer looks like the best to me.  However, what about this line of code generated by the form

<!--webbot bot="SaveResults" startspan S-Email-Format="TEXT/PRE"
  S-Email-Address="tonyl@lisantifoods.com" B-Email-Label-Fields="TRUE"
  S-Date-Format="%d %b %Y" S-Time-Format="%H:%M:%S"
  S-Builtin-Fields="REMOTE_NAME REMOTE_USER HTTP_USER_AGENT Date Time" --><strong>[FrontPage Save Results Component]</strong><!--webbot
  bot="SaveResults" endspan -->

I assume that I have to change this as well or nothing will work? Im new with frontpage so excuse my ignorance.  Im trying to take on bringing my family's business online and out of the 70's.

0
 
astyanaxCommented:
Hi tonylis,

I am quite sure that this will not work with the frontpage web bot. Most likely your changes (with the option box) will be ignored.

Your email address listed there is not in a hidden field that will be sent to a form processing script to tell the script what to do.

I design my forms with frontpage but send them using a cgi script by choosing in the frontpage form properties other-recipient + options action: path_to_form_script

Best for you is to install a cgi script like the one mentioned above if this is allowed on your server and you feel like you can master this. If not you can use one of the scripts that are installe at my site. Tell me and I will send you the instructions or alter your form (together with you) so it hat the options you desire and is then sent via the script on my server.

This will be no problem, just tell me if you are interested.

0
 
astyanaxCommented:
If you choose to send your frontpage form with an external script the lines that you show in your comment will be automatically changed.
0
 
astyanaxCommented:
Oh, I have found your form - it is perfect. We just have to replace the <!--webbot bot="SaveResults............-thing by a new line, that's it.
0
 
astyanaxCommented:
Oh, I have found your form - it is perfect. We just have to replace the <!--webbot bot="SaveResults............-thing by a new line, that's it.
0
 
tonylisAuthor Commented:
Umm Ok what do I replace the line with?

try looking fdr yourself www.lisantifoods.com
0
 
astyanaxCommented:
OK Tony here we go:

Best way to change your form is to click on the html-view and replace the following lines of your form.

1. REPLACE

<form action="../_vti_bin/shtml.exe/contacts/contacts.htm" method="POST" onSubmit="" webbot-action="--WEBBOT-SELF--">
  <!--webbot bot="SaveResults" S-Email-Address="tonyl@lisantifoods.com"
  S-Email-Format="TEXT/PRE" startspan -->

by the line:

<form action="http://scna.com/cgi-bin/lisantiform.cgi" method="POST" onSubmit="">

2. REPLACE

<input type="submit" value="Submit" name="recipient"> ("recipient" would be double)

by the line:

<input type="submit" value="Submit" name="Submit">

Thats all there is about. Add an email address for "Sales Manager" Publish your form and it should be able to send your form input as email.

There is a working copy of your form that you can see (or copy) at http://www.scna.com/contacts.htm

Best wishes, Astyanax

0
 
astyanaxCommented:
Of course you can use this script with the above form action address for other forms too.

Just be sure to have specified a recipient for your form email in a fashion like

<input type="hidden" name="recipient" value="youremail@yourdomain.com">

inside your <form> tags.

Tony, you already have specified the email addressen with your option box. This is just an instruction for your future forms.
0
 
tonylisAuthor Commented:
Ok I think that would work, but the cgi script looks like it has to go to Im assuming your server to execute? I have a cgi script here, and I'd rather use my own on my own server.

 Unless its possible to get the script from you?
0
 
astyanaxCommented:
Sure,

just be sure that you have an open cgi-bin directory with your server where you can install and execute cgi scripts.
That might not be possible when you are using a server account with fp extensions. In this case there might be some scripts pre-installed on your account for you to use.

Ask your server hosting company (verio) about details. You should be able to copy the script with an ftp program like ws-ftp to the server then change permissions for the script to be able to execute.

I will sent the script to your email address.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 8
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now