This topic is locked

How do I post adv search to _edit.asp & _list.asp?

4/14/2004 2:26:28 PM
ASPRunnerPro General questions
B
bennettsw author

I have html code to POST an advanced search to _edit.asp. If invoke from a window already logged in, things work fine.
However, if I'm not logged in, I'm prompted for the login. After I login in, I;m redirected to the main menu - not to the results of the advanced search.
Is there a way I can do this?
The reason this is a problem is that I want to be able to click on a URL in an e-mail message, and go directly to an edit or list screen containg th results of the search specified in URL flags.
Below is an excerpt showing how I perform the post.
Thanks!

<form method="POST" action="LeadMan/Leads_edit.asp" name="editform">

<input type=hidden id="editid" name="editid" value="bennettsw@aol.com" >

<input type=hidden id="NeedQuotesEmail" name="NeedQuotesEmail" value="True">

<input type=hidden id="action" name="action" value="edit">

</form>
<a href="#" onClick="document.forms.editform.submit(); return false;">Click to edit record</a>

Sergey Kornilov admin 4/15/2004

Hi,
sure you can achieve this however it involves a serious redesign. Currently I simply redirect user to a login page if he is not logged in. Here is what you need to do:

  1. Besides redirecting user to the login page you need to save in Session variables target page and search parameters
  2. After successfull login user should be redirected to a target page stored in a session variable
  3. On the target page you need to read submitted data from Session variables and use it.