Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by madaxe2

  1. madaxe2

    RANDOM NUMBERs between 1 and 52

    ok , things are now randomly clear but how do i make sure that the nine random numbers i choose all come out un equal to each other? Madaxe
  2. madaxe2

    RANDOM NUMBERs between 1 and 52

    Sorry Am i just beign dumb...blond ...english....male...etc....hahaah...but is'nt that the whole idea of """"RANDOM"""" i should not have to mix up me numbers?? MAdAxe
  3. madaxe2

    RANDOM NUMBERs between 1 and 52

    I can generate random numbers between 1 and 52 but i want 9 differing numbers my code is below how can i ensure that all nine numbers are differant my $lower=1; my $upper=52; my $random1 = int(rand( $upper-$lower+1 ) ) + $lower; my $random2 = int(rand( $upper-$lower+1 ) ) + $lower; my...
  4. madaxe2

    Changing Table background colour to alternate cgi script

    FIXED IT foreach my $i (@data) { chomp($i); my ($TTITLE2,$NAME,$DATE,$POST) = split(/\|/,$i); $backcol = "#898181" if ($colindex eq 1); $backcol = "#863838" if ($colindex eq 2); print qq(<tr> <th width="25%" nowrap="nowrap"><FONT COLOR=#DCD9D9" SIZE="4">$NAME</font></th>...
  5. madaxe2

    Changing Table background colour to alternate cgi script

    OK IM BEING THICK the last two if statement are fighting with each other if $colindex = 1 the it adds 1 so now $colindex = 2 but the next line says that if $colindex = 2 the it subtracts 1 so now $colindex = 1 so $colindex will always equal 1 thus my colour stays the same any body got a...
  6. madaxe2

    Changing Table background colour to alternate cgi script

    OK I added "" around the #252626 and the cgi runs now but the colours dont change in the background of the table MADAXE
  7. madaxe2

    Changing Table background colour to alternate cgi script

    I have preset "my $backcol = #262525; and my $colindex = 1;" There is something wrong with my syntax but i cant work it out MADAXE foreach my $i (@data) { chomp($i); my ($TTITLE2,$NAME,$DATE,$POST) = split(/\|/,$i); $backcol == #262525 if ($colindex eq 1); $backcol ==...
  8. madaxe2

    AAARRRRRRRRRYYYYYYYY&quot;SSSSS HELP

    CHEERS EARS IM A BRIT IF YOU HADNT NOTICED GOT SOME NICE APPLES AND PEARS IF YOUR INTERESTED OH BYE THE WAY TA IT WORKED GREAT AND I MUST BE GETTING BETTER COZ I CAN C WHERE U IS AT AND HOW THE CODE WORKED. THANKS TO ALL OF U'S THAT HELPIN ME OUT. MADAXE
  9. madaxe2

    AAARRRRRRRRRYYYYYYYY&quot;SSSSS HELP

    Trying to increment a specific value on a specific line in an array by 1 everytime the page is viewed. My code does not error but it does not work MADAXE foreach my $moddata2 (@data2) { chomp $moddata2; my ($TTITLE3,$COMMENT3,$NOPOSTS3,$PUSER3,$LOOKS3,$DATE3,$VUSER3,$ICON3,$tlink3) =...
  10. madaxe2

    href to a cgi script with file info

    ok im confused i need an href to exec my cgi but i need the name of the href to tell the script which file to grab. How does CGI.pm help me and how do i replace my href to make all this work MADAXE REALLY CONFUSED.....
  11. madaxe2

    $ SUBSTITUTION NOT BEING DONE

    WHAT IS CGI.pm MADAXE
  12. madaxe2

    href to a cgi script with file info

    dont reply worked it out
  13. madaxe2

    $ SUBSTITUTION NOT BEING DONE

    I HAVE A PIECE OF CODE FOR READING A TEXT FILE AND EXTRACTING INFO BUT THE SCRIPT IS BEING SENT A URL POST I.E <a href="lookatthread.cgi?link=March-27-2005+CGI IS NOT LOGICAL+33"> THIS TELLS MY SCRIPT WHICH FILE TO GO AND READ THE NEXT STEP IS if ($ENV{'REQUEST_METHOD'} eq 'GET') {...
  14. madaxe2

    href to a cgi script with file info

    Ive been thinking and im thinking that the url should be built like this <a href="lookatthread.cgi?filename=$tlink"> but how do i extract the info in my cgi script MADAXE
  15. madaxe2

    href to a cgi script with file info

    Im trying to build a forum on my site i can create a new thread now when i click on the title of the new thread i want it to start a cgi script that will show the history of the thread all the posts which im storing in a text file a new line for each post and information about who posted and...

Part and Inventory Search

Back
Top