how to avoid spaces in login and password fields

Reply

Join Date: May 2009
Posts: 52
Reputation: mohankumar554 is an unknown quantity at this point 
Solved Threads: 0
mohankumar554 mohankumar554 is offline Offline
Junior Poster in Training

how to avoid spaces in login and password fields

 
0
  #1
May 14th, 2009
hi, can u tell me how to remove blank spaces in login and password fields in python language.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2,273
Reputation: sneekula has a spectacular aura about sneekula has a spectacular aura about 
Solved Threads: 175
sneekula's Avatar
sneekula sneekula is offline Offline
Nearly a Posting Maven

Re: how to avoid spaces in login and password fields

 
0
  #2
May 14th, 2009
Can be as simple as:
  1. pw = "pass word"
  2. pw = pw.replace(" ", "")
  3.  
  4. print(pw) # --> password
No one died when Clinton lied.
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 52
Reputation: mohankumar554 is an unknown quantity at this point 
Solved Threads: 0
mohankumar554 mohankumar554 is offline Offline
Junior Poster in Training

Re: how to avoid spaces in login and password fields

 
0
  #3
May 18th, 2009
thank u very much for sending the reply...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC