How to recive the content from a simpel html search form and bind it in a xslt-loop?
I have a page who recive a content from a contour form in umbraco.
On this xslt - page I whant to do a small html based search form, so my customors can do a individual search on all that post.
I think i have no problem with build a html form, and i think i have no problem with building a loop in xslt. But binding the result from form-action to the xslt-loop i have little problem to figure out?? How I recive the information in to the xslt-loop?
You can use the library methods RequestQueryString() and RequestForm() to get the data you need, e.g. if your search form uses GET, you can extract the value of a field by using:
How to recive the content from a simpel html search form and bind it in a xslt-loop?
I have a page who recive a content from a contour form in umbraco.
On this xslt - page I whant to do a small html based search form, so my customors can do a individual search on all that post.
I think i have no problem with build a html form, and i think i have no problem with building a loop in xslt. But binding the result from form-action to the xslt-loop i have little problem to figure out?? How I recive the information in to the xslt-loop?
Can anyone help me with that?? Plz?
Hi Kaj,
You can use the library methods RequestQueryString() and RequestForm() to get the data you need, e.g. if your search form uses GET, you can extract the value of a field by using:
- which you can then use in the rest of the XSLT.
/Chriztian
Ok, thanx! I´m going to try with thouse methods..
In this case what should I put in the submit action? Should I just put the url that all is about?
Regards,
Kaj
Hi Kaj
Yes - that should do the trick :)
Regards
Jesper Hauge
Yeah, for the submit action you should put the URL of the page that contains the XSLT that uses RequestQueryString() and RequestForm().
is working on a reply...