Date:  02/04/2003 02:40:24 PM Msg ID:  001311
From:  Joe Goldsmith Thread:  001310
Subject:  Re: Response.Redirect Problem UPDATE

Here is what REALLY is happening when I redirect and pass a variable. I cannot figure out how to redirect with a variable's value. Some help is appreciated.

<%
IF Request.FormCount("btnchoice") > 0
 M.nemail = ALLTRIM(Request.Form('nemail'))
 
 *CHECK FOR DATA ENTRY ERRORS***************************
 error_txt = ''
 IF EMPTY(M.nemail)
  error_txt = 'amerror'
 ENDIF
 *******************************************************
 IF EMPTY(error_txt)
  IF !USED('newslet')
   USE data/pbs!newslet SHARED IN 0
  ENDIF
  SELECT newslet
  LOCATE FOR RTRIM(nemail) == RTRIM(M.nemail)

  IF FOUND()
   USE
   Response.Redirect("regedit.fwx?logmail=<%=M.nemail%>")
  ELSE
   error_txt = 'BADEMAIL'
  ENDIF
 ENDIF
 USE
ENDIF
%>

Two problems: First, I get and error when I use <% %> within <% %>; Second, I need to pass a value to the called page. Any ideas?