Dave Rolsky wrote: > On Thu, 4 Jan 2007, Jeremy Morton wrote: > >> It looks like HTML::Mason currently doesn't have this feature, which >> is sad. I'd like to be able to distinguish between GET and POST >> params. Currently there is an %ARGS hash which simply merges the >> two. I'd like to see something like %ARGSGET and %ARGSPOST global >> variables. Shouldn't be too difficult to implement, should it? > > You can already figure this out using the mod_perl or CGI.pm API. I'm > not too keen on adding more globals to the Mason component namespace. > > > -dave
Dave, I tried to do this but it didn't work. CGI.pm doesn't seem to give me any query information when I create a new CGI::Simple in my Mason component, presumably because Mason has already sucked up the input buffer. You can init a CGI::Simple query object using %ARGS, but obviously this doesn't distinguish between GET and POST params. Could you tell me how I'd go about doing the distinguishing? As for adding to the namespace, I'm not sure what better way there would be to do it; perhaps you could think of one that wouldn't add to the namespace. Still, I doubt anybody would be or will be planning to use the variable names I suggested as local script variables. Especially if they're uppercase. -- Best regards, Jeremy Morton (Jez) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users