PDA

View Full Version : PAssing variables


dbalka
10-07-03, 10:59 PM
I have and HTML page that passess a variable 'DESCRIPTION' (textara) to a perl procedure, which calls another procedures. But the second procedure only sees the first strings in the DESCRIPTION variable.


Eg.

HTML page passes the variable DESCRITION to a procedures called test. Test them does some processing and passed the DESCRIPTION variable to test1

HTML PAGE passess variable DESCRIPTION ('testing commensts') to a procedure in perl call test. Then test procedure passess the variable DESCRIPTION ('testing commensts') to test2. But test2 procedure only sees 'testing' not 'testing commensts' . Why and how do I solve this problem ?

Thanks

Chas
10-08-03, 10:06 AM
How about posting the code? Without seeing the code, It's next to impossible to say why that's happening without seeing it.

~Charlie
:wq

rob2132
10-08-03, 03:55 PM
I have and HTML page that passess a variable 'DESCRIPTION' (textara) to a perl procedure, which calls another procedures. But the second procedure only sees the first strings in the DESCRIPTION variable.


Eg.

HTML page passes the variable DESCRITION to a procedures called test. Test them does some processing and passed the DESCRIPTION variable to test1

HTML PAGE passess variable DESCRIPTION ('testing commensts') to a procedure in perl call test. Then test procedure passess the variable DESCRIPTION ('testing commensts') to test2. But test2 procedure only sees 'testing' not 'testing commensts' . Why and how do I solve this problem ?

Thanks

If you use the GET method and/or don't encode white space, it will stop on the last white space. It depends on how you're passing it. I may have misunderstood your problem though. Post the relevant portions of the code and someone will surely point out the problem for you.

aleksgurl
10-29-03, 06:00 PM
Hi there,
Have you tried putting quotes around the variable name? ie. '$DESCRIPTION'

I think that might be the problem, you need quotes so that the characters after the space will not be truncated.

Cheers.