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 SkipVought 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. MikeM2468

    Check error output from smtp.Send(mail)

    This seems to work: Imports System.Net.Mail Module MainTest Public Sub Main() MsgBox("Click OK ", 0, "This is a test!") 'get the hostname Dim strHostName As String strHostName = System.Net.Dns.GetHostName() 'create the mail message Dim mail...
  2. MikeM2468

    Check error output from smtp.Send(mail)

    I'm putting together a POC script just to test email functionality. The script works but I want to add some redundancy to it. In its current form, it sends an email using the IP address of an SMTP server (and it works as planned). What I need to do is to check that it worked and if it didn't...
  3. MikeM2468

    using rand() with an array lookup

    In your example, how would I get it to just spit out the first number that didn't match? All I'm trying to do is find one number that isn't matched. In my example, it is very unlikely that it would get past the first or second loop. I'm not so concerned about randomness, just as long as a...
  4. MikeM2468

    using rand() with an array lookup

    The following appears to work for what I need: $count = 1; $randomnumbers = array(); while ($count < 11) { array_push($randomnumbers, (rand(1000, 9999))); $count++; } foreach($randomnumbers as $rnumber) { $numberlookup = mysql_query("SELECT usednumber from usednumbers where usednumber...
  5. MikeM2468

    using rand() with an array lookup

    I need to use rand() to generate pseudorandom numbers. They won't be used for cryptographic purposes so the true randomness is not a concern - they just need to be different from previous ones. What I need to do is to generate numbers that do not appear in a mysql query. I thought I would...
  6. MikeM2468

    Need a button

    I've managed to fix it. What are all those footprint lines you added? I can't find any reference to that anywhere.
  7. MikeM2468

    Need a button

    The problem is that I neglected to show an included script that set the title for everything using the user_header.php. I thought, incorrectly, that it was insignificant. I've been using it all along and thus the problem. Here is the included script: <?php echo "<TITLE>VooDoo...
  8. MikeM2468

    Need a button

    I've narrowed down the problem. if: 1. A TITLE tag is placed in the user_header.php and 2. Sessions are used to get the user for ajaxserver.php The alert box doesn't work. if: 1. A TITLE tag is placed in the user_header.php and 2. $user is defined directly without enabling the session in...
  9. MikeM2468

    Need a button

    I didn't look at the net pulldown. I was on Console. This is on the response tab with XHR selected: <pre>Current session data: Array ( [user] => bill [access] => 1 [timeout] => 1389704898 ) </pre><pre>Finished parsing user_header.php</pre> {"result":"ok","data":"1234"}
  10. MikeM2468

    Need a button

    I don't see XHR anywhere.
  11. MikeM2468

    Need a button

    I had a mistake in my final testing. I had $user = 'bill'; specified and the user_header was commented out in the ajaxserver. If I switch it, I get everything but the alert box.
  12. MikeM2468

    Need a button

    That seems to work. Is that it? Should be good? I'll have to go back and check that these new scripts don't break other stuff that uses them. Thanks.
  13. MikeM2468

    Need a button

    I broke that when I moved things for testing. I still don't see anything for XHR. I get: connected to db done sessions selected database user is allowed secretvoodoo query done {"result":"ok","data":"1234"}
  14. MikeM2468

    Need a button

    Firebug shows only one thing: ReferenceError: $ is not defined formpage.php?id=1001()formpa...id=1001 (line 13) $(document).ready(function(){ Here is the source for the HTML. <!DOCTYPE HTML> <html> <pre>Current session data: Array ( [timeout] => 1389629321 [user] => bill [access]...
  15. MikeM2468

    Need a button

    Doh! Sorry. After login, I get: Current session data: Array ( [timeout] => 1389628547 [user] => bill [access] => 1 ) Finished parsing user_header.php When I hit formpage I get the same. When I add the ?id=, I get the same but the button shows up. When I click the button I...
  16. MikeM2468

    Need a button

    After I login, it just goes to a blank page. I think there's a problem with the auth. I get a new error in the php log. [13-Jan-2014 10:02:58] PHP Parse error: syntax error, unexpected T_VARIABLE in C:\test\ldap.php on line 3 Here is the ldap.php that I forgot to post earlier. <?php...
  17. MikeM2468

    Need a button

    The first time I hit formpage directly, with no id, I get Current session data: Array ( ) Unauthorized Access REDIRECT SUSPENDED FOR DEBUGGING The second time I hit it, I get Current session data: Array ( [timeout] => 1389622536 ) Unauthorized Access REDIRECT SUSPENDED FOR DEBUGGING
  18. MikeM2468

    Need a button

    Before I change anyting. I don't think your version of user_header is working at all. I get no prompt to login.
  19. MikeM2468

    Need a button

    Adding the id works as expected too. {"result":"ok","data":"1234"} When I hit formpage with or without commenting that line, I get nothing if the user_header is included. Without it, I get the button but it doesn't work.
  20. MikeM2468

    Need a button

    When I hit ajaxserver directly I get {"result":"error","errorMessage":"No ID provided."}. an expected result. Firebug shows nothing. The button on the formpage doesn't work, but is that expected? Firebug shows nothing. Here are the other scripts. dbconnect.php <?php $username="vduser"...

Part and Inventory Search

Back
Top