Skip to main content
December 27, 2008
Question

Modifying the redirect page of an input behavior

  • December 27, 2008
  • 1 reply
  • 392 views
I created a user input behavior for a user registration page. I also added a check new username behavior. It all works well. The problem isn't really a big problem because it all still works. But, it would be nice if I could modify the code that Dreamweaver generates and NOT get the red exclamation error next to the behavior in the behaviors panel. That way I could still click on the behavior and be able to edit it with the dialog box instead of hand coding it.

Here is the deal. In the input behavior, I specified the redirect page. The code written by Dreamweaver is:

MM_editRedirectUrl = "login_confirmation_send.asp"

Problem is, I want to pass a form value in the query string to that redirected page. So, I modified that code to say:

MM_editRedirectUrl = "login_confirmation_send.asp?email=" & Request.Form("email")

When I do that, I get a big red exclaimation next to the check new user behavior which says the input behavior has been deleted. Eventhough, it still works fine.

Is there a way to modify the code without getting the error?
This topic has been closed for replies.

1 reply

Participating Frequently
December 29, 2008
MM_editRedirectUrl = "login_confirmation_send.asp?email="
MM_editRedirectUrl = MM_editRedirectUrl & Request.Form("email")

That might do it. Does ASP have another concatenator besides ampersand(&) like the plus sign(+) that you could use? Also, I've totally forgotten if you need semicolons(;) at the end of lines of ASP code.
December 29, 2008
Yes a (+) can be used and the (&). I think there is are certain situations in which you use (+) and (&). But, I forget the rule. Also, in ASP (VBScript) you don't have to end the line with (;).

I'll try your suggestion and post back. Thanks for your time.