Username checker HELP

FIRST SORRY TO MY ENGLISH :D
my problem it's simple :D
I have a username checker in ajax that work but i have
problem to the dreamweaver insert in the database.
I want than if the username it's already in use, the insert
in the database stopping, and if the username is available the
insert run.
This is the code:
Ajax script in the main page
<script language="javascript">
function OnChangedUsername()
if(document.modifica_dati_utente.username.value == "")
document.modifica_dati_utente.modifica_dati_utente.disabled
= true;
else
document.modifica_dati_utente.modifica_dati_utente.disabled
= false;
function createRequestObject() {
var ro;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
ro = new ActiveXObject("Microsoft.XMLHTTP");
}else{
ro = new XMLHttpRequest();
return ro;
var http = createRequestObject();
function sndReq() {
http.open('get',
'ajax_username.asp?username='+document.modifica_dati_utente.username.value+'&id_cliente=' +document.modifica_dati_utente.id_cliente.value);
http.onreadystatechange = handleResponse;
http.send(null);
function handleResponse() {
if(http.readyState == 4){
var response = http.responseText;
var update = new Array();
if(response.indexOf('|' != -1)) {
update = response.split('|');
document.getElementById("username_chk").innerHTML =
update[0];
</script>
ASP PAGE WITH RECORDSET
<%@LANGUAGE="VBSCRIPT"%>
<!--#include virtual="/XXXXXXXXXXXXXXXXXXX" -->
<%
Set username = Request.QueryString("username")
Set id_cliente = Request.QueryString("id_cliente")
%>
<%
if Request.QueryString("username") <> "" then
%>
<%
Dim chk_username
Dim chk_username_cmd
Dim chk_username_numRows
Set chk_username_cmd = Server.CreateObject ("ADODB.Command")
chk_username_cmd.ActiveConnection = MM_XXXXXX_STRING
chk_username_cmd.CommandText = "SELECT * FROM dbo.XXXXXXX
WHERE username = '"& username &"' AND id_cliente <>
'"& id_cliente &"'"
chk_username_cmd.Prepared = true
Set chk_username = chk_username_cmd.Execute
chk_username_numRows = 0
If chk_username.EOF = False then
response.write "<strong><font
color=""#990000"">L'USERNAME E' GIA IN
USO</font></strong>"
Else
response.write "<strong><font
color=""#009900"">USERNAME NON IN
USO</font></strong>"
End if
%>
<%
chk_username.Close()
Set chk_username = Nothing
%>
<%else%>
<% response.write ""%>
<%end if%>
The insert in the Database use the classic dreamweaver code.
To call the script use: onblur="sndReq()" in the textfield
IMPORTANT: I use the spry to validate other textfiled in the
form
Thank a lot

I may be missing something here, but why in the world do you need to write out a username/password, then just go ahead and read it right back again?

Similar Messages

  • I have mac 10.6.8 and safari 5.1.10. on checking help website i am told latest flash player 16.0.0.305 is already installed BUT is not listed in my applications and unable to access sites requiring flash player. can anyone help?

    i have mac 10.6.8 and safari 5.1.10. on checking help website i am told latest flash player 16.0.0.305 is already installed BUT does not appear on my list of applications and am unable to access websites requiring it. have also downloaded flash player installer app but unable to download the flash player itself. can anyone help? thank you!

    Hi Anne,
    Your version of Safari is still supported.  Please see Adobe Flash Player | Tech specs for supported OS and browsers.
    If the Flash Player plugin is in the Plug-ins (disabled) folder it's because it's an older version that Apple has disabled in Safari.  This has nothing to do with whether or not Flash Player supports the browser.
    I'm not sure what you mean by "when i click on flash player itself i am told there is no application to open it."  Flash Player.plugin only works in the browser to view Flash content in the browser.  The plugin does not open files outside of the browser.  If you have SWF files you'd like to view outside of the browser, then you'll need the Flash Player projector. However, based on your previous comments this doesn't appear to be what you are trying to do.
    Google Chrome does embed Flash Player in it, while Firefox does not.   Mozilla has also recently started blocking older versions of Flash Player in Firefox similar to what Apple is doing in Safari.
    Following the 'clean install' instructions should result in you having the latest version of Flash Player installed that will not be blocked by the browser.
    Maria

  • HP Support Assistant stopped working after HP Network Check Helper was installed

    My computer model: HP Pavilion SlimLine s5-1160 desktop with Windows 7 64-bit Media Center
    While I was away from my computer this morning HP installed HP Network Check Helper. When I returned there was a message that I needed to restart the computer. Upon restarting I received the same message. After trying several more times I disabled the helper using Manage Add-ons, but the restart computer message keeps appearing. When I tried to open HP Support Assistant it would not open, but instead the restart message popped up. In HP Setup Manager I clicked on Get Assistance, then Launch Support Assistant, and got....the restart message. If I open HP's Windows Help and Support and click on "Contact Support (Get in touch with someone at HP)" I get....the restart message. I re-installed HP Support Assistant with the latest version on the the HP website. Upon restarting the computer I got....the restart message.
    So, the computer keeps telling me I need to restart it, HP Support Assistant will not open, and I can't obtain an HP support number to call by clicking on "Contact Support (Get in touch with someone at HP)". Does anyone know a number I can call to "Get in touch with someone at HP"?
    Thanks.
    This question was solved.
    View Solution.

    Sorry you're having the problem with your PC.
    If you haven't been able to contact HP yet here is the number:
    800-474-6836 (800 HP invent)
    My response is my own and not HP's.
    If this solves your issue please mark "Accept as Solution."
    Click on the white Kudos star to show your appreciation.

  • HP Network Check Helper

    HP Support Assistant indicates that "Restart needed" and also "HP Network Check Helper" add-on asking whether to Enable or Don't Enable. What is the HP Network Check Helper?
    This question was solved.
    View Solution.

    Hi,
    The "HP Network Check is a comprehensive network diagnostic that can automatically diagnose, repair and easily help you troubleshoot the issue that is preventing your network or Internet from functioning correctly."
    The HP Network check is part of the HP Support Assistant.  Is the above what you are referring to?
    You will find HP Network Check under the Internet and Security topics in latest version of HP Support Assistant.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • I have a problem with IOS 7 when I am installing app on App Store. I must read and accept new terms and condition. However, I read all new terms that I don't see Agree button to accept. Can you check help me this problem?

    I have a problem with IOS 7 when I am installing app on App Store. I must read and accept new terms and condition. However, I read all new terms but I still don't see "Agree" button to accept. Can you check help me this problem?

    If it says 'Open' in the App Store, then it's on your device.  What happens when you press the 'Open' button in the App Store?
    The App is on your phone, somewhere.  Use Spotlight to find it, or you can reset your Home Screen layout, and then you'll definitely find it.

  • Username-Password help

    I need to make a username and a password output to a file and then input again to check if a password and username combination is right in order to have access to a certain class. If anyone knows of a tutorial for doing something like that or any example code that would be awesome. Thanks in advance for any help.

    I may be missing something here, but why in the world do you need to write out a username/password, then just go ahead and read it right back again?

  • Spell checker help, PLEASE

    I have a MacBook Pro Unibody with OSX 10.6.8, and my spell checking system went away.  I also have cocoAspell 2.1 installed too. Neither one is working. I'm not sure what I'm doing wrong, but what I REALLY LIKES was having all of my misspelled words and grammatical errors show up with a red line underneath them. That's the way it used to be. The red lines showed up in Word, Mail, or any other text entry application. I tried re-installing cocAspell and still nothing. When I control-click on a text entry fiels the MANUAL spell checker window opens up, but it's blank and catches nothing. Help - I don't knonw what I'm doing wrong, and my spelling *****! It's embarrassing. I need advice on finding a fix, whether it's in OSX or an inexpensive 3rd party spell checker (I can't find any under $35)
    Thanks for Any help you can provide.
    Message was edited by: SFjoe1966

    Open Safari in iPhone, and open a new browser (very important!). Now tap the Google search field and start typing the word you want to add to the dictionary. Tap “Google” button to launch the search. Now you can close Safari, and the word should be in your dictionary.

  • Reality check -Help with MBP 13' purchase

    Hello guys,
    I live in a country without Apple store, all information I get is from the Internet.Hopefully someone could help me. I would like to know if it is worth buying 2011 13' macbook pro I need reality check. I'm a photographer and I use Aperture and CS5 photoshop every day. Will it work smoothly on MBP 13' 2011 ??
    - I have 2006 15' MBP works very well, but a bug crawled into my LCD, and bugger died there nicely in the middle.
    I would like to have, good future proof machine that would last another 5 years.
    Core i5 or I7?  I can not afford large ssd ( I need min. 500GB ssd ). In many forums, people talk about redesign in late 2011 ..etc.
    Which model should i buy?

    I surprised nobody answered you yet. If your main goal is working with photography or photos, you should get the Macbook Pro 15" 2011 i7 model. The 13" MBP has a really low screen resolution compared to all other laptops these days 1200x800. The 15" model is 1440x900 in the stock configuration. The 13" does not have enough real estate on the screen to be useful for photo editing. Also, it lacks a discrete graphics card. You must rely solely on the Intel HD 3000 internal graphics.
    If you get either 15" model, the cheaper one has an AMD HD 6490m discrete card and the high end model has the AMD HD 6750m. You can still use the Intel HD 3000 to save battery life, but the 15" models give you more pixels on the screen and much better graphics processing.
    The new Intel HD 3000 is not bad, it is "good enough"... but "good enough" for now will be out of date "sooner than later". The 15 inch models provide much more flexibility and are much more future proof. I owned the original Core Duo Macbook in 2006 and it had the same 1280x800 resolution 5 years ago. It was never enough for serious work.
    Also you could consider the 2011 Macbook Air if you only care about price and don't want the discrete graphics card. There is a 13" model with 1440x900 resolution and it has the option for i7 and comes standard with a 128GB or 256GB SSD on the top model. All models except the lowest end have 4GB of RAM standard too.

  • Printer check help

    I used to use versa check for printing my checks on my reg pc, but I recently purchased a mac and I can't seem to find any kind of software to print checks from my computer.
    Can anyone help me find something to use? I use quicken/quickbooks and I need to create checks with my bank name and info on it.
    TIA

    If there is such software you may well find it at VersionTracker.

  • USSD balance check help

    My network operator hes implemented new way of checking my balance. Now it uses USSD . First you send a kod *797# and you get menu to choose from some options (balance check, fun, news... ). I then replay with 1 to get my balance check. Another menu comes to choose (current balance, last month, etc.) and again I replay with 1 ti get current balance. THIS IS THE POINT that things go wrong, instead of info about my accoount , message pops up "GENERAL: ALREADY IN USE !" and back to my standby screen. Finaly after 15-20 seconds new messagee pops up saying "Done". Does any one have a clue whats wrong?

    USSD is implemented by your network and your phone is a simple terminal accessing the functions.
    If something is going wrong then you should call your network operator.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • Availabilty Check (help required)

    Hi
    I am using availabilty check 02 and checking rule A. The problem i m facing is that the system is showing the stock in MMBE stock report and even the stock is reserved against previuosly created order but when i run again the Availabilty Check one Specific location against which the stock is already confirmed and its shown in MD04 report as well system is unconfirming the stock now
    But this is happening for only one store and for 2 material only and the stock is available
    The setting in IMG for Availabilty Check Controls 02 SD Order (A) are standard
    We also Implemented Production Planning here and they r using Availabilty Check PP
    Kindly all of u there help system is going to be live in 3 days time.

    Hi,
    Plz check any delivaries or reservations had made against that order and check the storage location.etc.

  • I have three user accounts on one computer. On only one account when I when I check Help - About fire fox only one user account says apply update and won't apply. The other two work fine.

    One of three user accounts on the same computer appears to not be updating to 8.0.1 correctly. One admin and one none admin user account says it is up-to-date. The other non-admin user account, under Help About Firefox says apply update, but won't.

    As long as you installed MS Office into its default location (the top level /Applications folder) it will be available to all user accounts on the Mac.
    As far as licensing is concerned you only have to enter the license code once, which you should do right after installing MS Office, in the same admin account you installed it from, by opening any one of the MS Office applications.  There is no additional licensing required for additional user accounts on the same Mac.
    Each user account is able to run the Office apps.  The only thing you will have to do is go through an initial setup screen in each user account (but this setup does NOT involve entering any additional license codes).
    You may have problems if you installed MS Office in a particular user account (i.e. NOT in the top level /Applications folder).

  • Spell Check Help

    Is there a way for Pages to recognize accidental doubled spaces within spell check?

    Joseph,
    As you probably know, the Find tool is good at locating, and replacing, the accidental double-space.
    Jerry

  • I need to update a table with three conditions to check help me to solve this?

    GO
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    DROP PROCEDURE [dbo].[HRM_AssignInsuranceUpdate]
    GO
    CREATE PROCEDURE [dbo].[HRM_AssignInsuranceUpdate]
    @ID INT,
    @InsuranceTypeID BIGINT,
    @CompanyID BIGINT,
    @EmpID BIGINT,
    @InsuredObject NVARCHAR(250),
    @PolicyNumber NVARCHAR(250),
    @StartDate DATE,
    @ExpiryDate DATE,
    @Remarks NVARCHAR(MAX),
    @UpdatedBy NVARCHAR(150)
    AS
    BEGIN
    IF NOT EXISTS (SELECT * FROM dbo.HRMAssignInsurance WHERE InsuredObject = @InsuredObject
    AND InsuranceTypeID = @InsuranceTypeID AND CompanyID = @CompanyID AND IsActive = 1)
    BEGIN
    UPDATE HRMAssignInsurance
    SET InsuranceTypeID=@InsuranceTypeID,
    CompanyID=@CompanyID,
    EmployeeID=@EmpID,
    InsuredObject=@InsuredObject,
    PolicyNumber=@PolicyNumber,
    StartDate=@StartDate,
    ExpiryDate=@ExpiryDate,
    Remarks=@Remarks,
    UpdatedBy=@UpdatedBy
    WHERE ID = @ID
    SELECT @ID
    END
    ELSE
    BEGIN
    SELECT 0
    END
    END

    If you're using SQL Server 2008 and up, use MERGE command to incorporate your conditions into one command.
    Other wise change your query 
    to
    IF EXISTS (SELECT * FROM dbo.HRMAssignInsurance WHERE InsuredObject = @InsuredObject
    AND InsuranceTypeID = @InsuranceTypeID AND CompanyID = @CompanyID AND IsActive = 1)
    Thanks, 
    Shridhar J Joshi
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

Maybe you are looking for

  • Inline and floating objects

    I have imported some images as floating objects and now I want to change them into inline objects. I have selected the object, but I can not get them to change. I have tried the menu bar button as well as the inspector, but nothing works.

  • How can I determine the number and resolution of the current displays/screens?

    I am developing a vision application that will require a specific window size, thus the application must run with the screen resolution at predified levels. It is also possible that the application will run on a system with multiple monitors, so I ne

  • Skylanders battleground I can not access. Please help me

    Anyone can help me

  • Smartform For PO

    Hi All, I am working on a Smartform for the PO. We have a requirement to print the INFO RECORD PO TEXT on the form. I am able to print the hard coded texts on the form, but the problem comes when we have to print the standard texts on the form. I hav

  • How do I export character styles as XML?

    I have a load of InDesign CS4 files. They contain paragraph styles, but do not appear to have any explicit character styles, though do contain content that is rendered as italic, bold, superscript content etc. I have associated the paragraph styles w