PHP Javascript opener.document question
<p>Im trying to pass some values into a text box from a child page to the parent page. The code I have works fine passing one integer value through to the parent page, however it won't pass a string. I also want to try and pass another value through to an additional text box, how would I go about doing that?</p>

<p>logRequestAdmin is the name of the form on the parent page, and ClientName is the text box to post the first value to.</p>

<p>Here's my code for the child page:</p>

<pre><code>&lt;head&gt;
&lt;script type="text/javascript"&gt;
    &lt;!-- Begin
    function moveData(info) {
    window.opener.document.logRequestAdmin.ClientName.value = info;
    self.close();
    return false;
    }
    // End --&gt;
&lt;/script&gt;
</code></pre>

<p></p>

<p></p>

<pre><code>        &lt;table&gt;
            &lt;tr&gt;
                &lt;td class="clientTop"&gt;Client ID&lt;/td&gt;


                &lt;td class="clientTop"&gt;Client Name&lt;/td&gt;

                &lt;td class="clientTop"&gt;Username&lt;/td&gt;

                &lt;td class="clientTop"&gt;Email&lt;/td&gt;

            &lt;/tr&gt;


            $query = "Select * from clients"; 

            $result = mysql_query($query) or die ("Error in query: $query. ".mysql_error());  

            while($row = mysql_fetch_array($result))
            {

                $ClientID = $row['ClientID'];

                $ClientName = $row['ClientName'];

                $Username = $row['Username'];

                $Email = $row['Email'];

                echo '&lt;tr&gt;
                        &lt;td class="clientBottom"&gt;&lt;a href="javascript:void();" onclick="moveData(' . $ClientID . ');"&gt;' . $ClientID . '&lt;/a&gt;&lt;/td&gt;
                        &lt;td class="clientBottom"&gt;&lt;a href="javascript:void();" onclick="moveData(' . $ClientID . ');"&gt;' . $ClientName . '&lt;/a&gt;&lt;/td&gt;
                        &lt;td class="clientBottom"&gt;&lt;a href="javascript:void();" onclick="moveData(' . $ClientID . ');"&gt;' . $Username . '&lt;/a&gt;&lt;/td&gt;
                        &lt;td class="clientBottom"&gt;&lt;a href="javascript:void();" onclick="moveData(' . $ClientID . ');"&gt;' . $Email . '&lt;/a&gt;&lt;/td&gt;
                      &lt;/tr&gt;';       
            }
        &lt;/table&gt;
</code></pre>
