/extremedating/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/extremedating/trunk

« back to all changes in this revision

Viewing changes to php/planlunch.php

  • Committer: Gustav Hatvigsson
  • Date: 2013-04-14 06:18:19 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20130414061819-srmgejb8a9geyw1g
added a date-picker that workes with 'all' browsers

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?PHP
2
 
        echo '<form method="POST" action="">';
3
 
        echo '<input type="datetime" name="date">';
4
 
        echo '<input type="text" name="message">';
5
 
        echo '<button type="Submit" name="SuggestLunch">Föreslå lunch</button>';
6
 
        echo '</form>';
7
 
        
 
1
<?php ?>
 
2
<form method="POST" action="">
 
3
  <div id="datetimepicker" class="input-append date">
 
4
    <input data-format="yyyy-MM-dd hh:mm:ss" type="datetime" name="date"> </input>
 
5
    <span class="add-on">
 
6
      <i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
 
7
    </span>
 
8
  </div>
 
9
  </script>
 
10
    <script type="text/javascript">
 
11
      $('#datetimepicker').datetimepicker({
 
12
     });
 
13
  </script>
 
14
  </body>
 
15
  <input type="text" name="message">
 
16
  <button type="Submit" name="SuggestLunch">Föreslå lunch</button>
 
17
        </form>
 
18
        <?php
8
19
        $user2 = htmlspecialchars($_GET['uid']);
9
20
        if (isset($_POST['SuggestLunch'])) {
10
21
                $query = "INSERT INTO planLunch (
33
44
                        var_dump($err);
34
45
                }
35
46
        }
36
 
?>
 
 
b'\\ No newline at end of file'
 
47
?>