Originally posted by hackle
i wanna insert something into the TEXTAREA, generally we do
text.value="whatever we want"+text.value;
but that just works to add something to the start or end of the TEXTAREA; what if inside it?
Ummm, this looks like JavaScript? In php:
$NewText="whatever we want";
echo "<textarea>$NewText</textarea>";
I have a feeling your question is really more complex than that, though...given a string value, you'd probably have to first determine a way to determine where the 'new text' should be added.
Feels like a case for strtok() or substr(), perhaps; or maybe ereg_replace if you take a different tack....
got more data?
dalecosp