Re: refer to the same page AGAIN! Please...

From: Date: Tue, 04 Sep 2001 09:52:24 +0000
Subject: Re: refer to the same page AGAIN! Please...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65860@lists.php.net to get a copy of this message
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" <sarjito@iprimus.com.au> wrote in message news:MBBBICANNKAGDMHEPCGNAEIMCDAA.sarjito@iprimus.com.au... > 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 >

« previous php.general (#65860) next »