equal
deleted
inserted
replaced
100 $result .= fgets($sk, 1024); |
100 $result .= fgets($sk, 1024); |
101 } |
101 } |
102 } |
102 } |
103 |
103 |
104 fclose($sk); |
104 fclose($sk); |
105 header ('Location: http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . 'details.php'); |
105 header ('Location: http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/details.php'); |
106 //header ('Location: http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/details.php?alert=add'); |
106 //header ('Location: http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/details.php?alert=add'); |
107 } |
107 } |
108 ?> |
108 ?> |
109 |
109 |
110 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
110 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
120 // FOR TEST PURPOSES - CHECK QUERYSTRING |
120 // FOR TEST PURPOSES - CHECK QUERYSTRING |
121 //print "search term = " . $search_term; |
121 //print "search term = " . $search_term; |
122 |
122 |
123 if ($search_term == "") |
123 if ($search_term == "") |
124 { |
124 { |
125 print "<p>You did not enter a valid search term. Click the link to return to the <a href='details.php'>search page</a>.</p>"; |
125 print "<p>You did not enter a valid search term. Click the link to return to the <a href='/details.php'>search page</a>.</p>"; |
126 } |
126 } |
127 |
127 |
128 print ("<p>MSG = " . $message . "</p>"); |
128 print ("<p>MSG = " . $message . "</p>"); |
129 print ("<p>RESULT = " . $result . "</p>"); |
129 print ("<p>RESULT = " . $result . "</p>"); |
130 ?> |
130 ?> |