Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header('Content-Type: text/xml');
- echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
- echo '<response>';
- $food = $_GET['food'];
- $foodArray = array('tuna','bacon','beef','loaf','ham');
- if(in_array($food, $foodArray))
- echo 'We do have'.$food.'!';
- elseif ($food=='')
- echo 'Enter a food you idiot';
- else
- echo 'Sorr fucker we dont sell no'.$food.'!';
- echo '</response';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement