Hi all
Can one of you experts give me a quick solution for my problem please.
I want to be able to input date in a form see below:
<form name="news" method="post" action="news_confirm.php3"><tr>
<td width="16%">Date:</td>
<td width="84%">
<input type="text" name="date" value="<? print(Date("l F d Y")); ?>" size="40">
</td>
</tr>
<tr>
<td width="16%">Subject: </td>
<td width="84%">
<input type="text" name="subject" maxlength="50" size="40">
</td>
</tr>
<tr>
<td width="16%">Posted by: </td>
<td width="84%">
<input type="text" name="name" size="40" maxlength="40">
</td>
</tr>
<tr>
<td width="16%">Content </td>
<td width="84%">
<textarea name="content" wrap="PHYSICAL" cols="40" rows="10"></textarea>
</td>
</tr>
<tr>
<td width="16%"> </td>
<td width="84%">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Reset" value="clear">
</td>
</tr></form>
I then want to be able to call this date into another page so it stays there, look at like a news update.
I have tried the following in the page I what the data in :
<?php echo $name?>
<?php echo $date?>
but what i am finding is the data does not stay in the page, if I am making myself clear.
is there a way I can have my data from the form put into say a text file then call the data from a text file to another page so it will stay in the page until I update the data.
I hope you understand what I mean, I am new to php3, any help or code would be great thanks.
TheDon