You are invited to Log in or Register a free Frihost Account!


Does anyone knows were there is a CGI-script so I can send from a form?

More explain:
I have a form with some stuff.
If someone push the send button, some thing sut be send to an emailadress.

On another webserver they had a cgi-script so you only needed to give your email .

Does anyone know what to do?
put your form here, i'll help with the script.
Here is the whole page:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<!-- DW6 -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Sportraad KVRI</title>
<!-- TemplateEndEditable --><link rel="stylesheet" href="emx_nav_left.css" type="text/css">
<script type="text/javascript">
var time = 3000;
var numofitems = 8;

//menu constructor
function menu(allitems,thisitem,startstate){
  callname= "gl"+thisitem;
  this.numberofmenuitems = 8;
  this.caller = document.getElementById(callname);
  this.thediv = document.getElementById(divname); = startstate;

//menu methods
function ehandler(event,theobj){
  for (var i=1; i<= theobj.numberofmenuitems; i++){
    var shutdiv =eval( "menuitem"+i+".thediv");"hidden";
function closesubnav(event){
  if ((event.clientY <48)||(event.clientY > 107)){
    for (var i=1; i<= numofitems; i++){
      var shutdiv =eval('menuitem'+i+'.thediv');'hidden';
// -->
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<script language="javascript">
<!-- initialiseren:
var ant = new Array; <!-- var antwoord
var klr = new Array; <!-- var klaar
var jant = new Array; <!-- juist antwoord
var score = 0; <!-- om score bij te houden
<!-- juiste antwoorden
ant[1] = "b"; <!-- vraag 1: b
ant[2] = "a";<!-- vraag 2: a
ant[3] = "c";<!-- vraag 3: c

var vrg = new Array;
var antw = new Array;
<!-- functie voor ophalen antwoord per vraag
function Opl(vrg, antw) {

<!-- beoordelen antwoorden
function Score() {
var anttk = "Hoe deed je het?\n\n";
for(i=1;i<=3;i++){<!-- nummer vraag bepalen
   anttk=anttk+"Vraag: "+i+"\n";<!-- nummer vraag laten zien
   if(ant[i]!=jant[i]){<!-- antwoord niet juist
      anttk=anttk+"Jou antwoord is niet juist!\n";<!-- juiste laten zien
   else{<!-- als correct antwoord
   score++;<!-- score +1 doen
anttk=anttk+"\nJouw totale score is: "+score+"/"+i+"\n";<!-- totale score laten zien

alert(anttk);<!-- tekst laten zien
<body onmousemove="closesubnav(event);">
<div class="skipLinks">skip to: <a href="#content">page content</a> | <a href="pageNav">links on this page</a> | <a href="#globalNav">site navigation</a> | <a href="#siteInfo">footer (site information)</a> </div>
<div id="masthead">
  <h1 id="siteName">Sportraad KVRI </h1>
  <div id="globalNav">
    <img alt="" src="gblnav_left.gif" height="32" width="4" id="gnl"> <img alt="" src="glbnav_right.gif" height="32" width="4" id="gnr">
    <div id="globalLink">
      <a href="#" id="gl1" class="glink" onmouseover="ehandler(event,menuitem1);">Home</a>
     <a href="#" id="gl8" class="glink" onmouseover="ehandler(event,menuitem8);">Kwis</a>
     <a href="#" id="gl2" class="glink" onmouseover="ehandler(event,menuitem2);">Foto's</a>
     <a href="#" id="gl3" class="glink" onmouseover="ehandler(event,menuitem3);">Eerste graad </a>
     <a href="#" id="gl4" class="glink" onmouseover="ehandler(event,menuitem4);">Tweede graad </a>
     <a href="#" id="gl5" class="glink" onmouseover="ehandler(event,menuitem5);">Derde graad </a>
     <a href="#" id="gl6" class="glink" onmouseover="ehandler(event,menuitem6);">Sportnieuws</a>
     <a href="#" id="gl7" class="glink" onmouseover="ehandler(event,menuitem7);">Contact</a>
    <!--end globalLinks-->
  <!-- end globalNav -->
  <div id="subglobal1" class="subglobalNav">
    <a href="index.htm#ons">Over ons</a> | <a href="index.htm#acti">Buitenschoolse activiteiten</a>
  <div id="subglobal2" class="subglobalNav">
    <a href="foto.htm#netbal">Netbal</a> | <a href="foto.htm#voet">Voetbal</a> | <a href="foto.htm#bastket">Basketbal</a> | <a href="foto.htm#hockey">Hockey</a> | <a href="foto.htm#trefbal">Trefbal</a>
  <div id="subglobal3" class="subglobalNav">
    <a href="1.htm#net">Netbal (1)</a> | <a href="1.htm#voet">Voetbal (1)</a> | <a href="1.htm#basket">Basketbal (1)</a> | <a href="1.htm#hockey">Hockey (1)</a> | <a href="1.htm#trefbal">Trefbal (1)</a>
  <div id="subglobal4" class="subglobalNav">
    <a href="2.htm#net">Netbal (2)</a> | <a href="2.htm#voet">Voetbal (2)</a> | <a href="2.htm#basket">Basketbal (2)</a> | <a href="2.htm#hockey">Hockey (2)</a> | <a href="2.htm#trefbal">Trefbal (2)</a>
  <div id="subglobal5" class="subglobalNav">
    <a href="3.htm#net">Netbal (3)</a> | <a href="3.htm#voet">Voetbal (3)</a> | <a href="3.htm#basket">Basketbal (3)</a> | <a href="3.htm#hockey">Hockey (3)</a> | <a href="3.htm#tref">Trefbal (3)</a>
  <div id="subglobal6" class="subglobalNav">
    <a href="nieuws.htm#kalender">Kalender</a> | <a href="nieuws.htm#uit">Uitslagen</a> | <a href="nieuws.htm#leerkrachten">Leerkrachten</a> | <a href="nieuws.htm#varia">Varia</a>
  <div id="subglobal7" class="subglobalNav">
    <a href="contact.htm#kvri">Webmaster KVRI</a> | <a href="contact.htm#sportraad">Webmaster Sportraad</a>
  <div id="subglobal8" class="subglobalNav">
    <a href="kwis.htm#meedoen">Meedoen</a> | <a href="kwis.htm#uit">Uitslagen</a> | <a href="kwis.htm#eer">Eregallerij</a> | <a href="kwis.htm#insturen">Vragen indienen</a>
<!-- end masthead -->
<div id="pagecell1">
  <img alt="" src="tl_curve_white.gif" height="6" width="6" id="tl"> <img alt="" src="tr_curve_white.gif" height="6" width="6" id="tr">
  <div id="pageName">
    <h2>Page Name</h2>
  <div id="pageNav">
    <div id="sectionLinks">
      <a href="index.htm">Home</a>
     <a href="kwis.htm">Kwis</a>
     <a href="foto.htm">Foto's</a>
     <a href="1.htm">Eerste Graad</a>
     <a href="2.htm">Tweede Graad</a>
     <a href="3.htm">Derde Graad</a>
     <a href="nieuws.htm">Sportnieuws</a>
     <a href="contact.htm">Contact</a>
      <div id="content">
   <form method="post" action="">
<p align="center">
<i><b>Van wie is deze site?</b></i><br>
<input type="radio" name="vr1"  value="a" onClick="Opl(1, this.value)">a) Niemand<br>
<input type="radio" name="vr1"  value="b" onClick="Opl(1, this.value)">b) Sportraad<br>
<input type="radio" name="vr1"  value="c" onClick="Opl(1, this.value)">c) NAVO<br>
<input type="radio" name="vr1"  value="d" onClick="Opl(1, this.value)">d) Gemeente<br>
<p align="center">
<i><b>Over wat gaat deze site?</b></i><br>
<input type="radio" name="vr2"  value="a" onClick="Opl(2, this.value)">a) Sport<br>
<input type="radio" name="vr2"  value="b" onClick="Opl(2, this.value)">b) Leren<br>
<input type="radio" name="vr2"  value="c" onClick="Opl(2, this.value)">c) Vliegen<br>
<input type="radio" name="vr2"  value="d" onClick="Opl(2, this.value)">d) Mailen<br>
<p align="center">
<input type="radio" name="vr3"  value="a" onClick="Opl(3, this.value)">a) Avond<br>
<input type="radio" name="vr3"  value="b" onClick="Opl(3, this.value)">b) Ochtend<br>
<input type="radio" name="vr3"  value="c" onClick="Opl(3, this.value)">c) Middag<br>
<input type="radio" name="vr3"  value="d" onClick="Opl(3, this.value)">d) Nacht<br>
<p align="center">
<input type="button" onClick="Score()" value="Sumbit"><input type="reset" value="Opnieuw">
   <div id="siteInfo">
    <img src="" width="44" height="22"> <a href="index.htm">About Us</a> | <a href="contact.htm">Contact Us</a> | &copy; 2007
<!--end pagecell1-->
<script type="text/javascript">
      var menuitem1 = new menu(7,1,"hidden");
         var menuitem2 = new menu(7,2,"hidden");
         var menuitem3 = new menu(7,3,"hidden");
         var menuitem4 = new menu(7,4,"hidden");
         var menuitem5 = new menu(7,5,"hidden");
         var menuitem6 = new menu(7,6,"hidden");
         var menuitem7 = new menu(7,7,"hidden");
         var menuitem8 = new menu(7,8,"hidden");
    // -->

There is also a script to calculate your points.
It has some parts is Dutch I'm sorry if you don't understand it, but if you need something translated ask me.

<input type="button" onClick="Score()" value="Sumbit">
Here is the button, if you click it your score (var score) must be send to my email.

Is this enough?

Let me know
Related topics
Web e-mail !
Suggest a Free or Trial classifieds script
CGI from PHP
Convert CGI script to php and MySQL
Python via CGI - A personal triumph
Python via CGI - A personal triumph
cgi script outsite cgi-bin
Python CGI script 500 error
does frihost support cgi scripts or have available ones?
I need some help about CGI-BIN
Executing a Perl CGI script
upload file to server using html form and CGI C
Problem with python script
C CGI Scripts
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

© 2005-2011 Frihost, forums powered by phpBB.