Welcome visitor
* Login
* Register
It is currently March 19th, 2019, 4:54 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  form question
PostPosted: April 15th, 2009, 10:08 pm 
User avatar

Posts: 42
Hi, im working with an html form and a php file to validate the username and password. When the data entered is not correct an alert message appears. Thats fine. What i would like to do is to keep the username the user entered and only clear the password field. Something like this:

Screen 1:
Username: aUser
Password: ********

Screen 2:
Username: aUser
Password:
please enter valid data

Can someone tell me how to do it? Thanks.


Top
 Profile  
 
  Re: form question
PostPosted: April 15th, 2009, 10:14 pm 

Posts: 117
On your PHP file try do this:
echo 'Username: <input name="userName" value="' . $_POST['userName'] . '">';


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron