PDA

View Full Version : Can't get form data to post to an html page


Rookie
06-16-2005, 07:18 AM
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 "[b]<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>

pafro
09-07-2005, 04:35 AM
Is the page extension .php? - if not it should be!

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

[quote]
<?php

echo'[b]<fontsize='4'>Lastupdated:</font></b>{$_POST[Date]},{$_POST[Time]}</p>';

echo'ThreatAdvisoryLevel:';

echo'<p>{$_POST[Announcement]}</p>';

?>
</CODE>