Re: [PHP] Sessions Variables and refresh pages
Well, I don't understand it too, i don't know why with normal variables there are not problem and with session variables i need to refresh the page to see the results after the submit form. The mechanism is this: query 1 with parameter >ACCESS FORM --- > results only session_register(uid) shown with refresh session_register(pwd) (get parameter from REQUEST_URI) if i do this: query 1 > (NOT ACCESS) --- > results with no problem I hope than somebody can give me some ideas... because this is driving me crazy.. THks, Karina -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions Variables and refresh pages
Ok. First i have a result-select-page displaying the id's of my items and other values. id1(link) -- item 1 bla bla bla id2(link) -- item 2 bla bla bla when the user selects an id link appears the accesscontrol page: ... .. session_register("uid2"); session_register("pwd2"); this script checks the user/password against a database if data is right... it shows the detail for the item the user selected in detail.php session_start(); $user = $HTTP_SESSION_VARS['uid2']; $cod = strstr($REQUEST_URI,"="); $cod = substr($cod,1); and i do a select from another table... i need to reload this page in order to show the results, otherwise, the page is in blank. If i check the page source in my browser options, the source says: data missing... you need to reload.. bla bla bla I hope this explanation helps. Karina -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions Variables and refresh pages
Yes, it is. This is exactly the problem. Do you know a way to solution this ? Thks, Karina --- I'm not sure I fully understand the problem, but I think I can have a guess at it based on my past experiences... if you have a php page that starts a session with session_start() and, say for example, you then try and echo the session id with session_id() it will not be displayed on screen until you actually refresh the page or move to another page that calls the session id. In other words, the session id seems to be set when the session is started, but isn't availale to use in your script until the page is re-loaded. This is based on what I can remember from 8 months ago and I haven't tested it out, but I believe this is the sort of problem being described in this thread. Cheers the noo, Derek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions Variables and refresh pages
Yes, the result is returned... the problem is that i have to refresh the page to see it or use it in a query. Karina -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] image source from PHP
Hello, I want to make a sit where an image comes from a database. In the db I store only the filename and path. I have the following code: > The echo line print the good string e.g.: "Pic/Myphoto.jpeg" But I can't see the image. Only a one small whit box wit red x (no image). And if I try to put with hard code: It works fine. What can I do? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Global "structures" (newbie)
Hi, I'm a beginner in PHP and I want to access some variable all of my php sites. I want to order them in an array, class,... Eg.: User.Name User.Phone General.Info Camera.Type Camera.Class ... What is the most secure and "beautiful" solution for that in PHP? Can I add an array into the $_SESSION variable? Any tutorial on the net? I have found some but they always use only username and userpass. What's in a big project? An exact example would be a big help for me. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Which link was selected?
Hi, I put pictures from a database ont the page about my products. If the user click on a picture I want to give a detailed description about the product. But how can I get, which picture was selected? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] print html code
Hello, I want to make a php site which can generate a html code and display it on the screen. (Display the code itself.) I use htmlspecialchars() function. It works fine, but now I have to add about 200 lines of static html code to print it out. If I put all of the code in a string than it will appear in a single line. (Maybe it works, but not nice) How can I easy print out more lines of html code with php? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Open new browser window
Hello, I want to make a php application, which displays different text in separate windows. I mean for example a new window will open with text "Hello 1" and a second window opens with text "Hello 2". How is it possible with php? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Disaple warnings
Hello, I have the following code: if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) { $modpath = "themes/$ThemeSel/";} At home on my PC (WinXP+PHP4.3.2) this code works without warnings. But in my office (Win2000+PHP4.3.0) I always becom warnings for this line and in case of any other file_exists call. (Both case the file doesn't exist) How can I disable display warning in such case? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Form creator tool
Hello, I have to make a lot of input and edit form to mysql tables. Is there any tool with it I can easy make php based html forms? I mean eg.: User can select fields from mysql table and the tool generate an input or an edit form to it. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Session problem
Hello, I have a problem with php sessions. The following code works on my home PC but doesn't work on my office PC. What can be the problem? Thanks! I have 2 files: file1.php: session_stert(); $_SESSION['demo']="test"; and file2.php session_start(); echo $_SESSION['demo']; I use PHP 4.3.2. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Back function with php
Hello, how can I go back to the previous php page from where the actual page was called? I want to know not only the file name but the parameter list too. (I mean I want "demo.php?p1=1&p2=2&p3=s" and not only "demo.php" from "second.php" which was linked on "demo.php?p1=1&p2=2&p3=s") Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Submit button
Hello, I want to use an image as submit button on my form. Now I use the following code with button: if (!(isset($_Post['SubmitForm']))) { ... . } else { . } Is it possible to change the Submit button with an image? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Submit button
I have changed the code, but it doesn't work. if (!(isset($_Post['SubmitForm_x']))) { ... . } else { . } "Eugene Lee" <[EMAIL PROTECTED]> az alábbiakat írta a következo üzenetben news:[EMAIL PROTECTED] > On Sun, Sep 28, 2003 at 12:49:27PM +0200, Karina S wrote: > : > : I want to use an image as submit button on my form. Now I use the following > : code with button: > : > : if (!(isset($_Post['SubmitForm']))) > : { > : ... > : . > : > : } > : else > : { > : . > : } > : > : Is it possible to change the Submit button with an image? > > Yep. It's a feature of HTML. > > > > Note that the x,y coordinates of where you clicked on the image gets > submitted as "SubmitForm.x" and "SubmitForm.y", so watch out for the > existence of these variables. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Use include function (newbie)
I make a site where I list data from a mysql database. I want to divide the task into 2 parts. The 1. php is the logic.php an the 2. is the html table (html.php) with field values. I plan that the form action in the html.php file call the logic.php but the logic.php includes the html.php. I mean: html.php ... logic.php ... include('html.php'); On the html.php user can view data and use last, first, next,... buttons to see the whole table. Question: Is it a right way to do this task or this reqursive calls overloads the server? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Phptriad
Hi, I´m new to php. I have installed phptriad in Windows2000 using also IIS5 as an alternative web server. I have tried to test some http authentication scritps but they don´t seem to work. (Using apache I got an internal error and using IIS, i sucessfully show the authentication dialog box, but later the server gets blocked) I have some questions: - does the phptriad install php as an apache module or as a cgi? How could I know the difference? - Using php as a cgi what kind of http authentication i should use? I have read that the http authentication could only be used when PHP is installed as a module. Also I have read that the IIS has a limitation with this. What would you recommend me? Any answer would be greatly appreciated. Kary - Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards®
[PHP] Php as an apache module (Phptriad)
Hi I have installed Phptriad in Windows 2000 and everything works fine except when I tried to test some user authentication scripts. -";echo "You have enter $PHP_AUTH_PW as your password. "; } ?> When I tried this I sucesfully show the authentication dialog box, but later the browser gets blocked while trying to connect to http://localhost. I would like to know if has to do with the instalation of Phptriad, where PHP is set as a cgi or an apache module.Anye help would be greatly appreciated. Karina - Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards®
[PHP] Submit of a Form needs reload the page to display results
Hi all, I have a problem with form submits. I have an access control form that my users fill to enter to a private web page, this access page saves 2 session variables and shows the result page that it's an php page with several queries to several tables. Well, when i submit my access control form, i get a blank page, if i check the source code in the browser, it shows "Data missing... form post operation.. bla bla", so i need to reload the web page for showing the correct query results. This is very inconvenient for my users, Any help will be greatly appreciated. Thanks.. Karina Gomez -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Submit Form needs reload the page to display results the first time
Hi all, I have a problem with form submits. I have an access control form that my users fill to enter to a private web page, this access page saves 2 session variables and shows the result page that it's an php page with several queries to several tables. Well, when i submit my access control form, i get a blank page, if i check the source code in the browser, it shows "Data missing... form post operation.. bla bla", so i need to reload the web page for showing the correct query results. This is very inconvenient for my users, Any help will be greatly appreciated. Thanks.. Please Help. Karina Gomez -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Newbie! Submit Form needs reload the page to show results the first time]
Hi all, please help me with this problem i'm desperate... I have a problem with form submits. I have an access control form that my users fill to enter to a private web page, this access page saves 2 session variables and shows the result page that it's an php page with several queries to several tables. Well, when i submit my access control form, i get a blank page, if i check the source code in the browser, it shows "Data missing... form post operation.. bla bla", so i need to reload the web page for showing the correct query results. This is very inconvenient for my users, Any help will be greatly appreciated. Thanks.. Please Help. Karina Gomez -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Sessions Variables and refresh pages
Hello, this is the fourth time i wrote expecting some answer from somebody with more experience than me. I have a protected page , i ask for user and pass and save these variables as session variables, with session_register. When the user submit this page.. this variables are registered, in the next page, i do some queries using a substr of REQUEST_URI and displaying 2 selects results and 1 update. When i remove the access-control page all works fine, but when i set the session vars, the first time i see the results, i need to refresh/reload the web page to show the correct results of the queries, otherwise the page source shows "data missing... post operation... refresh..." Please, how can i avoid the manual refresh ? Karina Gomez -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions Variables and refresh pages
again with the problem i discovered that the problem is that the reload is needed when i use the session variables in the queries, otherwise there are not problem. Even if i only want to display the session variable in the result page, i need to do a reload. Karina wrote: > Well, I don't understand it too, i don't know why with normal variables > there are not problem and with session variables i need to refresh the > page to see the results after the submit form. > > The mechanism is this: > > query 1 with parameter >ACCESS FORM --- > results > only >session_register(uid) shown with refresh >session_register(pwd) (get parameter from > REQUEST_URI) > > > if i do this: > > query 1 > (NOT ACCESS) --- > results with no problem > > > I hope than somebody can give me some ideas... because this is driving > me crazy.. > > THks, > Karina > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]