Data from form into text!

liunx

Guest
Hi!<br />
<br />
I want to make a preview whenever I make a news for my site. So far I cant figure out how to get the info from the form over in the other page without using the submit button. I have been thinking about some Java but I dont know how to do! The code I use for the form is:<br />
<br />
<?php<br />
if($action == "nynyhed") {<br />
<br />
echo "<form action=$SELF_PAGE?action=nynyhedexe method=POST name=nyhedentry>";<br />
echo "BlastZone.dk Brugernavn:<br>";<br />
echo "<input type=text size=30 name=handle><br><br>";<br />
<br />
echo "Email:<br>";<br />
echo "<input type=text size=30 name=email><br><br>";<br />
<br />
echo "Titel:<br>";<br />
echo "<input type=text size=30 maxlength=50 name=titel><br><br>";<br />
<br />
echo "Ikon:<br>";<br />
echo "<input type=text size=30 name=ikon maxlength=20 value=blastzone.gif><br><br>";<br />
<br />
echo "Nyhed:<br>";<br />
echo "<textarea name=nyhed cols=45 rows=10></textarea><br><br>";<br />
echo '<input type=submit name=submitnyhed value=" Tilf榇
 
Back
Top