Arc Forumnew | comments | leaders | submitlogin
1 point by squigg 6135 days ago | link | parent

adapted to include the submit button and "you said:" text...

  page <#>{(formlet <#>{input -> y}{submitButton("submit") -> z}</#> yields y) => fun (x) {page <a l:href="{page <#>{stringToXml("you said: " ++ x)}</#>}">Click Here</a>}}</#>
if i space it all out so it's nice and readable:

  page
  <#>
  	{(formlet <#>{input -> y}{submitButton("submit") -> z}</#> yields y)
  		=> fun (x) {
			page <a l:href="{page <#>{stringToXml("you said: " ++ x)}</#>}">Click Here</a>
	}}
  </#>