如果条件为真,我如何从 $repvalue 值写入 textarea 值,请帮助我。
<html>
<body>
<form action="find4.php" method="post" name="finrep">
<p>Find: <input type="text" name="fin">Replace: <input type="text" name="rep" >
</p>
<p><br/>
<textarea name="comments" cols="25" rows="5" value="<?php echo $repvalue; ?>"></textarea>
<input type="submit" name="submit1" value="submit">
</p>
</form>
</body>
</html>
<?php
if ($_POST['submit1'])
{
$findval = $_POST['fin'];
$textboval = $_POST['comments'];
if($findval == $textboval){
$repvalue = $_POST['rep'];
}
}
?>