1
我試圖重定向到從forminput.html一個URL(「形式」,「結果」)與參數(對我來說,這是一個巨大的字典,即輸出)。但是,當網頁被重定向到results.html,所有參數也包括在該網頁的網址本身,這是我們不希望的原因有兩個,安全和lenthy類型的URL。
你能幫我解決這個問題嗎?
在此先感謝重定向URL與web2py的控制器參數
/*this my controller, form.py*/
my_funct():
out_dict=dict() // out_dict is a huge dictionary with 100 of keys and values
return out_dict
define forminput():
outout=my_funct()
redirect(URL('form','results', vars= dict(out=output)))
define results():
data=request.vars['out']
非常感謝,安東尼。它爲我工作。這正是我想要的。 – user7180675