Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 29th, 2012  |  syntax: PHP  |  size: 0.25 KB  |  views: 54  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. filea.html
  2.  
  3. <form method="POST" action="fileb.php">
  4. <input type="text" name="inputFieldName>
  5. <input type="submit">
  6. </form>
  7.  
  8. fileb.php:
  9.  
  10. if (strpos($_POST['inputFieldName'],'Answer Text')) {
  11.    echo 'Answer A';
  12. }
  13. else {
  14.    echo 'Answer B'
  15. }