Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [rgbworld] Keeping form data when there is an error

Quote Reply
Re: [rgbworld] Keeping form data when there is an error In reply to
In the form template you need to make sure that you have the value fields filled in with if tags - for example:

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

and then in the script that is processing the form, make sure that you feed the variables back in when you display the error template - for example:

print Links::SiteHTML::display('template_name', { %$variables, main_title_loop => $mtl, error => $error });
Subject Author Views Date
Thread Keeping form data when there is an error rgbworld 2380 May 4, 2006, 11:45 PM
Thread Re: [rgbworld] Keeping form data when there is an error
afinlr 2291 May 5, 2006, 6:35 AM
Post Re: [afinlr] Keeping form data when there is an error
rgbworld 2292 May 7, 2006, 9:57 AM