|
I have a simple form (signup.html).. It shows
visitors the form, and upon submission, it validates the POST and, if all is
well, it saves the POST to a database, then finally displays "thank you for
posting".
Problem is, if someone sits there and keeps
refreshing, it will keep reposting.
Not sure what to do, I put a redirect after the
database save to a non-existing page called submit-signup.html.
So now, when someone submits, it redirects them to
my dhandler. I am trying to change the HTML title tag but not sure what to
do.
Currently, I have:
% if($apache_request_uri =~
/submit-signup/){
% $m->base_comp->attr('page_title') = "SignUp Complete"; % } % else { Error 404: <% $apache_request_uri %> is an invalid URI. % } Apparently you cannot change an attrib dynamically
with PERL code as I have done. You cant dymically change a method either..
so what do I do to reach my goal here? What does Mason have in place to
handle this? I'd rather not have to redirect them but I dont know how to
keep people from refreshing and filling up my database. What should I
do??
Thanks for any help,
Kris
|
- [Mason] changing an attrib? Kris Yates
- Re: [Mason] changing an attrib? Bruce J Keeler

