Advertisement
zukars3

Untitled

Apr 19th, 2020
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. <form method="post">
  2.     Country: <input type="text" name="country">
  3.     <input type="submit" name="add" value="Add country">
  4. </form>
  5.  
  6. <form method="post">
  7.     City: <input style="margin-left: 33px" type="text" name="city">
  8.     <span style="margin-left: 10px">of country: </span><input style="margin-left: 10px" type="text" name="cityCountry">
  9.     <input type="submit" name="add" value="Add city">
  10. </form>
  11.  
  12. <table style="border-style: dashed; border-color: #ff0000; padding: 10px">
  13.     <?php foreach ($countriesTable as $country) : ?>
  14.         <tr>
  15.             <td><b><?php echo $country['id']; ?></b></td>
  16.             <td><a href="<?php echo 'http://127.0.0.1:8000/countries/' . $country['id']; ?>"><?php echo $country['country']; ?></a></td>
  17.         </tr>
  18.     <?php endforeach; ?>
  19. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement