I’m trying to make a inlog
After the inlog I like a form to popup.
Problem is that the browser after submit makes a reload.
- How to stop the reload.
- Or …………………
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script type="text/javascript">
function weg(){
document.getElementById('ff').style.display='none'; // Hide state dropdown}
document.getElementById('fff').style.display='none'; // Hide state dropdown
}
function inlog()
{document.getElementById('fff').style.display="block";
document.getElementById("tekstv").innerHTML="<hr>";
//document.getElementById('ff').style.display="block"; // show state dropdown
}
function go(){
var naam = document.form1.naam.value;
if (naam=="jan"){alert(naam);
document.getElementById('ff').style.display="block";}
}
</script
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Naamloos document</title>
</head>
<body onload="weg()">
<img src="../surf you logo/icons/add.png" width="200" height="200" onclick="inlog()"/><img src="../surf you logo/icons/add.png" width="200" height="200" onclick="weg()"/>
<p id="tekstv"> </p>
<form name="form1" id="fff">
<input name="sub" type="submit" class="tekst" id="sub" onclick="go()" value="sub" methode="post"/>
<input type="text" class="tekst" id="naam" size="6" />
</form>
<form enctype="multipart/form-data" action="<?php echo $PHP_SELF;?>" method="POST" id="ff" >
<p>
<input name="kop" type="text" value="koptekst" size="70" maxlength="70"/>
<br />
bericht:
<p>
<textarea name="bericht" cols="40" rows="20" ></textarea>
<p>
<input type="hidden" name="MAX_FILE_SIZE" value="2000000"/>
kies een foto:
<h5>
niet groter dan 1 mb.
<input name="foto" type="file"id="foto" />
<p>
<input name="onder" type="text" value="tekst bij de foto" size="70" maxlength="70"/>
<p>
<input name="link" type="text" value="link" size="70" maxlength="70"/>
<p>
<input type="radio" name="into" value="blog" />
blog
<input type="radio" name="into" value="work" /> work
<input type="radio" name="into" value="lab" /> lab
<input type="radio" name="into" value="photos" /> photo
<input type="radio" name="into" value="education" /> education
<input type="radio" name="into" value="contact" /> contact
<input type="radio" name="into" value="home" /> home
<input type="radio" name="into" value="onderwijs" /> onderwijs
<p>
<input type="submit" value="Submit" />
</form>
</body>
</html>
thanks dp