SHARE
TWEET

Untitled

a guest Dec 29th, 2012 55 Never
  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. }
RAW Paste Data
Top