Guest User

Untitled

a guest
Aug 5th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. <?php
  2. # start the session, and clear any existing values
  3. session_start();
  4. $_SESSION['js_count'] = 0;
  5. ?>
  6. <html>
  7. <head>
  8. <SCRIPT type="text/javascript">
  9. function attach_file( p_script_url ) {
  10. // create new script element, set its relative URL, and load it
  11. script = document.createElement( 'script' );
  12. script.src = p_script_url;
  13. document.getElementsByTagName( 'head' )[0].appendChild( script );
  14. }
  15. </SCRIPT>
  16. </head>
  17. <body>
  18. <form action="checkavailability.php" method="post">
  19. Username: <input type="text" name="username" />
  20. <input type="button" id="check" value="Checar" onClick="javascript:attach_file( 'checkavailability.php' )" />
  21. <br>
  22. Password: <input type="password" name="password" />
  23. <br>
  24. Nome: <input type="text" name="name" />
  25. <br>
  26. Sobrenome: <input type="text" name="sirname" />
  27. <br>
  28. Email: <input type="text" name="email" />
  29. <br>
  30. Sexo: <select name="gender"><option>Masculino</option><option>Feminino</option></select>
  31. <br>
  32. Data de nascimento:
  33. <select name="birthday">
  34. <?php require_once('fillbirthday.php'); ?>
  35. </select>
  36. <select name="birthmonth">
  37. <?php require_once('fillbirthmonth.php'); ?>
  38. </select>
  39. <select name="birthyear">
  40. <?php require_once('fillbirthyear.php'); ?>
  41. </select>
  42. <input type="submit" value="Adicionar" />
  43. </form>
  44.  
  45.  
  46. <img id="myIMG" style="display: lock;" src="available.jpg" width="70" height="20" />
  47.  
  48.  
  49.  
  50. <a href="javascript:attach_file( 'checkavailability.php' )">What time is it?</a>
  51. <span id="dynamic_span" />
  52. <?php
  53. //echo "<script>document.getElementById('myIMG').style.visibility = 'hidden'</script>";
  54. //echo "<script>alert('teste')</script>";
  55. ?>
  56.  
  57. </body>
  58. </html>
Add Comment
Please, Sign In to add comment