Re: PHP and JavaScript

From: Date: Tue, 05 Feb 2002 14:39:18 +0000
Subject: Re: PHP and JavaScript
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-11849@lists.php.net to get a copy of this message
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" <craig@2cah.com> wrote in message news:3C5C36E8.6A0AE784@2cah.com... > > 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.

« previous php.windows (#11849) next »