Re: [PHP] Uploading Files!
Dimitri Marshall wrote: Hi there, I'm new to this new PHP thing and man it's frusterating. Anyway, I'm not gonna tell you my life story, but I just need to know how to allow users to upload files to my server . I've already made a form with the Thanks in advance, Dimitri Marshall Try using $_FILES or $HTTP_POST_FILES and make sure you have |enctype="multipart/form-data" in your form tag.| - rob -- [EMAIL PROTECTED] http://www.phpexamples.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_SESSION[''] variable not get passed
S.P.Vimala wrote: Now the session_id get passwd across forms but the session variable does not get passwed. Any guess what is the problem. -vimala/. You need to call session_start() on frm2.php to resume the session http://us2.php.net/manual/en/function.session-start.php -- [EMAIL PROTECTED] http://www.phpexamples.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Q] Development Best Practices
Adam wrote: My question, how do you guys build your pages? Do your scripts generate all the HTML? I'm looking for tips and resources. Remember for my first site I've embarked on a fairly large site. Code maintenance will be an issue for me as I need to enhance and fix it later on. The practice I would recommend is to remember to use functions for any code that is reusable. I create a separate file that encapsulates all my functions and include that file in all my scripts. That way every function is available anywhere in the project, and you can always add to that list. This is just one way you can break down your projects into more manageable pieces. - rob http://www.phpexamples.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SESSION wierdness....
David HM Spector wrote: I am writing a multi-page form, on the first page I session_register() a mess of variables (8 of them), the first time through the form everything works as expected, I can get things out of form variables and into relevant the $_SESSION variables. Items are put into the $_SESSION variables on the submit. However, if I go back through the form again, the data in the $_SESSION variables is never updated. For example, if I start the form over again from page 1, there is data still in the $_SESSION variables (which I expect) but attempting to update it in the submit section never changes what's stored in the session. Another thing that's odd is that I must coerce data into the $_SESSION variables by explicit assignment -- even with register_globals ON I cannot do a session_register('some_variable') on the first page of the form and then simply use $some_variable to update the stored session data on any of the pages. session_register( ) is depreciated with your version of PHP (4.2.2). Just do the following... $_SESSION["homer"] = "doh!"; And set register_globals = off. http://us4.php.net/manual/en/function.session-register.php - rob http://www.phpexamples.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php