www.webdeveloper.com
Results 1 to 3 of 3

Thread: inlog

  1. #1
    Join Date
    May 2012
    Posts
    2

    inlog

    Im 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

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,654
    Code:
    <!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">
      <head>
     <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>
    
     <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()" alt="add" /><img src="../surf you logo/icons/add.png" width="200" height="200" onclick="weg()"  alt="add" />
     <p id="tekstv"> </p>
    
     <form name="form1" id="fff">
     <input name="sub" type="button" class="tekst" id="sub" onclick="go()" value="sub" />
     <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>

  3. #3
    Join Date
    May 2012
    Posts
    2

    Thumbs up bedankt, thanks

    its works thank you.

    dp

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles