Question : username php script - how to point it to an excel list

i have the following php username that i am using

http://roshanbh.com.np/2008/04/check-username-available-ajax-php-jquery.html

it works good and i see the php script like this example.

the question is, instead of having to fill the names in the following php script,
can i save an excel page like the image attached and have the script look at that?

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
<?php
//  Developed by Roshan Bhattarai 
//  Visit http://roshanbh.com.np for this script and more.
//  This notice MUST stay intact for legal use

//this varible contains the array of existing users
$existing_users=array
(
'roshan',
'mike',
'jason',

); 
//value got from the get metho
$user_name=$_POST['user_name'];
//checking weather user exists or not in $existing_users array
if (in_array($user_name, $existing_users))
{
	//user name is not availble
	echo "no";
} 
else
{
	//user name is available
	echo "yes";
}
?>
Attachments:
 
 

Answer : username php script - how to point it to an excel list

Another solution can be using vpn-filter:

access-list filter permit tcp 10.254.254.0 255.255.255.0 host 192.168.100.2 eq 80
access-list filter deny tcp 10.254.254.0 255.255.255.0 host 192.168.100.2
access-list filter permit ip any any

Assuming that u r using DfltGrpPolicy as the group-policy for remote-access:

group-policy DfltGrpPolicy attributes
 vpn-filter filter

The advantage of using vpn-filter is that it will not even allow denied traffic to go to local network. Whereas, in the other method, only the reply from the local-network is denied. The local network will still be getting requests which is meant to be denied.
Random Solutions  
 
programming4us programming4us