GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   2 quick programming questions (https://gfy.com/showthread.php?t=853606)

clickhappy 09-08-2008 11:38 AM

2 quick programming questions
 
I have a site with a login form. Its just a user name and password to log in.

1. How do I set the focus of the cursor on the username?
So when the page loads the cursor goes right in the username text box?

2. How do I have the form pre filled with the members username and password from last time?
So when they come to my site the curser is in the box, the username and password are already intered, and all they need to do is hit "enter" and they log in?

Do I need a cookie? I have no idea how to make a cookie.

mrkris 09-08-2008 11:41 AM

1. Javascript: document.formname.fieldname.focus();
2. Leave this to the browser with the "remember username/password" support.

clickhappy 09-08-2008 11:42 AM

Quote:

Originally Posted by mrkris (Post 14724372)
1. Javascript: document.formname.fieldname.focus();
2. Leave this to the browser with the "remember username/password" support.

Ill try that now, thanks very much

k0nr4d 09-08-2008 01:07 PM

Quote:

Originally Posted by clickhappy (Post 14724356)
Do I need a cookie? I have no idea how to make a cookie.

Ingredients

• 3/4 cup sugar
• 3/4 cup packed brown sugar
• 1 cup butter
• 1 large egg
• 2 1/4 cups all-purpose flour
• 1 teaspoon baking soda
• 1/2 teaspoon salt
• 2 cups semisweet chocolate chips
• if desired, 1 cup chopped pecans

Directions

Preheat oven to 375 degrees. Mix sugar, brown sugar, butter and egg in a large bowl by hand. Stir in flour, baking soda, and salt. The dough will be very stiff. Stir in chocolate chips. Drop dough by rounded tablespoonfuls 2 inches apart onto ungreased cookie sheet. Bake 8 to 10 minutes or until light brown. The centers will be soft. Let cool for one minute then remove from cookie sheet and place on wire rack to finish cooling.

---------
OR
---------
http://www.php.net/setcookie


All times are GMT -7. The time now is 08:59 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123