Skip to content

Commit

Permalink
Merge pull request #6 from anvk/random
Browse files Browse the repository at this point in the history
linkage through forms
  • Loading branch information
cindyli committed Jan 22, 2013
2 parents dd6645e + d839bb6 commit 806f9bb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
4 changes: 3 additions & 1 deletion add_places.php
Expand Up @@ -47,7 +47,9 @@
<?php if($username == $special_user) { ?>
<li class="divider-vertical"></li>
<li>
<button type="submit" class="btn" value="submit">Pick a random place from the list</button>
<form class="navbar-form" action="random.php" method="post">
<button type="submit" class="btn" value="submit">Pick a random place from the list</button>
</form>
</li>
<?php } ?>
</ul>
Expand Down
26 changes: 14 additions & 12 deletions random.php
Expand Up @@ -21,16 +21,18 @@

<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<div class="navbar">
<div class="navbar-inner">
<ul class="nav">
<li>
<button type="submit" class="btn" value="submit">Go Back</button>
</li>
</ul>
<form action="add_places.php">
<div class="navbar">
<div class="navbar-inner">
<ul class="nav">
<li>
<button type="submit" class="btn" value="submit">Go Back</button>
</li>
</ul>
</div>
</div>
</div>

<div class="well alert-success">
Aha! We are going to <h2><?php echo $place; ?></h2>
</div>
<div class="well alert-success">
Aha! We are going to <h2><?php echo $place; ?></h2>
</div>
</form>

0 comments on commit 806f9bb

Please sign in to comment.