use hidden fields,

<title>New Document </title>

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

<? if (isset($messages)) { ?>
<? for ($i=0;$i<count($messages);$i++) echo "<b>{$messages[$i]}</b><br>";
<? } ?>
<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]?>"><?
<input type="submit" value="post message" name="submit">

// elias

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

PHP General Mailing List (
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