Re: netscape problem !!!

2002-04-01 Thread Michael Kelly
On 4/1/02 9:13 AM, Aman Raheja <[EMAIL PROTECTED]> wrote: > Hi all > I have created a cgi-perl script for a web-site. I am using cookies and > mysql for database on a Linux box. > When my page is called in IE, it works great, but Netscape throws out the > whole HTML code. > Now, if I copy this co

Script for submitting to search engines - off topic

2002-04-01 Thread Octavian Rasnita
Hi all, Sorry this message is a little (or more) off topic. I want to make a script for submitting a web site to more search engines. Can you help me with such a script? I don't have the addresses used for submitting and I would like to see a code too. Thank you very much. Teddy, My dear email

Re: netscape problem !!!

2002-04-01 Thread Connie Chan
You may try this as header : print "Content-type: text/html\n\n"; - Original Message - From: "Aman Raheja" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 02, 2002 1:13 AM Subject: netscape problem !!! > Hi all > I have created a cgi-perl script for a web-site. I am us

Re: 1 or 2 decimals

2002-04-01 Thread Tagore Smith
Octavian Rasnita > Hi all, > > I have a number with a lot of decimals but I want to have it only with 1 or > 2. > I don't want 3.1415... etc, but only 3.1 or 3.14. > > Can you give me some hints what should I do? Try: my $var1=3.1415926; my $roundedvar=sprintf "%.2f", $var1; print $r

netscape problem !!!

2002-04-01 Thread Aman Raheja
Hi all I have created a cgi-perl script for a web-site. I am using cookies and mysql for database on a Linux box. When my page is called in IE, it works great, but Netscape throws out the whole HTML code. Now, if I copy this code and save it in a file as xyz.html, it works perfect in Netscape.

Re: 1 or 2 decimals

2002-04-01 Thread Joshua Hayden
Why not use the sprintf or printf function? # Assigns 3.14 to the $decimal variable my $decimal = 3.1415; $decimal = sprintf('%.2f', $decimal); # Prints 3.14 my $decimal = 3.1415; printf('%.2f', $decimal); # Prints 3.1 my $decimal = 3.1415; printf('%.1f', $decimal); You get the idea... Best R

Re: 1 or 2 decimals

2002-04-01 Thread Funky - linux
You can use Format:Number module to make such kind of modifications, or you can write fonctions for it but it 'll take more time sure:) funky from Istanbul - Original Message - From: "Octavian Rasnita" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 01, 2002 12:36 PM Sub

RE: Resubmit?

2002-04-01 Thread Jessica Ortiz
First of all is there a website that you recommend as a reference guide or manual to topics like what you are explaining below? Second, how does one go about tying in a cgi script to a submit button and how would I go about making the 'submit' button capable of deleting a table when a user pre

1 or 2 decimals

2002-04-01 Thread Octavian Rasnita
Hi all, I have a number with a lot of decimals but I want to have it only with 1 or 2. I don't want 3.1415... etc, but only 3.1 or 3.14. Can you give me some hints what should I do? Thank you. Teddy, My dear email address is [EMAIL PROTECTED] ___

RE: Limit floating point numbers?

2002-04-01 Thread David Gray
> I have got most everything working ok. Now I need to go back > over almost 2500 lines of code and fix my floating point > number so they read 1.25 instead of 1.2556. Which should > round out to 1.26 What text editor are you using? Can you just do a search and replace? If that's not what you

Re[2]: Potential vulnerabilities from user-uploaded HTML code

2002-04-01 Thread Toomas Vendelin
Hello Marty, Thanks for advice. Honestly, I haven't considered this possibility, and now I am thinking why. First, your suggestion presumes that the "other end webmaster" has to have at least an elementary understanding of Unix, permissions, and other command-line stuff which is, true, quite sim

Re[2]: Potential vulnerabilities from user-uploaded HTML code

2002-04-01 Thread Marty Landman
At 02:29 PM 4/1/02 +0200, Toomas Vendelin wrote: >First, your suggestion presumes that the "other end webmaster" has to >have at least an elementary understanding of Unix, permissions, and >other command-line stuff which is, true, quite simple, but can make a >FrontPage >weekend user hystericall

Re: How To Get Rid Of Excess Blank Lines at The End Of File?

2002-04-01 Thread Patrick Diffley
This may help..a very basic file I/O open(INFILE,"yourfile"); open (OUTFILE,"outfilename"); while ($line=) { chomp $line; next if ($line eq ""); print OUTFILE $line; } You could also slurp it into an array, but - Original Message - From: "Kim, Kiseok" <[EMAIL PROTECTED]> To: <[EM