Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <?php
  2.  
  3. if(isset($_POST['submit_text']) && isset($_POST['find_word']) && isset($_POST['replaced_word'])){
  4. $sub_text = $_POST['submit_text'];
  5. $fin_text = $_POST['find_word'];
  6. $rep_text = $_POST['replace_word'];
  7. if(!empty($sub_text )&& !empty($fin_text) && !empty($rep_text)){
  8. echo "Ok.";
  9. }else{
  10. echo "Please fill all fields.";
  11. }
  12. }
  13. ?>
  14. <html>
  15. <head>
  16. </head>
  17. <body>
  18. <form id="myForm" name="myForm" action="index.php" method="post" >
  19. <p>
  20. Submit Text<br/>
  21. <textarea rows="5" cols="40" type="text" id="submit_text" name="submit_text" ></textarea>
  22. </p>
  23. <p>
  24. Find<br/>
  25. <input id="find_word" name="find_word" type="text" />
  26. </p>
  27. <p>
  28. Replace<br/>
  29. <input id="replace_word" name="replace_word" type="text" />
  30. </p>
  31. <input id="submit" name="submit" type="submit" value="Submit" />
  32. </form>
  33. </body>
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement