Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Modifying the redirect page of an input behavior

Guest
Dec 26, 2008 Dec 26, 2008
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?
TOPICS
Server side applications
394
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 29, 2008 Dec 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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 29, 2008 Dec 29, 2008
LATEST
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines