Gossamer Forum
Quote Reply
GT::CGI
Hmm I am just writing a plugin for someone and am submitting a form from a template and the form contains things like:

<input type="text" name="foo" value="<%if foo%><%foo%><%endif%>">

...when the form processing is done, I'm returning to the same template with:

print Links::SiteHTML::display('my_template');

....as you can see, I'm not passing in any tags, but all the form fields are auto filled in using the posted form parameters. It seems the parser is automatically turning input parameters into tags?

Well, that wasn't the main reason I posted....I don't want the fields to be filled in after the form processing, so I decided I must have to nuke the input parameters. After a bit of playing I realised a useful subroutine was missing from GT::CGI that is present in CGI.pm

$IN->delete_all;

....will delete all parameters in CGI.pm, but GT::CGI gives an unknown method error =(

I'm having to use this:

$IN->param($_) = '' for (qw/my params go here/);

Does GT::CGI contain anything like the delete_all method?

Sorry if this is the wrong place to post - I wasn't sure whether I should post here or the plugin authors forum - it's not really plugin author specific though.
Subject Author Views Date
Thread GT::CGI Paul 4085 Apr 5, 2003, 10:32 AM
Thread Re: [Paul] GT::CGI
Jagerman 3961 Apr 5, 2003, 3:56 PM
Post Re: [Jagerman] GT::CGI
Paul 3927 Apr 6, 2003, 1:19 AM
Post Re: [Jagerman] GT::CGI
pugdog 3898 Apr 6, 2003, 7:34 PM