Re: variables

From: Date: Tue, 11 Sep 2001 10:22:54 +0000
Subject: Re: variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66892@lists.php.net to get a copy of this message
Sure you can! consider this simple example: <html> <body> <a href="javascript:setvars('var1value', 'var2value')">click here to go to next page</a> <script language="JavaScript"> <!-- function setvars(var1, var2) { df = document.dataform; df.var1.value = var1; df.var2.value = var2; df.submit(); } //--> </script> <form name="dataform" action="page2.php" method="post"> <input type='hidden' name='var1'> <input type='hidden' name='var2'> </form> </body> </html> it's using hidden forms... you can also use sessions... <webgenie@wanadoo.nl> wrote in message news:KDEGLILLMKMDKJGAMGHIMEIKCBAA.webgenie@wanadoo.nl... > Hello, > > Is it possible to transfer certain variables to a new scripts, but not doing > this as uri-parameters (../bla.php?var1=var&var2=var#) > > I need it for Usernames and passwords and when the pages get cached the > usernames and pwd's can be viewed in the Temp-inetfiles-folder in Windhoze. > > Thanks, > > Bart >

« previous php.general (#66892) next »