hello there! i am having problem in calling the escape and unescape functions.
i have a button in my form which opens a new window. upon clicking the said button, it should pass the string $title to the new window thru url. however, the string accepts special characters. i believe that strings with special characters must be escaped first then unescape (to the new window) for it to be displayed properly.
here is a sample of the code: (php)
$title = $results["Title"];
<form name="modify" method="post">
<input type="text" name="Title" size="50" value=" <? echo $title;?> ">
<input type="button" name="pick" value="Send" onClick = "window.open('modtitle.php?OpenForm&title=<? echo $title?>&actione=load','new_win','width=400,height=300');">
the problem: where will i insert the function that will escape the string $title that will be passed thru url.
on the other hand, at my new child window, the string $title must be placed in a textarea.
<textarea name="Title" cols="51" rows="5"><? echo $title?></textarea>
the problem: how will i unescape the string $title to display it in the textarea in my new window.