in reply to Passing a form parm and a url reference to a different script

I'm not sure if I truely understood you, but maybe you are searching for hidden form elements.
<input type="hidden" name="secret" value="notdisplayed">
But I must say that this is a very dangerous way of transporting informations because the user can read the HTML source and modify the variables quite easy. You have to insert a view methods to check the values or better you save the informations you've allready got.
-- package Lizard::King; sub can { do { 'anything'} };

Replies are listed 'Best First'.
Re: Re: Passing a form parm and a url reference to a different script
by mnlight (Scribe) on Dec 23, 2001 at 11:51 UTC
    It makes sense that the second script would be able to get the user id from the remote_user() since it is handled by the server. However could you please explain what a less dangerous way to pass 2 variables to a different script would be. I am not understanding how the hidden form element works.
      hidden form elements are simply not shown to the user although he can open the source and find them. You can use them like nomal <input>-field except that their type=hidden.
      The normal and less dangerous way is to save the data you've got (maybe into a database (mark the entry it temporary) or a temporary file) and reread the data in the second script.

      -- package Lizard::King; sub can { do { 'anything'} };
      TomK32 - just a geek trying to change the world