Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kaj 41 posts 73 karma points
    Feb 06, 2010 @ 19:23
    Kaj
    0

    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?

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Feb 06, 2010 @ 23:39
    Chriztian Steinmeier
    1

    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:

    <xsl:variable name="searchQuery" select="umbraco.library:RequestQueryString('q')" />

    - which you can then use in the rest of the XSLT. 

     /Chriztian

  • Kaj 41 posts 73 karma points
    Feb 07, 2010 @ 06:24
    Kaj
    0

    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

  • Jesper Hauge 298 posts 487 karma points c-trib
    Feb 07, 2010 @ 12:51
    Jesper Hauge
    0

    Hi Kaj

    Yes - that should do the trick  :)

    Regards
    Jesper Hauge

  • Seth Niemuth 275 posts 397 karma points
    Feb 07, 2010 @ 12:51
    Seth Niemuth
    0

    Yeah, for the submit action you should put the URL of the page that contains the XSLT that uses RequestQueryString() and RequestForm().

Please Sign in or register to post replies

Write your reply to:

Draft