Kristina, This is how my code works...
my @oofmsg = param('oofmsg'); print<<HTML; </tr> <tr> <td vAlign="top" width="89" height="150"> <p><b style="font-weight: bold; font-size: 13px; color: #666666; font-family: arial, helvetica">Out Of Office Message</b></td> <td vAlign="top" width="287" height="146" align="center"> <p><textarea rows="11" name="oofmsg" cols="41">@vac</textarea></p> <p> </td> </tr> <tr> <td vAlign="top" width="381" height="14" colspan="2"> <input type="hidden" value="$uname" name="uname"> <input type="hidden" value="@oofmsg" name="offmsg"> <input type="hidden" value="xcrud" name="action"> <input type="image" alt="Add User" src="$imageDIR/submit.gif" align="right" width="119" height="36"> </td> </tr> </form> </table> HTML Something similar to the following... Now the only problem I am having is when @vac is displayed in the text box. The formatting isn't correct. Ie there is spaces in front of each new line except the first line.... Hello world Dan Now the text file vacation.txt doesn't look like this? Any more ideas? Dan -----Original Message----- From: Kristina Nairn [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 December 2001 3:14 PM To: Daniel Falkenberg; Peter Scott Cc: [EMAIL PROTECTED] Subject: Re: Format of array in HTML text box gone weird... Try the following code: undef $"; print "@lines"; $" = " "; #there's a space between the two double quotes Otherwise you could just do this: print @lines; #without the double quotes default is no space or anything else That is to say if indeed you've got a 'print "@lines";' thing going on. Please include your perl code in your post. Cheers, Kristina ----- Original Message ----- From: "Daniel Falkenberg" <[EMAIL PROTECTED]> To: "Peter Scott" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, December 16, 2001 10:01 PM Subject: RE: Format of array in HTML text box gone weird... Peter, That is exactly what it does but is there any way to get rid of that? Regards, Dan -----Original Message----- From: Peter Scott [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 December 2001 2:28 PM To: Daniel Falkenberg; [EMAIL PROTECTED] Subject: Re: Format of array in HTML text box gone weird... At 02:23 PM 12/17/01 +1030, Daniel Falkenberg wrote: >Just working on some HTML stuff at the moment and I have a come across a >little problem that I don't really understand.... > >Basically I place the following ararry (really only text) into a >scrolling text box but when the text array is seen through the text box >it looks like the following... > >Normal text file.. > >Hello world > >How are you? > >Dan > >This is how it looks in the scrolling text box... > >Hello World > > How are you? > > Dan > >Why is there all those spaces infrom on the How are you and Dan line.... If you don't provide the code you use to do it you force us to use clairvoyance to try and tell what you might be doing wrong. I am going to guess that you have done something like print "@lines" which will result in a space being put between each element of the array... -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]