?
Solved

Forms and email

Posted on 2000-04-09
14
Medium Priority
?
250 Views
Last Modified: 2013-12-24
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
Comment
Question by:tonylis
  • 8
  • 4
  • 2
14 Comments
 

Expert Comment

by:wallstreetx
ID: 2698962
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
 

Expert Comment

by:wallstreetx
ID: 2698963
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
 
LVL 1

Expert Comment

by:astyanax
ID: 2702129
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
Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

 

Author Comment

by:tonylis
ID: 2702567
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
 

Author Comment

by:tonylis
ID: 2702584
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
 
LVL 1

Expert Comment

by:astyanax
ID: 2702967
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
 
LVL 1

Expert Comment

by:astyanax
ID: 2702974
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
 
LVL 1

Expert Comment

by:astyanax
ID: 2702988
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
 
LVL 1

Expert Comment

by:astyanax
ID: 2702998
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
 

Author Comment

by:tonylis
ID: 2706104
Umm Ok what do I replace the line with?

try looking fdr yourself www.lisantifoods.com
0
 
LVL 1

Expert Comment

by:astyanax
ID: 2708221
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
 
LVL 1

Accepted Solution

by:
astyanax earned 400 total points
ID: 2708269
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
 

Author Comment

by:tonylis
ID: 2710159
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
 
LVL 1

Expert Comment

by:astyanax
ID: 2710677
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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
Suggested Courses
Course of the Month17 days, 7 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question