I'm using PHP to create a cookie on my index page, that has an HTML inside the and wanting to carry the variable over to the frames page so I can say Hello to the user. The PHP script is:
=====================
<?php

<form>
<center>
<p>
<input type = "hidden" name= "action" value="setcookie">
<p>Welcome to the New Cookie Page Entry Screen. Input your name and it will set a small limited-time cookie on your machine. We will be setting Cookies with PHP as per Chapter 18 of PHP Professional Programming.<br><p>
<input type="text" name="visitorname">
</br>
<p>
<input type="submit" value="ok">
</center>
<p>

</form>

<? endif; ?>
========================
Can I use the $visitorname variable in any of the frame pages?

The scope of the $visitorname variable is only availible in the current page/script you are building, so you can not access it on the child frame unless you build it there. However, if you just put it in the url of the child frame, you'd have it. Eg. src="blank.htm?visitorname=$visitorname".