473,761 Members | 6,563 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to clear the password input tag value after user clicks on login

31 New Member
Hi,
I want to open user details or some data pages in a new window after he enters the username and password. I am able to open in a new window but the problem is that i am not able to clear the username and passwords in the parent page.
In this website(bytes.c om) when a member signs in, the password field is getting cleared and the member verification is done without any problem. I want to do in the same way but the next page should be opened in a new window.
I tried to clear the password field before going for the user validation but its sending empty string.
I also used hidden field to copy that password string and clearing the password field. I think its not a safe way to do it.
How to clear that data in the input tags and also get the user entered values?
I am using html, javascript on client side. PHP on server side. MySQL is the database.

regards
Nelluru.
Apr 2 '08 #1
3 3622
hsriat
1,654 Recognized Expert Top Contributor
Try this script in the second window that gets opened after you log in.
Expand|Select|Wrap|Line Numbers
  1. window.opener.document.forms[0].id.value='';
  2. window.opener.document.forms[0].password.value='';
Where id and password are the names of the input fields.
Apr 2 '08 #2
Nelluru
31 New Member
Try this script in the second window that gets opened after you log in.
Expand|Select|Wrap|Line Numbers
  1. window.opener.document.forms[0].id.value='';
  2. window.opener.document.forms[0].password.value='';
Where id and password are the names of the input fields.
thanks that worked for me

regards
Nelluru
Apr 3 '08 #3
hsriat
1,654 Recognized Expert Top Contributor
thanks that worked for me

regards
Nelluru
You are welcome.

Keep posting. :)
Apr 3 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
3361
by: Lou | last post by:
Please can someone put me out my misery! Im trying to find a multiple user/password protection script that will redirect the specific user to a specific directory. At the moment I have set up htaccess which is fine but can only protect one directory unless I put htaccess on each directory which I think is a bit long winded, but is there any other way I can do this with using only one password script? Any info would be greatly...
7
8695
by: Mike | last post by:
I've been trying for the past week to put a simple code together. I have done a LOT of searching, found scripts showing the functions I would like to use, however when I mix them it all goes wrong, somehow I always end up with error messages and functions not working right. Can someone please help me? I have a form, inside is 1 Text Field and 2 Password Fields. What I'm looking to do is: - Make sure password fields are equal - Set...
15
5319
by: M P | last post by:
Hi! Im planning to encrypt the password that was stored on msaccess database and also the text inputed from a password textbox. Also, if I want to get the password from the database, I need to decrypt it so it can be comparable to the one that is inputed on the textbox. Is there a way on how to handle this? MP
5
17577
by: Tony | last post by:
Please help, I've scoured the web but cannot find an answer to this! I want to use WebRequest to get the contents of a web page. The trouble is, the page require you to go to a login page (using ASP - not ASP.NET), and enter a username and password to get in. How do I use WebRequest in this situation? I cannot find any way of supplying the username and password. The '.Credentials' does not work because that is only for Windows...
3
1767
by: Marco Scheel | last post by:
Hello NG, i think i found a bug. I've programmed an application that uses a HTML Input textbox. The HTML type is "Password". The content is marked with "*". Thats fine. I change the runat tag to server. Now i try to fill the control value an nothing happens. try example at bottom. i tried some workaround but even with the asp:textbox it doesen't work. i need this peace of code for a loginscreen where i want to fill the password from a...
5
1922
by: Afshar | last post by:
Hi everybody there, I have a special Login page that wants users to enter 3 passwords rather than a single password. But can't do it with Login control. I tried following scenarios: 1. Put an Login in the page and set its Visible = False instead put my own username and 3 password on the form. Then I checked 2nd and 3rd password seperately and passed username and password to Login control via its Username and Password properties but...
3
2725
by: Noel S Pamfree | last post by:
Problem 1 ======= I need to create a page for a friend who operates a school website. She needs to set up a page so that only the Governors can access it. I thought I'd try to use JavaScript to prompt for a password. (I am only an amateur at writing JavaScript). It works fine in my tests when using Firefox but when I load the page in Internet Explorer it causes an error. (I am using the newest version 7 - the
1
7428
by: roshina | last post by:
Hi Iam facing a problem in my project, developing a web site for online shopping in ASP on windows XP using IIS server. All the validations are ok but the new password is not upadated in the data base and also showing a error page. the operating system we used is Windows XP, the source code is ASP, front end we used - HTML and javascript and vb script for validations. the inputs we used are : old pasword :
2
2835
by: whitey | last post by:
Can anybody supply me with a script the does what is in the title above please? I have tried so many different methods! here is what im currently trying to get to work SIGN IN <!doctype html public "-//w3c//dtd html 3.2//en">
0
9522
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9336
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9948
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9902
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7327
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5364
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3866
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.