RE: [PHP] Php Script Stumped!
| From: | Jim Moseby | Date: | Thu, 06 Apr 2006 13:08:05 +0000 |
| Subject: | RE: [PHP] Php Script Stumped! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-233345@lists.php.net to get a copy of this message | ||
> Hi.
Hi!
> doing this script for an assignment, and got it basically working.
> the only problems are:
>
Assignment, eh? Generally, folks on the PHP list will not do your homework
for you. But I'll offer some light nudges in the right direction for you.
>
> 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?
> is there a basic dom example, how to set focus on a form
> field, when the
> form loads?
Not a PHP issue. Hint: google "body onload" Generally, you will give your
form a name and specify that name and the field name you want to have focus
in the <body> tag. using the "onload" directive.
> 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.
PHP doesn't automatically display anything you don't ask it to display.
(Other than these occaisional 'error messages' some claim to see ;-) In your
code snippet, I happened to notice that you explicitly echo the username and
password. I would say the fix for this is "don't do that".
> 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.
You can format dates and times any way you see fit. You can set timezones
how ever you want. How? http://php.net/date would be a good place
to start.
:-)
Happy coding!
JM