user search retruning error **The action you have requested is invalid.**
Posted: 14 April 2008 02:19 PM   [ Ignore ]
Member
RankRankRank
Total Posts:  63
Joined  2007-05-31

Given the fact there’s not too much to mess up here: below is my working example:

{exp:user:search form_name="member_search" return="{path=member/results}"}

<p><input type="text" name="keywords" value="" /></p>
<
p><input type="submit" value="search" /></p>
<
input type="hidden" name="user_orderby" value="username" />

{/exp:user:search}

I took a look at the output from the tag and it’s converting the forward slash in the return’s {path} variable to “& amp;#47” (no space betweeen amp and char. code).

<input type="hidden" name="return" value="http://www.fashiondiner.com/member& amp;#47;results/" />

This is not occurring with the RET vaule.

Any idea how to address?

Edit: while testing I tried removing the {path} variable and replacing with a relative path

return="my_template_group/my_results_tempate"

but this still exhibits the problem I’m observing and returns an “invalid URI” error.

Profile
 
 
Posted: 16 April 2008 06:04 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3350
Joined  2006-10-18

hothousegraphix,

When you submit the form, what does your URL in the browser look like?

Also, which version of ExpressionEngine are you using, and which browser? smile

As for the return hidden field, the “fix” for that is actually hidden in the mod.user.php file. On submit, that code is actually converted (or should be) to generate a proper URL.

Lastly,

The user_orderby form field is probably causing the problem. It does not apply for this form:

<input type="hidden" name="user_orderby" value="username" />

 Signature 
Profile
 
 
   
 
 
‹‹ {last_activity} == ?      Can User Do This? ››