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

Sending form results to the sender

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
Capion
Asked:
Capion
  • 37
  • 7
  • 2
  • +1
1 Solution
 
ClassyLinksCommented:
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
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
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
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
ClassyLinksCommented:
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
 
CapionAuthor Commented:
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
 
CapionAuthor Commented:
If I could increace the points.. I would !
0
 
ClassyLinksCommented:
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
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
ClassyLinksCommented:
or try this....but I still think I will need to work on it..something fishy here

webmaster@capion.dk; <%request.form("Email")%>
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
I wil give it a try.
"CU" !
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
yes.. (there s something wrong with the database collecting this question)
0
 
CapionAuthor Commented:
0
 
ClassyLinksCommented:
let me know how you end up...I'll check back in the morning.

ciao.
0
 
Asta CuCommented:
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
 
Asta CuCommented:
Also, if you are pasting code directly, sometimes this error results from too large a file; try segmenting it, if plausible.
0
 
ClassyLinksCommented:
did you have any luck Capion??
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
..it did it again... twice
I was only writing a couple of lines
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
*aarrrrgh*
0
 
CapionAuthor Commented:
it did not work
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
MoondancerCommented:
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
 
CapionAuthor Commented:
Moondancer :> That correct. A simple text like this, also can cause the trouble.
0
 
ClassyLinksCommented:
Glad you got it to work.

Which one was the key??
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
0
 
CapionAuthor Commented:
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
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

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

  • 37
  • 7
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now