[ic] pass mv_searchspec variable through login.html to another page

Paul Jordan interchange-users@icdevgroup.org
Mon Sep 30 19:36:02 2002


> I use the 'search_box_small' component on the left
> side for searching userdb. After a search term is
> entered, it takes me to a results page which is
> 'members_only' (using [tmp members_only]1[/tmp]). When
> user is not logged in, it takes them to the login
> page. After login they are then taken to the results
> page, however, I need to pass the mv_searchspec to
> this page from the original search. Using hidden
> variables, including *this* variable, on the
> login.html page, I get the expected results on the
> results page:
>
> <INPUT TYPE="hidden" NAME="mv_searchspec"
> VALUE="a_known_valid_search_term">
>
> But I can't pass the search term to the results page
> using the following:
>
> <INPUT TYPE="hidden" NAME="mv_searchspec"
> VALUE="[value mv_searchspec]">
>
> (and also tried VALUE="[data session arg]")
>
> I also tried using scratch variables within
> login.html:
>
> [set temp_spec][value mv_searchspec][/set]
>
> <INPUT TYPE="hidden" NAME="mv_searchspec"
> VALUE="[scratch temp_spec]">
>
> and several variations of the above. I have been
> searching the archives and icdevgroup.org but can't
> lay my finger on that almighty tag or variable syntax.
>
> My complete login.html form is below.
>
> All suggestions are welcome.
>
> Thank you.
>
> SKR


Try [seti temp_spec][value mv_searchspec][/seti]

You can set it directly into temp_spec by [if !session logged_in] <input>
for temp_spec [else] <input> for mv_searchspec, on the search page to begin
with.

HTH
Paul