Solved

Sending form results to the sender

Posted on 2001-06-13
47
258 Views
Last Modified: 2013-12-24
How do I make a form send results, not only to me, but also to the "filler" or sender him/her-self, automatically ?
I have a great and working form, with a super result-page, formatted just like I want it.. but I cannot make Frontpage understand, that there should be a "cc" or ?? well one receiver more.
Can You help me ? My webhotel supports, almost everything, but PHP..
0
Comment
Question by:Capion
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 37
  • 7
  • 2
  • +1
47 Comments
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6187630
Are you using the FP results component to send your form or another scripting language?

We can do what you request in ASP....do get a cc to work with the FP form controller might be a little mroe difficult.
0
 
LVL 1

Author Comment

by:Capion
ID: 6188243
0
 
LVL 1

Author Comment

by:Capion
ID: 6188252
I am using FK2K s built in functions, but it is OK with me if I can make it work in ASP. What is your idea ?
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6188639
Well, if we use asp to process the form and then CDONTS to send the email, doing the "cc" should be no problem.

Post your code here and we can make it work ( but first make sure that your server supports CDONTS).

8-)
0
 
LVL 1

Author Comment

by:Capion
ID: 6188716
Yep.. I cannot use cdonts :-(

here?s the code, in full length, most of it is in danish, but as usual the code is still in english.

the original is placed on : http://www.capion.dk/qbestilling.htm

Is the scriptpart boring.. search downwards for "Form action"

<HTML><HEAD><TITLE>Bestilling</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="Microsoft FrontPage 4.0" name=GENERATOR></HEAD>
<BODY bgcolor="#8C94B5">
<H1>Bestillings/Aftaleformular:</H1>
<HR>

<P>

<SCRIPT language=JavaScript><!--
<!-- hide contents from old browsers

      var belob, Ialt;

function boxe()
      {
      belob = 0;
      if (document.FrontPage_Form1.Vare1.checked) {      belob = belob + 300;      }
            if (document.FrontPage_Form1.Vare1F.checked) {      belob = belob + 1500;      }
      if (document.FrontPage_Form1.Vare2.checked) {      belob = belob + 330;      }
            if (document.FrontPage_Form1.Vare2F.checked) {      belob = belob + 1530;      }
      if (document.FrontPage_Form1.Vare3.checked) {      belob = belob + 375;            }
            if (document.FrontPage_Form1.Vare3F.checked) {      belob = belob + 1575;            }
      if (document.FrontPage_Form1.Vare4.checked) {      belob = belob + 390;            }
            if (document.FrontPage_Form1.Vare4F.checked) {      belob = belob + 1590;            }
      if (document.FrontPage_Form1.Vare5.checked) {      belob = belob + 600;      }
            if (document.FrontPage_Form1.Vare5F.checked) {      belob = belob + 1800;      }
      if (document.FrontPage_Form1.Vare6.checked) {      belob = belob + 600;      }
            if (document.FrontPage_Form1.Vare6F.checked) {      belob = belob + 1800;      }
      if (document.FrontPage_Form1.Vare7.checked) {      belob = belob + 750;            }
            if (document.FrontPage_Form1.Vare7F.checked) {      belob = belob + 1950;            }
      if (document.FrontPage_Form1.Vare8.checked) {      belob = belob + 900;            }            
          if (document.FrontPage_Form1.Vare8F.checked) {      belob = belob + 2100;            }            
  if (document.FrontPage_Form1.Vare9.checked) {      belob = belob + 150;            }
      if (document.FrontPage_Form1.Vare10.checked) {belob = belob + 225;            }
      if (document.FrontPage_Form1.Vare11.checked) {      belob = belob + 75;            }
      if (document.FrontPage_Form1.Vare12.checked) {belob = belob + 300;            }
      if (document.FrontPage_Form1.Vare13.checked) {belob = belob + 300;            }
      if (document.FrontPage_Form1.Vare14.checked) {belob = belob + 900;            }
      belob = decimaler(belob);
      Ialt = parseFloat(belob)
      Ialt = decimaler(Ialt);
      document.FrontPage_Form1.SlutBelob.value = "Kr." + Ialt;
      }
function decimaler (amount)
{
      amount = parseInt(amount * 100);
      amount = parseFloat(amount/100);
      if (((amount) == Math.floor(amount)) && ((amount - Math.floor (amount)) == 0))
      {
            amount = amount + ".00"
            return amount;
      }
      if ( ((amount * 10) - Math.floor(amount * 10)) == 0)
      {
            amount = amount + "0";
            return amount;
      }
      if ( ((amount * 100) - Math.floor(amount * 100)) == 0)
      {
            amount = amount;
            return amount;
      }
      return amount;       
}
// -->
<!-- Hide
red_square= new Image(70,15)
red_square.src='roed.gif'
blue_square= new Image(70,15)
blue_square.src='blue.gif'
green_square= new Image(70,15)
green_square.src='groen.gif'
yellow_square= new Image(70,15)
yellow_square.src='gul.gif'
lilla_square= new Image(70,15)
lilla_square.src='lilla.gif'
bordeaux_square= new Image(70,15)
bordeaux_square.src='bordeaux.gif'
lysgroen_square= new Image(70,15)
lysgroen_square.src='lysgroen.gif'
lysblaa_square= new Image(70,15)
lysblaa_square.src='lysblaa.gif'

function ChangeIt(){
      if (document.FrontPage_Form1.Box.selectedIndex==0){
            document.FrontPage_Form1.square.src=yellow_square.src
            return}
      if (document.FrontPage_Form1.Box.selectedIndex==1){
            document.FrontPage_Form1.square.src=red_square.src
            return}
      if (document.FrontPage_Form1.Box.selectedIndex==2){
            document.FrontPage_Form1.square.src=blue_square.src
            return}
      if (document.FrontPage_Form1.Box.selectedIndex==3){
            document.FrontPage_Form1.square.src=green_square.src
            return}
      if (document.FrontPage_Form1.Box.selectedIndex==4){
            document.FrontPage_Form1.square.src=lilla_square.src
            return}
      if (document.FrontPage_Form1.Box.selectedIndex==5){
            document.FrontPage_Form1.square.src=bordeaux_square.src
            return}
      if (document.FrontPage_Form1.Box.selectedIndex==6){
            document.FrontPage_Form1.square.src=lysblaa_square.src
            return}
      if (document.FrontPage_Form1.Box.selectedIndex==7){
            document.FrontPage_Form1.square.src=lysgroen_square.src
            return}
}

// end hide -->
</SCRIPT>
</P>

Here the form starts :

<FORM action=--WEBBOT-SELF-- method=POST onsubmit="return FrontPage_Form1_Validator(this)" name=FrontPage_Form1>
<!--webbot bot="SaveResults" startspan U-File="ordreliste.htm"
S-Format="HTML/BR" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE"
S-Email-Format="HTML/BR" S-Email-Address="webmaster@capion.dk"
B-Email-Label-Fields="TRUE" B-Email-ReplyTo-From-Field="TRUE"
S-Email-ReplyTo="Email" B-Email-Subject-From-Field="FALSE"
S-Email-Subject="Bestilling"
S-Builtin-Fields="REMOTE_NAME REMOTE_USER HTTP_USER_AGENT"
U-Confirmation-Url="ordrebekr?ftelse.htm" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot
bot="SaveResults" endspan -->
<p>Alle priser er excl. moms !<br>
        Alle priser er baseret p? l?bende abonnement, <b> abonnementsperioden er
3 m?neder</b>.<br>
        Abonnementet kan opsiges 1 m?ned til udgangen af
        abonnementsperioden.<br>
Abonnement kr?ver tilmelding til Annonc?rKlubben &quot;Quicks&quot;. <a href="vilk?r_for_banner.htm" target="_blank">Se
venligst Vilk?r vedr. dette.</a> (?bner i nyt vindue)<br>
Tilmelding til Annonc?rKlubben &quot;Quicks&quot; er gratis.</p>
<TABLE width=471 border=0>
  <TBODY>
  <TR>
    <TD width="463">Banner / Logo :<BR><INPUT onclick=boxe() type=checkbox
      value="88 x 31 (Kr.300,-)" name=Vare1> 88 x 31 (Kr.300,-)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <INPUT onclick=boxe() type=checkbox
      value="88x31 Forside (kr. 500,-)" name=Vare1F>&nbsp; 88 x 31 Forside (Kr.1.500,-)
      <BR><INPUT onclick=boxe() type=checkbox
      value="120 x 60 (Kr.330,-)" name=Vare2> 120 x 60 (Kr.330,-)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <INPUT onclick=boxe() type=checkbox
      value="120 x 60 Forside (Kr.1.530,-)" name=Vare2F> 120 x 60 Forside (Kr.1.530,-) <BR><INPUT onclick=boxe() type=checkbox
      value="120 x 90 (Kr.375,-)" name=Vare3> 120 x 90 (Kr.375,-)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <INPUT onclick=boxe() type=checkbox
      value="120 x 90 Forside (Kr.1.575,-)" name=Vare3F> 120 x 90 Forside (Kr.1.575,-) <BR><INPUT onclick=boxe() type=checkbox
      value="125 x 125 (Kr.390,-)" name=Vare4> 125 x 125 (Kr.390,-)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <INPUT onclick=boxe() type=checkbox
      value="125 x 125 Forside (Kr.1.590,-)" name=Vare4F> 125 x 125 Forside (Kr.1.590,-) <BR><INPUT onclick=boxe() type=checkbox
      value="120 x 240 (Kr.600,-)" name=Vare5> 120 x 240 (Kr.600,-)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <INPUT onclick=boxe() type=checkbox
      value="120 x 240 Forside (Kr.1.800,-)" name=Vare5F> 120 x 240 Forside (Kr.1.800,-)&nbsp; <BR><INPUT onclick=boxe() type=checkbox
      value="234 x 60 (Kr.600,-)" name=Vare6> 234 x 60 (Kr.600,-)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <INPUT onclick=boxe() type=checkbox
      value="234 x 60 Forside (Kr.1.800,-)" name=Vare6F> 234 x 60 Forside (Kr.1.800,-) <BR><INPUT onclick=boxe() type=checkbox
      value="392 x 72 (Kr.750,-)" name=Vare7> 392 x 72 (Kr.750,-)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <INPUT onclick=boxe() type=checkbox
      value="392 x 72 Forside (Kr.1.950,-)" name=Vare7F> 392 x 72 Forside (Kr.1.950,-)&nbsp; <BR><INPUT onclick=boxe() type=checkbox
      value="468 x 60 (Kr.900,-)" name=Vare8> 468 x 60 (Kr.900,-)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <INPUT onclick=boxe() type=checkbox
      value="468 x 60 Forside (Kr.2.100,-)" name=Vare8F> 468 x 60 Forside (Kr.2.100,-)<p>Tekst / Lysavis : <BR><INPUT onclick=boxe() type=checkbox
      value="Firmanavn fed (Kr.150,-)" name=Vare9> Firmanavn <b>
        fed</b> (Kr.150,-) <BR><INPUT onclick=boxe() type=checkbox
      value="Firmanavn fed, adresse og tlf.nr (Kr.225,-)" name=Vare10> Firmanavn
      <b>fed</b>,
        adresse og tlf.nr (Kr.225,-)<br>
      <INPUT onclick=boxe() type=checkbox
      value="Optagelse i farvet box (Kr.75,-)" name=Vare11> Optagelse
        i farvet box (+ Kr.75,-)&nbsp;&nbsp;&nbsp;&nbsp;
<IMG NAME='square' HEIGHT=15 WIDTH=70 SRC=gul.gif> <SELECT NAME='Box' SIZE='1' onChange='ChangeIt()'>
<OPTION VALUE='Gul' NAME='yel' SELECTED>Gul
<OPTION VALUE='R?d'    NAME='red'>R?d
<OPTION VALUE='Bl?'   NAME='blu'>Bl?
<OPTION VALUE='Gr?n'  NAME='gre'>Gr?n
        <option value="Lilla">Lilla</option>
        <option value="Bordeaux">Bordeaux</option>
        <option value="LysBl?">LysBl?</option>
        <option value="LysGr?n">LysGr?n</option>
      </SELECT>
      <BR>
      <INPUT onclick=boxe() type=checkbox
      value="Tekstlinjer max 80 anslag (Kr.300,-)" name=Vare12>  Tekstlinjer max 80
        anslag (+ Kr.300,-)<BR><INPUT onclick=boxe() type=checkbox
      value="Som Lysavis (+ Kr.100,-)" name=Vare13> Som Lysavis (+ Kr.300,-) <BR><INPUT
      onclick=boxe() type=checkbox value="Som Forside Lysavis (+ Kr.900,-)" name=Vare14>
      Som Forside Lysavis (+ Kr.900,-)<br>
      <br>
      Hvis De har valgt Tekstlinier, bedes De indtaste Deres ?nskede tekst her
      :</p>
      <p><!--webbot bot="Validation" B-Value-Required="TRUE"
      I-Maximum-Length="80" --><textarea rows="4" name="Tekstlinier" cols="20"></textarea></p>
      <p>Total<BR><INPUT size=12 value=Kr.0 name=SlutBelob></p>
      <p>Firma: <INPUT size=25 name=Firma><br>
      Fornavn: <INPUT size=15 name=Fornavn>Efternavn: <INPUT size=15 name=Efternavn><br>
      Adresse: <INPUT size=25 name=Adresse><br>
      Postnr.:&nbsp;&nbsp; <!--webbot bot="Validation"
      S-Display-Name="Postnummer" B-Value-Required="TRUE" I-Minimum-Length="4"
      I-Maximum-Length="4" --> <INPUT maxLength=4 name=Postnummer size="4">  By:
      <!--webbot bot="Validation" B-Value-Required="TRUE" --> <INPUT name=By size="20"><br>
      Telefon:&nbsp; <INPUT size=8 name=Telefon> Fax: <INPUT size=8 name=Fax><br>
      Email:&nbsp;&nbsp;&nbsp;&nbsp; <!--webbot bot="Validation"
      S-Display-Name="email" B-Value-Required="TRUE" I-Maximum-Length="20" --><INPUT maxLength=20 size=25 name=Email><br>
      <br>
      Har De en kommentar / Besked :<br>
      <br>
      <TEXTAREA name=Besked rows=3 cols=20></TEXTAREA></p>
      Indtast venligst JA i dette felt : <!--webbot bot="Validation"
      S-Display-Name="VilkaarAccept" S-Data-Type="String"
      S-Allow-Other-Chars="JA" B-Value-Required="TRUE" I-Minimum-Length="2"
      I-Maximum-Length="2" S-Validation-Constraint="Equal to"
      S-Validation-Value="JA" --><input type="text" name="VilkaarAccept" size="2" maxlength="2"><br>
      Jeg har l?st, forst?et og accepterer g?ldende vilk?r
      <DIV align=center>
      <CENTER>
      <P><INPUT type=submit value="Send Ordre"><INPUT type=reset value="Reset Ordre"></P></CENTER></DIV>
 </TD></TR>
  <!--/table--></TBODY></TABLE></FORM></BODY></HTML>
0
 
LVL 1

Author Comment

by:Capion
ID: 6188736
If I could increace the points.. I would !
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6188802
Don't worry about the points  8-)

This could be tricky.  You can't use CDONTS, but you can use ASP, right??

Can I work on an ASP solution and get back to you tomorrow??  My work day is done here, and I'd like to get some sun while it is still shining.

In the meantime....try putting this in the Email results field of the Form Properties--> Options:

webmaster@capion.dk; document.FrontPage_Form1.Email

My guess is it won't work this way...but it can't hurt to try.  8-)
0
 
LVL 1

Author Comment

by:Capion
ID: 6188812
0
 
LVL 1

Author Comment

by:Capion
ID: 6188820
0
 
LVL 7

Accepted Solution

by:
ClassyLinks earned 300 total points
ID: 6188836
or try this....but I still think I will need to work on it..something fishy here

webmaster@capion.dk; <%request.form("Email")%>
0
 
LVL 1

Author Comment

by:Capion
ID: 6188828
0
 
LVL 1

Author Comment

by:Capion
ID: 6188829
0
 
LVL 1

Author Comment

by:Capion
ID: 6188832
0
 
LVL 1

Author Comment

by:Capion
ID: 6188847
0
 
LVL 1

Author Comment

by:Capion
ID: 6188850
I wil give it a try.
"CU" !
0
 
LVL 1

Author Comment

by:Capion
ID: 6188851
0
 
LVL 1

Author Comment

by:Capion
ID: 6188856
0
 
LVL 1

Author Comment

by:Capion
ID: 6188861
0
 
LVL 1

Author Comment

by:Capion
ID: 6188869
0
 
LVL 1

Author Comment

by:Capion
ID: 6188873
yes.. (there s something wrong with the database collecting this question)
0
 
LVL 1

Author Comment

by:Capion
ID: 6188882
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6188908
let me know how you end up...I'll check back in the morning.

ciao.
0
 
LVL 27

Expert Comment

by:Asta Cu
ID: 6188967
Are you attempting to post code directly or perhaps using cut/paste from Word or another formatted interface?  That or a blank in the first field at times creates this "no text" problem.  

Asta
0
 
LVL 27

Expert Comment

by:Asta Cu
ID: 6188969
Also, if you are pasting code directly, sometimes this error results from too large a file; try segmenting it, if plausible.
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6190689
did you have any luck Capion??
0
 
LVL 1

Author Comment

by:Capion
ID: 6190996
0
 
LVL 1

Author Comment

by:Capion
ID: 6191010
0
 
LVL 1

Author Comment

by:Capion
ID: 6191013
..it did it again... twice
I was only writing a couple of lines
0
 
LVL 1

Author Comment

by:Capion
ID: 6191021
0
 
LVL 1

Author Comment

by:Capion
ID: 6191027
0
 
LVL 1

Author Comment

by:Capion
ID: 6191041
0
 
LVL 1

Author Comment

by:Capion
ID: 6191045
0
 
LVL 1

Author Comment

by:Capion
ID: 6191050
0
 
LVL 1

Author Comment

by:Capion
ID: 6191052
*aarrrrgh*
0
 
LVL 1

Author Comment

by:Capion
ID: 6191055
it did not work
0
 
LVL 1

Author Comment

by:Capion
ID: 6191063
0
 
LVL 1

Author Comment

by:Capion
ID: 6191064
0
 
LVL 1

Author Comment

by:Capion
ID: 6191068
0
 
LVL 1

Author Comment

by:Capion
ID: 6191084
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6191171
I've alerted Engineering of this issue again, and will research status and advise.  

You're not attempting to paste code or formatted text directly, correct, Capion?  Nor is there a blank in the first field of the comment section?

Thank you for your patience.

Moondancer
Community Support Moderator @ Experts Exchange
0
 
LVL 1

Author Comment

by:Capion
ID: 6191789
Moondancer :> That correct. A simple text like this, also can cause the trouble.
0
 
LVL 7

Expert Comment

by:ClassyLinks
ID: 6192409
Glad you got it to work.

Which one was the key??
0
 
LVL 1

Author Comment

by:Capion
ID: 6192656
0
 
LVL 1

Author Comment

by:Capion
ID: 6192658
0
 
LVL 1

Author Comment

by:Capion
ID: 6192662
0
 
LVL 1

Author Comment

by:Capion
ID: 6192665
0
 
LVL 1

Author Comment

by:Capion
ID: 6192668
I didnt make it work. But I got tired of the "no text" message..after writing a lot. The email option in FP didnt work, and i havnt tried the asp-idea.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to Import and export files in WordPress. 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 : Click on Too…

730 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