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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dooley28

    Prevent web-browser auto-populating username/password field

    No problems, I did do some (obviously somewhat)extensive searching and asked a couple of people. I think I may have had something like disable browser auto-enter in my search because I was finding it annoying/surprising that I came up with nothing. Now in my searches I find it difficult to not...
  2. dooley28

    Prevent web-browser auto-populating username/password field

    How was I know to know the tag attribute was called autocomplete? With that knowledge I probably wouldn't have needed to ask. Seemed more like an autofill, an autocompleter being the javascripty tool to produce a list of options based on what you type.
  3. dooley28

    Prevent web-browser auto-populating username/password field

    Thank you both for your responses, My problem is my users will likely not know how to turn this stuff off in there browsers settings, so a server-side solution is nice. For now I think I'll use the autcomplete=off for the moment and test how it goes, if needed I guess I could generate the...
  4. dooley28

    Prevent web-browser auto-populating username/password field

    I have a problem with a web application Im working on. When a user logs in, firefox will auto-populate the username and password, this is fine however on the "user edit" page if a user wishes to update their details, firefox will auto-populate the variables here too. I haven't tested this on...
  5. dooley28

    Return multiple Javascript calls

    Sorry just realised there is an unrelated error in this code This xmlHttp.onreadystatechange=stateChanged() should be this. xmlHttp.onreadystatechange=stateChanged Any help would be very much appreciated!
  6. dooley28

    Return multiple Javascript calls

    Sorry about this question I'm new to Javascript. I'm trying to call a Javascript function from a loop, which in turn calls some php with echos out some information. In this loop I have multiple drop down menus and for each drop down menu I want the php print-out to be displayed beneath...
  7. dooley28

    Passing argument to perl from command line

    GetOpt does actually seem pretty cool, something I would definitely use in the future but way more than I need its just a simple string I needed passed. :D
  8. dooley28

    Passing argument to perl from command line

    No wait actually quote and $ARGV[0] worked grand. Thanks folks!
  9. dooley28

    Passing argument to perl from command line

    Cheers that join worked perfectly Travs. I gave putting the arguments into quotes a try but no luck, wouldn't work....
  10. dooley28

    Passing argument to perl from command line

    Ah thanks for the reply. I was focusing on the fact that it the input has spaces might be causing a problem, I missed the $0 completely. To solve that I wrote the above I wrote. $numArgs = $#ARGV + 1; print "thanks, you gave me $numArgs command-line arguments.\n"; $input=NULL; foreach $argnum...
  11. dooley28

    Passing argument to perl from command line

    Hey all, I'm trying to execute a perl script from php and I want to pass a string via command line. However it's not liking my syntax which im sure is wrong. I execute the perl script from php like this. $stringvariable="This is a string"; exec('perl script.pl $stringvariable',$result); And...
  12. dooley28

    Perl cannot see mysql module

    Thanks for your help everyone. I gave up an just replaced the calls with DBI. Yeah I saw how easy it was to change the calls to different db type. That's a nice touch. :D
  13. dooley28

    Perl cannot see mysql module

    So I have to change all my mysql calls....
  14. dooley28

    Perl cannot see mysql module

    Hi all, I'm having an issue connecting perl to mysql. I was coding perl a while back and left it for a bit. Now that I've come back the code won't work as it doesn't see mysql. When I use use Mysql; Which I used before, it see's it as an immediate error in my syntax. I noticed that...
  15. dooley28

    Passing hashes into subroutines

    Yeah I really should have gone with strict, but the script wasn't going to be that long, so I was a bit lazy. Regretting it now. :p Cheers for spotting that, never noticed I wasn't processing a reference, probably because for some reason the code was cycling through a working hash and I never...
  16. dooley28

    Passing hashes into subroutines

    Kevin, I'm not sure what you find wrong with this line. while(($word,$freq) = each(%answerarray)){ But it works for me. When I pass in the scalar $totalqwords, not a reference the value stays at 0 when I increment it in the subroutine. while($record = $sth2->FetchRow) {...
  17. dooley28

    Passing hashes into subroutines

    %wordswithfreq; while($record = $sth2->FetchRow) { $ref_to_wf=\%wordswithfreq; wordsandfreq($ref_to_wf,\@myArray,\$totalqwords); } sub wordsandfreq{ my ($answerarray, $records, $totalqw ) = @_; @temprecs = @$records; foreach $temp (@temprecs){ $found=0...
  18. dooley28

    Passing hashes into subroutines

    I see what you mean but, when I pass an empty hash reference into the subroutine and set it to $answerarray, when I use: $answerarray->{$temp}=1; the hash its referencing is never set. When I use this $answerarray{$temp}=1; the key is at least set, the value isn't however.
  19. dooley28

    Passing hashes into subroutines

    Hi, I'm trying to pass a hash into a subroutine a few times. When I pass the hash in I use $ref_to_wf=\%wordswithfreq; then pass the $ref_to_wf to the subroutine. In the subroutine I set the reference to $answerarray. When I want to modify a value in the hash, say $answerarray->{$temp}++...
  20. dooley28

    Remove all but characters

    I assumed split would be the most efficient way of doing things too and went with that. Grep seemed a little overkill for what I needed, but thanks for the suggestion.

Part and Inventory Search

Back
Top