XModPro

URL parameter processed by template FORM parameter?

Steve A Steve A asked Sep 3, 2014
Active Sep 10 · Viewed 1814 times
<p>Hi, all. I'm using two XMP 4.4.0 modules on separate pages and encountered something I did not expect.</p><p>I have two pages, A and B. Both pages have Forms and Templates with some complicated logic - IfNotEmpty, IfEmpty, NoItemsTemplate, etc., but I'll try to keep it simple here.</p><p>Page A contains TEMPLATE with a simple HTML hyperlink to Page B: /PageB?email=[[Email]]&continue=true</p><p>Page B contains a TEMPLATE with a Stored Procedure using the Email parameter: Parameter Name="email" datatype="string" value='[[Form:Email]]'</p><p>Notice that the Parameter on Page B is a Form (POST) Parameter. As expected, when the user POSTS the Form on Page B, the Template on Page B queries the database.</p><p>However, when a user clicks the link on Page A, the Template on Page B is ALSO is submitting the URL Parameter Email and returning records from the database.</p><p>If you want more details on what I'm trying to do, I can provide them, but I'd really like to know how or why the Form Parameter is taking action on the URL Parameter.</p><p>Any thoughts?</p></p>

0 Answers

Loading answers...