You don't even have to document.write. You can just create a hidden variable like you said and set that variable. such as:
<form name='frmTest'> <input type=hidden name="var1"> </form> then set that var after the value is retrieved from the prompt like so: <script> var name= prompt('....'); document.frmTest.var1.value=name; </script> just another way of doing it. ;) ~nicole www.aeontrek.com ========================= "Craig Morrison" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I figured out how to do what I wanted to do. > > document.write the var to a hidden field in a form.. Thanks to everyone who > sent messages off the list! :-) > > Craig Morrison wrote: > > > > Say I do this in JavaScript: > > > > var name = prompt("Please enter your name:", "Name"); > > > > How do I access 'name' in PHP or can I? > > -- > > Craig Morrison > http://www.mtsprofessional.com/ > A Win32 Email server that works for you. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php