Guest User

Untitled

a guest
Jul 17th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <html>
  2. <head>
  3. </head>
  4.  
  5. <form method="GET" action="try3.php">
  6. <?php
  7.  
  8. $aw=$_GET['text'];
  9. if($_GET['submit']){
  10. $n=$aw;
  11.  
  12. }
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21. ?>
  22. <body style='background-color:<?php echo $n;?>'>
  23.  
  24. <input type="text" name="text" onclick="style.backgroundColor='red';">
  25. <input type="submit" name="submit" value="ok">
  26.  
  27.  
  28.  
  29.  
  30. </body>
  31. </form>
  32.  
  33. </html>
Add Comment
Please, Sign In to add comment