Can't get form data to post to an html page

Discussion in 'HTML / PHP / JavaScript / CSS' started by Rookie, Jun 16, 2005.

  1. I am trying to use a form to allow someone to enter in a small amount of data and after they submit that data have it post to another html page. The code I am using is as follows:


    <?php</o:p>
    echo "<font size="4">Last updated: </font></b> $_POST[Date], $_POST[Time]</p>";</o:p>
    echo "Threat Advisory Level:";</o:p>
    echo "<p>$_POST[Announcement]</p>";</o:p>
    ?>
    The issue is that the other html page is posting the code above instead of the information that I am trying to get. Any ideas???</o:p>
     
  2. Is the page extension .php? - if not it should be!

    Also try putting the $_POST[Date] into {} eg.

     

Share This Page