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...

<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to