Re: Php Script Stumped!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



marvin hunkin wrote:

> Hi.
> doing this script for an assignment, and got it basically working.
> the only problems are:
> 
> 
> 1. wen i load the user form, the focus goes to the login button, and not
> the first form field.
> did try putting one it, did not like it.
> so how do i do this?

That's not a php question - I think if you investigate Tabindex you might
get some help

> is there a basic dom example, how to set focus on a form field, when the
> form loads?
> 2. got a user name and password.
> and enter username and password, and when the php script loads, it shows
> the user name and the password.
> want to hide this, and only have the message, now how do i accomplish
> this? tried things on the web and tried on google, but could not find any
> thing for this.

Don't echo the user/password values ?

> 3. and got to provide the time, but how do i format it say for australian
> east standard time?
> just got the standard time, and jaws reads it out, as one line of text.
> will paste the user form and php code.

au.php.net/date and look for the Timezone options in the format string.

> if any one can offer code snippets, or point me to links, and examples,
> let me know.
> sorry about this, but these are stumping me and banging my head up against
> the brick wall, so, would ask.
> cheers Marvin.

au.php.net is your friend :-)

> User Form:
> 
> <html>
> <head>
> <title>User Login Form</title>
> </head>
> <body>
> <form action="UserDetails.php" method="post">
> <p>User Name: <input type="text" name="username"> </p> <br>
> <p>Password: <input type="text" name="password"> </p> <br>
> <p><input type="submit" value="Login"> </p>
> </form>
> </body>
> </html>
> 
> 
> Php Script:
> 
> <?php
> echo $_POST['username'];
> echo $_POST['password'];
> echo "Marvin Hunkin has successfully logged into the Tafe network.
> <br>\n"; echo "Please Wait ... Loading Your Personal Settings ... <br>\n";
> echo time();
> ?>but

See comments inline above


Cheers
-- 
David Robley

Software Independent: Won't work with ANY software.
Today is Sweetmorn, the 23rd day of Discord in the YOLD 3172. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux