I noticed that Message-ID:
<86**************************@posting.google.com > from Christian Colberg
contained the following:
I wanted to know how you can insert text to the left and to the right
of a marked part of the word. example:
Input field says: ... trees are green ...
By marking this text and using a button I'd like to have
... <b>trees are green</b> ...
<?php $string="The quick brown fox jumps over the lazy dog";
if (!$_POST['Submit']){
echo $string;}
else{
echo str_replace( $_POST['text'],"<b>".$_POST['text']."</b>",$string);
}
?>
<form name="form1" method="post" action="">
<input type="text" name="text">
<input type="submit" name="Submit" value="Submit">
</form>
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs
http://www.ckdog.co.uk/rfdmaker/