Most of my forms are self referential, so whatever URL they get invoked
with is used for the action. This means if I want to pre-populate any
fields by including the values in the URL, when the form is posted I get
two copies- one GET from the action, one POST from the form.
To avoid pre-populating fields with a stringified arrayref, and to defer
to the value from the form, I'm doing this:
$ARGS{prefer_post} = $m->cgi_object->param('prefer_post') ||
$m->cgi_object->url_param('prefer_post');
Note: I'm using CGI, and relying on the cgi_object to handle the parameters.
My question: is there a way to do this that doesn't depend on
cgi_object, so that once I switch to using mod_perl I don't need to go
find and fix these? Also, how would you do this in mod_perl?
Thanks,
RJ
--
"This is an evil generation" -Electric Six, "Rock and Roll Evacuation"
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users