We help IT Professionals succeed at work.

Form variable from Flash not being read on ASP page.

Bruce Gust
Bruce Gust asked
on
168 Views
Last Modified: 2010-04-03
I've got a variable called "ProductKey" being passed to an ASP page from a Flash movie. When I write

if LTrim(RTrim(Request.Form("ProductKey"))) = "7747" then
response.write "Hello"
else
response.write Request.Form("ProductKey")
end if

The response I get is "7747" written in a huge font.

So while the response should be "Hello," it isn't, yet the form variable that's being read is "7747." What am I doing wrong?
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Bruce GustPHP Developer

Author

Commented:
This is what I'm getting when I use the "replace" statement you suggested:

*
7747
*

It seems like we're on the right track as far as there being some carriage returns, but I'm not able to eliminate them. What am I missing?

Commented:
have you replaced the linefeed characters by using the replace function?

if Replace(LTrim(RTrim(Request.Form("ProductKey"))), vbCrLf, "") = "7747" then
Bruce GustPHP Developer

Author

Commented:
Here's where I'm at:

if Replace(LTrim(RTrim(Request.Form("ProductKey"))), vbCrLf, "")="7747" then
response.write "Hello"
end if

I get nothing...

The only thing that strikes me as bizarre is when I do a response.write Request.Form("ProductKey"), I get 7747, so it sees the content but it's written in a monster size font as opposed to the default TimesNew Roman.

What do you think?
Bruce GustPHP Developer

Author

Commented:
I got rid of "Auto Kern" and that seemed to make all the difference.

Thanks!
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.