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...
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...
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...
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...
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...
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...
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...
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"}
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.
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"}
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]...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.