0 Votes

Wiki source code of PublicSubmission

Version 13.1 by Ryan C on 2025/06/08 18:08

Hide last authors
Ryan C 8.1 1 {{velocity output="yes"}}
Ryan C 13.1 2 <p>Request method: $request.getMethod()</p>
3 <p>Request parameters: #foreach($p in $request.parameterNames) $p = "$request.getParameter($p)"<br/>#end</p>
4
Ryan C 6.1 5 #if($request.headline)
Ryan C 13.1 6 <div style="color:green;font-weight:bold;">Received submission: $request.headline</div>
Ryan C 6.1 7 #else
Ryan C 12.1 8 <form method="post" action="$doc.getURL()">
9 <input type="hidden" name="form_token" value="$services.csrf.getToken()" />
Ryan C 13.1 10 <label>Headline: <input type="text" name="headline"/></label>
Ryan C 12.1 11 <button type="submit">Submit</button>
Ryan C 6.1 12 </form>
13 #end
Ryan C 2.1 14 {{/velocity}}
Ryan C 5.1 15