RE: mysterious leading spaces

2002-03-13 Thread James Woods
First off, thanks for helping me, I really appreciate it. I'm printing out the @Draw using this code: foreach my $item (@Draw){ my @foo = split(/\|/, $item); my $rowColor; if ($counter == 7){ $rowColor = #c0c0c0; }else{ $rowColor = #ff; } print tr bgcolor='$rowColor'\n; print

Re: mysterious leading spaces

2002-03-13 Thread Tagore Smith
James Woods wrote: So I guess my newest question is, what am I doing wrong to only print out the first record of @Draw? It's hard to know for sure without seeing the code where you initialize @Draw. I went back and looked at earlier posts, and your initial problem (the leading spaces) was

Re: mysterious leading spaces

2002-03-13 Thread James Woods
up with me for so many posts 8^) However, I'm sure that this will not be my last post 8^) heh heh heh... Bless both of you. -James Original Message Follows From: Tagore Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: mysterious leading spaces Date: Wed, 13 Mar 2002 14:13:38

Re: mysterious leading spaces (same foreach problem w/ more details)

2002-03-12 Thread Joshua Hayden
- Original Message - From: James Woods [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, March 11, 2002 10:56 PM Subject: Re: mysterious leading spaces (same foreach problem w/ more details) I used the following code to write out all my hidden fields

Re: mysterious leading spaces (sample text included)

2002-03-12 Thread James Woods
all for your help so far! It's been educational Original Message Follows From: fliptop [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: James Woods [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: mysterious leading spaces (same foreach problem w/ more details) Date: Tue, 12 Mar

mysterious leading spaces (same foreach problem w/ more details)

2002-03-11 Thread James Woods
OK, I've got a form where I'm passing an array via a hidden form field. The problem is that (after submission) I'm getting a leading space at the beginning of each 'record' after the first. In other words, the first 'record' is being passed as it should be, but each other record is being

Re: mysterious leading spaces (same foreach problem w/ more details)

2002-03-11 Thread fliptop
James Woods wrote: That leading space is causing me headaches. when trying to do a foreach on the array, after submitting the form. instead of packing a huge array into one form var like this: input type='hidden' name='drawHidden' value='@Draw' why not pass it like this (in your html):

Re: mysterious leading spaces (same foreach problem w/ more details)

2002-03-11 Thread fliptop
James Woods wrote: I used the following code to write out all my hidden fields. It didn't get rid of the newline or caridge return characters at the end though. foreach my $item (@Draw){ my $counter = 0; my $daValue = $item; chomp($daValue); print input type='hidden' name='drawHidden'