i have a knowledge of usinjg PHP but never used sessions in it. can anyone tell mw how to use sessions like password protected pages and how to start the session of a new user and pass relevant variables
120753
Its really so Simple, just you have to use is Predefined session Variables\nEXAMPLE\nsuppose u wanna store username of a person in a session variable u can do this\nfirst at the line one (means top) of the Php page you have to start the session by this function\nsession_start();\nafter that\n$_SESSION['username'] = $username;\nand you can Access this variable on every page u like to but remember to write session_start(); on the line one of each page where session variables are used
376549
If you are using PHP go to this link\nhttp://www.free2code.net/plugins/articles/read.php?id=99\n\nIf you are using ASP go to this link.\nhttp://www.aspin.com/home/tutorial/usermanage/login]\n\nIf you are using Java go to this link.\nhttp://www.javascriptkit.com/script/script2/loginpass2.shtml\n\nIf you are using Perl go to this link.\nhttp://www.osix.net/modules/article/?id=284
612702
For free php objects and classes, use:\n\nhttp://www.phpclasses.org\n\nFor whole php applications, frameworks, or projects, use:\n\nhttp://www.sourceforge.net\nhttp://www.freshmeat.net
21596
You will have to use some scripting language, \nI advise you to use PHP with MySQL. \nBut also there are a LOT of created sollutions. Just look out for login script or even you can try with some CMS like Joomla, Mambo, PHPnuke, XOOPS ........ witch already have implemented loging feature.
637023
before cookie and session don't use echo,print,print_r,...\nthen remove all blank line before session_start.
7383
Try the following tutorials:\nhttp://www.devshed.com/c/a/MySQL/Beginning-MySQL-Tutorial/\nhttp://www.php-mysql-tutorial.com/
212794
It will depend on many things, such as what server you are using, and how extensive your login needs are. For example if it's just a private area for a few people and you're using Apache you don't have to do ANY programming, just create a password file and an .htaccess file to restrict access to the protected folder.\n\nFor anything fancier than that, you will need some sort of scripting technology on the server and there are many to choose from... Python, Perl, PHP, ColdFusion, ASP, Ruby, and JSP (Java Server Pages) to name  a few. Once you know WHICH scripting language is available to you (PHP is commonly available on shared hosts running Apache), you can start searching Google or Yahoo for login scripts for that particular language.
673584
While you can use Frontpage to create PHP pages, you can't actually view the PHP page until you've uploaded it to your server where a PHP parser is loaded.\n\n(You can download PHP to your computer to view PHP locally. There is a version for Windows and it is free).\n\nIt may be that you could view the first one because you named it in such a way that the HTML processor was able to recognize it (like index.php or default.php). If the new file you created was not named one of these, then you'll have to make sure that you put the whole name in the address bar of your browser after you've uploaded it.\n\nIf it still doesn't show, then this is a good indication that you have a syntax error somewhere in your code.\n\nBut back to the origional question... Frontpage CAN be used to create / edit PHP pages, but not view them.
412848
First one might be a permissions problem with your setup. Make sure your web server user has read,write, modify permissions on the directory: /tmp and make sure the directory exists.\n\nSecond one is that you have tried to to send headers when there are already characters sent. Even something like a carriage return or a space can be considered "something". Make sure you start that statement at the very very top of the page an make sure there are no spaces between the ?> and <?php on your page.
515032
Hi I am a PHP programmer. working as a web Developer.\nI think i can help u.. no charge..\nor u can take help from http://www.w3schools.com/php/default.asp
241970
I suspect you mean 'seSSion'...\n\nA session is initiated when you connect to a web site. The server assigns a session ID to you/your computer.\n\nSession IDs are often used to allow the comings and goings of a validated user on a site. Other session variables can be set and read by code as well.\n\nFor example, lets say someone successfully logs on to your site (password validated) you can create a 'Validated' session variable and check that as the user tries to go to a page. In this way, even if someone has an URL for a page and tries to go there without getting validated, your code can redirect him back to a logon page (for example).\n\nIn the sources below I have included some of my favorite ASP reference sites and some on sessions.\n\nGood Luck
96499
This must help u.\n\nhttp://www.jsptut.com/Sessions.jsp\n\n<%\n   String name = request.getParameter( "username" );\n   session.setAttribute( "theName", name );\n%>\n\nhttp://forum.java.sun.com/thread.jspa?threadID=460108&messageID=2107079
293304
Well if you want a javascript code, then simply generate a 6 to 8 digit number when they goto your website.\n\nTry using PHP's session function.\nIt has a function just for Sessions\nsession_id([string]);\n\n :-)\n\n -Void
184743
HI,\nthis is what may be a problem, first the question is does your provider(in that hosting package) supports PHP and MySQL, if that is true it may be that you can use that service if you ask them, so you have to call and tell them to make these available for you.\n\nOther thing is that if all of the above is true and working you should call them anyway because they will give yo your Host for the base, your username, password and the name of it. You should use these data that your Host provider gives you and everything should work fine.\n\nAnd YES you have other SQL parameters!!\n\nIf this don't work, you should try and try again with the installation, or you can always download some other chat application:).
117749
I learned the basics of PHP here:\nhttp://www.zend.com/php/beginners/php101-1.php\n\nTheir tutorial is really BASIC but that's exactly what I needed.  \nMy advice is to go to the book store and browse the books on php. Look for one that is written in a friendly, person to person type language. I know there are many books out there that read like a text book. Not my style.  \n\nThis tutorial should teach you the fundamentals of php.\nOnce you undertand the structure of the language you can pick apart source code from guestbooks, or the OScommerce shopping cart that runs on php.\n\nOH another thing I absolutely recommend is available here:\nhttp://www.apachefriends.org\n\nThe XAMPP install allows you to run php (and other server side) languages on your own computer.\n\nThis means you don't have to constantly upload your code to a server that runs php in order to test it.\n\nWhat xammp does is install language support to your "local server" which is your computer.  You can then run server side languages offline.\n\nLet me know if this helps.
144269
I'm a bit confused by your question. Please clarify:\n\n1. Do you have user information saved some place?\n\n2. Are you trying to get this information for users currently in the application, or for registered users?\n\n3. Why do you want to pass this information into a query string? Is there a reason you want to pass this information off to another page?\n\nI think this is what you really want:\n\n1. User comes to page and selects his state.\n2. Page displays age groups.\n3. User selects age group.\n4. Page displays race groups.\n5. User selects race group.\n6. Page displays all users who match state, age and race groups.\n\nIf I have that wrong, please redefine what you want done, in the same manner as above: Step 1, user comes to page; Step 2, page shows user something; Step 3, user does something;; Step 4, page displays something else; etc.\n\nUPDATE:\n\nI still don't understand why you want to do this with query strings. But to answer your question directly, all you need to do is rebuild some links based on user input.\n\nYou'd do that with a link control, not a linkbutton control, and change the link's URL value programmatically, then have the page post back to itself.\n\nBut again, you're making it a lot harder than it needs to be. I'll demonstrate an easier way to do what you want on my demo site and post a link when it's ready.\n\nUPDATE:\n\nI have this solution ready for viewing:\n\nhttp://blog.360.yahoo.com/blog-NVb99sQ4RK5BVgIbxdcQdcRtfT8-?cq=1&p=41
275217
try with another script, i recomended that u visit http://www.planetluc.com there is one good php conact script but u should to add some extra fields, cause it contains only first name, last name, and message, u should to have some knowledge about php, but there is forum too and u could ask for help, also check http://www.workshop.ba\nthere is some good tutorials too. . .\n\nCheers dude !