Current location: Hot Scripts Forums » Programming Languages » Perl » PAssing variables


PAssing variables

Reply
  #1 (permalink)  
Old 10-07-03, 09:59 PM
dbalka dbalka is offline
New Member
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
PAssing variables

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
Reply With Quote
  #2 (permalink)  
Old 10-08-03, 09:06 AM
Chas Chas is offline
Coding Addict
 
Join Date: Oct 2003
Location: California
Posts: 359
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #3 (permalink)  
Old 10-08-03, 02:55 PM
rob2132 rob2132 is offline
Newbie Coder
 
Join Date: Sep 2003
Location: USA
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by dbalka
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.
Reply With Quote
  #4 (permalink)  
Old 10-29-03, 05:00 PM
aleksgurl aleksgurl is offline
New Member
 
Join Date: Oct 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Talking Solution to Passing textarea value

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.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Object Oriented Programming Stefan PHP 29 12-30-03 11:22 AM
Trouble with parameter passing in URLs and str_replace crookyboy PHP 2 09-16-03 05:30 AM
adding more variables to the mail() result spinicrus PHP 6 08-28-03 04:55 PM
Array passing between functions alfreds PHP 1 08-25-03 05:29 AM
eval variables syntax banquet PHP 1 07-09-03 04:49 AM


All times are GMT -5. The time now is 04:09 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.