use hidden fields,

//
<html>
<head>
<title>New Document </title>
</head>

<body>
<? if (isset($msg)) $messages[] = $msg;?>

<? if (isset($messages)) { ?>
<hr>
<? for ($i=0;$i<count($messages);$i++) echo "<b>{$messages[$i]}</b><br>";
<hr>
<? } ?>
<form action="<?=$PHP_SELF?>" method="post">
your text? <input type="text" name="msg">
<?
  if (isset($messages)
  {
    for ($i=0;$i<count($messages);$i++)
    {
      ?><input type="hidden" name="messages[]" value="<?=$messages[$i]?>"><?
    }
  }
?>
<br>
<input type="submit" value="post message" name="submit">
</form>
</body>
</html>

// elias

"Ardani Sarjito" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi!
> I still have the same problem.
>
> How Do I write a string on the a page using input from the same page
without
> deleting the previous written string. I'd like to use PHP_SELF. Is it
> possible?
>
>
> Thank you!
>
> Ardani
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to