Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- # start the session, and clear any existing values
- session_start();
- $_SESSION['js_count'] = 0;
- ?>
- <html>
- <head>
- <SCRIPT type="text/javascript">
- function attach_file( p_script_url ) {
- // create new script element, set its relative URL, and load it
- script = document.createElement( 'script' );
- script.src = p_script_url;
- document.getElementsByTagName( 'head' )[0].appendChild( script );
- }
- </SCRIPT>
- </head>
- <body>
- <form action="checkavailability.php" method="post">
- Username: <input type="text" name="username" />
- <input type="button" id="check" value="Checar" onClick="javascript:attach_file( 'checkavailability.php' )" />
- <br>
- Password: <input type="password" name="password" />
- <br>
- Nome: <input type="text" name="name" />
- <br>
- Sobrenome: <input type="text" name="sirname" />
- <br>
- Email: <input type="text" name="email" />
- <br>
- Sexo: <select name="gender"><option>Masculino</option><option>Feminino</option></select>
- <br>
- Data de nascimento:
- <select name="birthday">
- <?php require_once('fillbirthday.php'); ?>
- </select>
- <select name="birthmonth">
- <?php require_once('fillbirthmonth.php'); ?>
- </select>
- <select name="birthyear">
- <?php require_once('fillbirthyear.php'); ?>
- </select>
- <input type="submit" value="Adicionar" />
- </form>
- <img id="myIMG" style="display: lock;" src="available.jpg" width="70" height="20" />
- <a href="javascript:attach_file( 'checkavailability.php' )">What time is it?</a>
- <span id="dynamic_span" />
- <?php
- //echo "<script>document.getElementById('myIMG').style.visibility = 'hidden'</script>";
- //echo "<script>alert('teste')</script>";
- ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment