No date info on form submit. (html/php)

No date info on form submit. (html/php)

Hi all.

I'm obviously missing something simple here, but I don't seem to be able to retrive the date info from my form.

I'm using html for the form and php to process it.
This is my html file.

  1. <!doctype html>
    <html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Reminder - Set up a new event</title>
        <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css" />
        <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
        <script src="http://code.jquery.com/ui/1.10.1/jquery-ui.js"></script>
        <link rel="stylesheet" href="/resources/demos/style.css" />
        <script>
        $(function() {
            $( "#datepicker" ).datepicker();
        });
        </script>
    </head>
    <body>
    <h1>Reminder</h1>
    <form action="myform.php" method="post">
    <table>
    <tr><td>Enter your event name :</td><td><input type="text" name="event_name" /></td></tr>
    <tr><td>Your web site address :</td><td><input type="text" name="web_address" /></td></tr>
    <tr><td>You email address :</td><td><input type="text" name="email_address" /></td></tr>
    </table>
    <p>Description :</p>
    <p><textarea name="description" rows="8" cols="40"></textarea></p>

    <p>Enter the date for your event</p>
    <p>Date: <input type="text" id="datepicker" /></p>
    <input type="submit" value="Create event">
    </form>
    </body>
    </html>






























This is my php file. (Just to test the plugin. Needs to check later for correct inputs)
  1. <!doctype html>
    <html lang="en">
    <head>
    <meta charset="utf-8" />
    <title>Reminder set</title>
    </head>
    <body>
    <h1>Reminder set</h1>
    <table>
    <tr><td><b>Your name is:</b></td><td><?php echo $_POST['event_name']; ?></td></tr>
    <tr><td><b>Your web address:</b></td><td><?php echo $_POST['web_address']; ?></td></tr>
    <tr><td><b>Your e-mail:</b></td><td><?php echo $_POST['email_address']; ?></td></tr>
    <tr><td><b>Event date:</b></td><td><?php echo $_POST['datepicker']; ?></td></tr>
    </table>
    <br />
    <b>Description:</b><br />
    <?php echo $_POST['description']; ?>
    </body>
    </html>

















If anyone could have a quick look and spot the schoolboy error, I'd be very pleased.

Thanks

Rob