1 Replies - 716 Views - Last Post: 18 May 2011 - 12:01 PM

#1 andrej13  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 35
  • Joined: 09-March 11

Data from my form does not show up in form

Posted 18 May 2011 - 05:15 AM

when I click the send button, my email client is empty :s

greets

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl"> 
<head> 
<link rel="stylesheet"  type="text/css" href="../stijl.css" /> 
<title>MovieStore</title> 
<script type="text/javascript" src="../js/formval.js"></script>
<style type="text/css">
  .info   { color: black; background-color: transparent; font-weight: normal; }
  .warn   { color: rgb(120,0,0); background-color: transparent; font-weight: normal; }
  .error  { color: red; background-color: transparent; font-weight: bold }
</style>
<meta http-equiv="content-type"
content="text/html;charset=UTF-8" /> 
</head> 
<body> 
 <script type="text/javascript">
  function validateonsubmit() {
    var elem;
    var errs=0;
    if (!validateTelnr  (document.forms.demo.telnr, 'inf_telnr', true)) errs += 1;
    if (!validateAge    (document.forms.demo.age,   'inf_age',  false)) errs += 1;
    if (!validateEmail  (document.forms.demo.email, 'inf_email', true)) errs += 1;
    if (!validatePresent(document.forms.demo.from,  'inf_from'))        errs += 1;
	if (!validatePresent (document.forms.demo.from,  'inf_from2'))      errs += 1;
    if (errs>1)  alert('Er zijn formuliervelden die correctie behoeven alvorens te verzenden');
    if (errs==1) alert('Er zijn formuliervelden die correctie behoeven alvorens te verzenden ');
    return (errs==0);
  };
</script>
 <div id="container">
    <div> 
	<img class="header" src="../afbeeldingen/header.png"  alt="Header"/> 
	</div> 
	<ul id="navigatie">
		<li><a href="../index.html">Home</a></li>
		<li><a href="../paginas/aanbod.html">Aanbod</a></li>
		<li><a href="../paginas/contact.html">Contact</a></li>
		<li><a href="../paginas/login.html">Login/Register</a></li>
	</ul>
    <h1>Welkom</h1> 
	
		<form name="input" action="mailto:[email protected]" id="demo" method="get" onsubmit="return validateonsubmit()">
  <table>
    <tr>
      <td><label for="from">Uw naam: </label></td>
      <td><input type="text" name="from" id="from" maxlength="50" onchange="validatePresent(this, 'inf_from');" /></td>
      <td id="inf_from">Vereist</td>
    </tr>
    <tr>
      <td><label for="email">Uw e-mailadres:</label></td>
      <td><input type="text" name="email" id="email" onchange="validateEmail(this, 'inf_email', true);" /></td>
      <td id="inf_email">Vereist</td>
    </tr>
    <tr>
      <td><label for="age">Uw leeftijd (in jaren) :</label></td>
      <td><input type="text" name="age" id="age" onchange="validateAge(this, 'inf_age', false);" /></td>
      <td id="inf_age">&nbsp;</td>
    </tr>
    <tr>
      <td><label for="telnr">Uw telefoonnummer:</label></td>
      <td><input type="text" name="telnr" id="telnr" onchange="validateTelnr(this, 'inf_telnr', true);" /></td>
      <td id="inf_telnr">Vereist. U kunt eventueel streepjes en spaties gebruiken..</td>
    </tr>
	    <tr>
      <td><label for="comment">Bericht: </label></td>
      <td><textarea type="text" name="comment" id="comment" onchange="validatePresent(this, 'inf_from2');" ></textarea></td>
      <td id="inf_from2">Vereist</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="Submit" value="Versturen" /></td>
      <td>&nbsp;</td>
    </tr>
  </table>
  </form>
	<p>
        (* = verplicht veld)<br/><br/>
		Adres: Groenplaats 1, Antwerpen<br/>
		Telefoon: +32 (0) 3 123 45 67<br/><br/>
		<object data="http://maps.google.be/maps?hl=nl&amp;q=google+maps+nationalestraat+5&amp;ie=UTF8&amp;hq=&amp;hnear=Nationalestraat+5,+2000+Antwerpen,+Vlaams+Gewest&amp;gl=be&amp;ll=51.217691,4.400282&amp;spn=0.016128,0.025749&amp;z=14&amp;iwloc=A&amp;output=embed"></object><br /><small><a href="http://maps.google.be/maps?hl=nl&amp;q=google+maps+nationalestraat+5&amp;ie=UTF8&amp;hq=&amp;hnear=Nationalestraat+5,+2000+Antwerpen,+Vlaams+Gewest&amp;gl=be&amp;ll=51.217691,4.400282&amp;spn=0.016128,0.025749&amp;z=14&amp;iwloc=A&amp;source=embed" style="color:#0000FF;text-align:left">Grotere kaart weergeven</a></small>
	</p>
		
	<img class="footer" src="../afbeeldingen/footer.png" alt="Footer"/>  
		</div>
		
 
</body> 
</html>


This post has been edited by andrej13: 18 May 2011 - 05:16 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Data from my form does not show up in form

#2 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon

Reputation: 2965
  • View blog
  • Posts: 11,222
  • Joined: 15-July 08

Re: Data from my form does not show up in form

Posted 18 May 2011 - 12:01 PM

You have another copy of this topic here:
http://www.dreaminco...n-email-client/

Closed.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1