Steven_Smith
10-23-2002, 04:27 AM
Hi :D
I have this script
<script>
opener.document.form1.email.value="<? echo $foo ?>"
</script>
That updates a text form field on another page.
My problem is that the $foo data has return in it
ie.
$foo="steve,steve@bakeacake.com\rjane,jane@bakeacake.com"
(I am making an addressbook)
My problem is that when $foo has \r in it it wont update, but without the \r it will update...
So my question is. HOw can I get around this problem...
Thanks
Steve
I have this script
<script>
opener.document.form1.email.value="<? echo $foo ?>"
</script>
That updates a text form field on another page.
My problem is that the $foo data has return in it
ie.
$foo="steve,steve@bakeacake.com\rjane,jane@bakeacake.com"
(I am making an addressbook)
My problem is that when $foo has \r in it it wont update, but without the \r it will update...
So my question is. HOw can I get around this problem...
Thanks
Steve