Check New Username

On the redirect page, is there a way to display the username they're tryingto register with?
Say I try to register using "GreatOne", and it already exist, how do I display the name "GreatOne" on the redirect page?

Heya Brachole,
I am also assuming you're using php. This may not answer your question but it may help. You may bypass the redirect if the username already exists for visitors that have javascript enabled. It will show the username availability in the text field as the user types the desired username. There's a demo of what I'm talking about at http://DwFAQ.info/signup_demo.php with a link to show how it's done.
For server side validation to show the username in the redirect page if the chosen username already exists you would have to create a session variable for the text field of the username on the registration form then echo that session variable onto the redirect page. You would only need to create a session variable if your loaded more than one page after the registration form. This is because forms with method POST only carry the value to the next page and then they are destroyed. So if you wanted to carry the desired username to more than one page after the registration form then you would have to create a session variable for the POST value of the username field then echo the session variable to show the chosen username on the page. You'd do this by adding this to the page after the registration form:
<?php
session_start();
session_register("username");
$username = $_POST['username'];
?>
That will create a session variable named $username from the POST value of username on the registration form.
Then on any page you wanted to show the chosen username you'd put this code on the very first line:
<?php session_start();?>
That starts the session for the page.
Then put this wherever you want to show the chosen username:
Sorry <?php echo $_SESSION['username']; ?> already exists.
That echos the session variable onto the page.
If it's just one page after the registration form then the POST value is still active and you can echo the POST value onto the page. Your code would look something like this:
Sorry <?php echo $_POST['username']; ?> already exists.
Where username is the name for the form field on the registration page that contains the username.
Look at this page for more information on how to create a session variable http://kb2.adobe.com/cps/165/tn_16563.html
Hope that helps!

Similar Messages

  • Check new username on update record

    I used the update form wizard to update records.
    I am giving the user an option to change his/her username
    from this form.
    The "check username" server behavior is only valid if I do an
    insert record, not an update.
    Is there a way to combine them? I've search and found
    nothing.

    David Powers wrote:
    > danilocelic AdobeCommunityExpert wrote:
    >> I haven't done it, but I assume that it does work.
    If it doesn't, then
    >> you'll need to hand code it, and I'd start off with
    looking at the
    >> check new user name code as a basis.
    >
    > The Check New Username server behavior (at least in PHP
    MySQL) is
    > appallingly bad. It does the job, but sends the user to
    a new page,
    > thereby losing all input data. In my "Essential Guide to
    DW CS3", I show
    > how to combine the Check New Username and Insert Record
    server behaviors
    > to work in a more user-friendly way. I also show how to
    apply the same
    > technique to an update form.
    Thanks for bringing this up David. Also, this issue is
    neither specific to this particular script nor limited to
    Dreamweaver generated scripts. Most form processing scripts that
    have any server side validation will have this same issue -- how to
    limit what the user has to reenter to correct whatever the
    particular issue was found. Not that you can't work around it, and
    it's fairly easy to work around (as I'm sure the examples in your
    book make it), if you know what you're doing.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Check new user SB and pureupload ASP user

    Hello,
    ASP
    I was wondering has any one used the dw SB "Check New
    Username" with
    pureupload.
    I have a form with a textfield and a file field. I want my
    user to add an
    image and an SKU. I want to be sure the sku is unique, I want
    to use the
    "Check New Username" but I cannot seem to get it to work.
    I am calling the vairable like this in my check new user
    query
    UploadFormRequest("picrefsku")
    if any one has done this before or can add any input am
    grateful
    regards
    k

    this is the code for the check new user
    this UploadFormRequest("ininbutt") is rfom the form button,
    when the form is
    submitted then this should be finred, but its not the case.
    <%
    ' *** Redirect if username exists
    MM_flag = UploadFormRequest("ininbutt")
    If (CStr(Request(MM_flag)) <> "") Then
    Dim MM_rsKey
    Dim MM_rsKey_cmd
    MM_dupKeyRedirect = "ffff.asp"
    MM_dupKeyUsernameValue = CStr(Request.Form("ggg"))
    Set MM_rsKey_cmd = Server.CreateObject ("ADODB.Command")
    MM_rsKey_cmd.ActiveConnection = MM_connpeepeek_STRING
    MM_rsKey_cmd.CommandText = "SELECT imagesku FROM
    piddle.ps_usr_image WHERE
    imagessku = ?"
    MM_rsKey_cmd.Prepared = true
    MM_rsKey_cmd.Parameters.Append
    MM_rsKey_cmd.CreateParameter("param1", 200,
    1, 45, MM_dupKeyUsernameValue) ' adVarChar
    Set MM_rsKey = MM_rsKey_cmd.Execute
    If Not MM_rsKey.EOF Or Not MM_rsKey.BOF Then
    ' the username was found - can not add the requested
    username
    MM_qsChar = "?"
    If (InStr(1, MM_dupKeyRedirect, "?") >= 1) Then MM_qsChar
    = "&"
    MM_dupKeyRedirect = MM_dupKeyRedirect & MM_qsChar &
    "requsername=" &
    MM_dupKeyUsernameValue
    Response.Redirect(MM_dupKeyRedirect)
    End If
    MM_rsKey.Close
    End If
    %>

  • Update record with check new user

    I have a page where the already registered member can create
    a username and password to access the secure part of my site. I
    need to be able to 1) check for uniqueness of username (no
    duplicates) , 2) validate my fields (password, confirm password,
    email address)
    Is there a way to apply the check new username behavior to
    the update record server behavior I have in place?
    thanks,
    Rob

    In the server behaviors panel with the submit button
    selected, from the (+) button choose User Authentication then Check
    New Username. There you can set uniqueness and requirements. From
    there, on the behaviors panel (not server behaviors), again with
    the submit button selected, select the (+) button and choose
    Validate Form. From there you can set requirements and validations.
    That should at least help.

  • Check if username/password is valid in database

    In this old thread:
    HTMLDB Connection Pooling with Oracle usernames
    sspadafo mentions that it is possible (at least for apex when processing a database account authentication) to check if a given username/password is valid in the current database. Look for " the login API will call a new function in the database to check a username/pw combination." in the above thread.
    Question: is this "function in the database" available to developers? if so, how to use it?

    Hello,
    and thanks for your answer. I'm aware of that old trick with 'alter user identified by values' but wish to avoid that, exactly for its drawbacks. I'm not creating a custom authentication solution, DB account is fine for me.
    I wish to provide users the ability to change their (database) password in the apex application (which of course uses database account authentication). Changing the password is trivial; but usually in a 'change ypur password' form the users are prompted for their current password too (it is for security reasons). So:
    1.user enters their current password and desired new password (twice)
    2.app checks if current password is valid <-here I hope to use the beforementioned DB function
    3.app issues the 'alter user identified by' statement

  • Apple continues to ask me to create a New Username

    I have nearly given up on Apple, and group them right in there with MS & Android. Nearly complete product, but not enough to make me buy again. Why can't software for the masses work properly, but thats another discussion...
    Apple ID entered, Create New Username, when I already have one that I couldn't remember.
    I've had the same issue with my Apple ID for the past year, as many others here have posted. Now when I wanted to post in this Community Support Arena, I couldn't because I could not get past this "Create new Username" issue. And since I couldn't access the community for help, I had to search elsewhere. Resulting in confirmation of the problem, not solutions for it.
    So, something strange happened. While searching/renewing my Apple ID/password (which was a confusing/misleading process). I kept coming across the screen indicating I had multiple email addresses attached to my Apple accounts. One old account had my old/alternate email address. I figured if I can't log on with my current address, then perhaps I should attempt with this old account. Very strange, but when I did this it worked, but it took me to my current user profile, displayed my existing Username and below it displayed my regular email address, which is the current email address I use, and not the one I logged in with. Short term solution of unknown origin.
    So when I leave tonight and log off, I don't know which email address to log in with next time, or if I'll be running in circles again. It takes a fair bit to confuse me, but I get tired and frustrated when simple things aren't simple, or simply don't work. Companies that like to pocket profits and produce a flawed product, seem to get away with it. Software just makes me sick. These companies are like Surgeons with their bad beside manners.
    Unfortunately, if everyone is equally as bad, they all win.

    Apple removed one of one of my last inquiries because it contained unwanted negative attention.
    They claimed it contained feedback or feature requests, that it won't capture the attention it deserves, when it actually contained an inquiry to my inability to connect my ipod touch, and complaints against their products. Protectionism at its finest. Perhaps another reason I'm looking for a different brand to support. Maybe I should have noted the lack of spell check inside this forum application. I'm curious to see what they'll do about this little post. Perhaps ban my account which is inaccessable anyway. That's been a source of unnecessary frustration for a year now. Go Apple! when its your time to shine and show professionalism, you push one off a cliff. Nice!

  • I have just created a new username and bought a new prepaid phone. I am being toldf I am not the account owner. Why is this?

    I have just created a new username and bought a new prepaid phone. I am being toldf I am not the account owner. Why is this

    Owner status on POST PAID is not the same as PRE PAID.
    on prepaid you can get any device you like.
    But you pay upfront.
    People on post paid get the advantage of reduced priced devices on contracts. Prepaid is no contracts.
    Any carrier will function the same way. Go online and check out Verizon pre paid policy and then look at the other carriers.
    Maybe prepaid from Walmart or Boost Mobile, or Cricket etc. would be best for you. Pay for all you can eat calling, texting and data for one low price. Say $45-$55  and buy the phones they offer.
    Good Luck

  • I have Iphone 4s, and the phone will activate itself again. How do I get changed Apple ID on my phone so that I get using the new username and password that is verified? I would like an answer as soon as possible ... Thank you very much.

    I have Iphone 4s, and the phone will activate itself again. This I have verified, but when I shall put this onto my phone, so the phone will not approve the newusername and password. How do I get changed Apple ID on my phone so that I get using the new username and password that is verified? Silly to buy a new phone just for this .... The phone is almost three years old. How long can weexpect this to last? I would like an answer as soon as possible ... Thank you very much.

    It sounds like your device might be in Activation Lock.  Is it asking your to enter in an Apple ID & password, but only showing you the first letter of the email address and then some dots? Example: j•••••@icloud.com?
    If so, do you recognize that email?  Do you have an Apple ID that fits the same format?  If so, then go to www.cloud.com, log in with that Apple ID & password, and see if under Find My iPhone it shows this device.  If so, turn off the device, then remove the device from the list.

  • After complete reset of iPod after lockout,  I cannot retrieve old gamecenter ID.  how can I use my old account for gamecenter now that we have had to create a new username?

    We had to create a new username for gamecenter using the same apple ID.  We want to use the old gamecenter account....we have purchased in-app items for those games and now have no access to that account.  How can I fix this?  Or am I just out of luck and start over with the new username.....

    You are running into the Activation lock and you need to enter the Apple ID and password for the account last used on the iPod.
    iCloud: Find My iPhone Activation Lock in iOS 7
    To recovery use of that account:
    Why do I see the message "This Apple ID has been disabled for security reasons” when I enter my password?
    This message means that someone was unable to sign in to this account multiple times. The Apple ID system will disable the account to prevent unauthorized people from gaining access to your information. You'll need to follow the instructions on My Apple ID to reset your password.
    If not successful, contact iTunes
    Contact iTunes

  • I have an old user name tht is no longer accessible. I access fierfox through a new user name. I have copied the profile from the old user name. Can I have 2 profiles from which to choose when using firefox in the under the new username?

    I have a user name on my computer that was tied in with the domain name of the server at my workplace. I would access Firefox under this user name. I have now changed jobs, and for good and obvious reasons can no longer utilize my previous company associated username.
    I have set up a new username on the same computer. When I access Firefox, all of my old bookmarks are gone, because Firefox does not recognize me under the new username as the same person. In the meantime, I have established new bookmarks under the new username.
    I have copied my profile from Firefox under my old username. Can I have two profiles under my new username and pick which one I want to use at that time when accessing Firefox?
    I am running Windows 7 Professional, with 4 gig ram, Intel i3 CPU, 2.13 GHz, 64 bit operating system, Firefox 7.0.1
    Thank you

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

  • My iPhone has my old email set up throught iCloud. How do I reset my new username with the device without deleting everything. And if I have to delete my old account, will everything (contacts, pictures, games, apps, etc.) be erased from my phone.

    My iPhone has my old email set up throught iCloud. How do I reset my new username with the device without deleting everything. And if I have to delete my old account, will everything (contacts, pictures, games, apps, etc.) be erased from my phone.

    Your old ID connects to an icloud account containing all your data (email, contacts, etc.)  If you then use a different ID, you will connect to a different account, which results in losing all your "apple" data, like emails, contacts, calendars, etc.
    However, Apple IDs are also used to connect to an itunes store account, with is different.  You can keep using the old itunes store ID to keep all your purchases (but if you change to a different ID, you will lose all purchased items) and use the new ID for icloud (but losing emails, contacts, etc. from the old account).

  • How do I set up a new username?

    How do I set up a new username for iPhoto?

    iPhoto doesn't have "usernames". What exactly are you trying to do?

  • Why did I have to get a new username to use this forum?

    I have been a .mac subscriber for what seems like centuries (got my first SE in 89), and I've used the discussion forums elsewhere on the mac site a lot. Yet, today, even though the site properly identified me by name when I logged in, it forced me to choose a new username (my old one was "taken") and create a new account. What gives??

    Hi mariaangela!
    Are you sure that you entered the exact Apple ID and Password, that you formerly used, to access  Discussions?
    The Apple IDs were usually an Email address. And not the same as an Alias used in  Discussions.
    What is the Alias of your original account?
    ali b

  • I can't get my password manager working. It remembers passwords for websites but when I enter in a new password (because this had to be changed) or when I have a new username + PW that I wish to save, the password manager does not appear.

    I can't get my password manager working. It remembers passwords for websites but when I enter in a new password (because this had to be changed) or when I have a new username + PW that I wish to save, the password manager does not appear.

    If you updated your existing account then try logging out of it on the iPhone by tapping on the id in Settings > iTunes & App Stores and then log back in and see if that 'refreshes' the account on the iPad.
    If you created a new account then you can log out of the old account and in with the new one as above, but any content that you purchased/downloaded via the old account will remain tied to that old account, and only that old account can re-download its content and download updates to its apps.

  • How do I get my new username to come up in iTunes

    How do I get my new username to come up in iTunes

    Did you sign out of itunes and log back in with your new appleid?
    If you did change it you can verify at appleid.apple.com also just to make sure your info is all correct. Itunes will say your name and not username when you log into itunes.

Maybe you are looking for

  • IMovie 10.0.1. I can not import all video's from the SD card from my SONY camera.

    I have a Sony HDR-CX280 and the last version of iMovie, 10.0.1. When i Import video's I enter the SD card in the MAc and choose "import". I create a new event and import part of the video to that event. No problem here. Then I import a second part of

  • Purchased ringtones disappeared after Transferring to computer

    I just purchased 4 ringtones from my iphone4. Afterwhich, I hooked it up with iTunes and clicked 'Transfer purchases'. Of the 4 ringtones, only 1 is listed in my iTunes Ringtone and Puchased folders. The 3 are also gone from my iphone. I've never had

  • Windows 7 Professional -- Which Version?

    I noticed there are many versions of Windows 7 Pro on Newegg.  I know I need to get 64 bit, but do I buy the full version or the "OEM for system builders". Is the version at this link what I want? http://www.newegg.com/Product/Product.aspx?Item=N82E1

  • Can't launch catalogs

    I'm coming from LR 2.7 on a PC to LR 3.0 on a Mac.  All my catalogs are on my external hard drive.  When I try to open a catalog, I get the error message, "Lightroom cannot launch with this catalog. It is either on a network volume or on a volume on

  • Create inbound delivery VL31N

    HI, I have created new plant. When I make PO (UB) and then create inbound delivery in vl31n the vendor already appears and the vendor is what I entered in the PO as Supplying Plant. Now when I do the same for the new plant the vendor does not appear