[PHP] Multiple variables

2002-05-28 Thread Morten Nielsen
Hi, I got a table, which contains a lot of text-boxes. Each textbox has a name: Text1 Text2 Text3 etc. Is it possible to check if they are all set using a for-loop? I think of something like: for($i=1;$i<10;$i++) { if(empty("Text"+$i)) { do something...

[PHP] Frames

2002-05-04 Thread Morten Nielsen
Hi, I got a page with 2 frames. In the first one I have an IMG. Is it possible to get the URL from the second frame? Regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Javascript function

2002-05-04 Thread Morten Nielsen
Hi Is it possible to call a function in a javascriptpage from a PHP page? I have a function, which I use when the user press a button. I would like to call this function just by typing the name. Is that possible? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] IMG functions

2002-05-03 Thread Morten Nielsen
Hi, I got an IMG object on my page. It looks like: Is it somehow possible to specify a variable to be set when the user clicks the image? So 2 things are being done? Then it would looks something like: Is this somehow possible? Regards, Morten -- PHP General Mailing List (http://www.ph

[PHP] SESSIONS

2002-05-02 Thread Morten Nielsen
Hi, I got a php and a javascript page. In the PHP page I register a SESSION call 'info'. I would then like to put a value into 'info' in my javascript page. Is that possible? I have tried the following: And that works fine. But when I have an IF statement like: if(x==1) { $INFO["value"]=1;

[PHP] SESSIONS in javascript

2002-04-10 Thread Morten Nielsen
Hi, I got a PHP page where I define a SESSION. I then include a javascript page where I would like to use the value which is stored in the SESSION. The problem is that the php tags doesn't work in javascript. Can anyone tell me how to do that? Regards, Morten -- PHP General Mailing List (htt

[PHP] Form ID name

2002-04-07 Thread Morten Nielsen
Hi, I got a table where I have some images and links (IMG & A). They all have an ID name. Is it possible to access them from a function through a variable? If my link looks like: then in my function I would like something like: func1( ) { $link=link1; $link.href="www.x.com"; } Is this someho

[PHP] Hidding an image

2002-04-07 Thread Morten Nielsen
Hi, I got a page where I have to images (IMG), which is also a link. Is it possible to hide an image so the user can't see it? Regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Remembering choices

2002-04-02 Thread Morten Nielsen
Hi, I have a menu, where I would like to be able to store which link the user last pressed. What is the best way of doing this? I thought about sessions, but is it possible to define some sort of global variable that I can access from all my pages? Regards, Morten -- PHP General Mailing List

[PHP] Debugging tool

2002-03-25 Thread Morten Nielsen
Hi, Can anybody tell me if it is possible to use a debugger with PHP? And what is the name of it? Regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Development tools

2002-03-23 Thread Morten Nielsen
Hi, Does anyone know of a tool that can show how mySQL DB's are related and which PHP functions are being called. It should maybe be something like UML. Regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Storing variables

2002-03-21 Thread Morten Nielsen
Hi, I got a page, which is reloaded 3 times. When the user first sees the page he has to fill in some information. On the second page he press a button to confirm. I would then like for the third page to display what he has entered on the first page. What is the best way to store the variables fr

[PHP] Sessions

2002-03-18 Thread Morten Nielsen
Hi, I got a page that is being reloaded a lot. In the bigging I register a Session variable with the SESSION_START and SESSION_REGISTER functions. Is it wrong that I keep registering the session? Should I also unregister the session at the bottom of the page? Regards, Morten -- PHP General M

[PHP] links

2002-03-17 Thread Morten Nielsen
Hi, I got a table where I on the left has a link to page1. Another place in the table I have a button, which also links to page1. Is it possible to tell which of the two links has been pressed. I need to know so I only show a specific message when the button has been pressed. Regards, Morten -

[PHP] Passing parameters

2002-03-15 Thread Morten Nielsen
Hi, I have a php file where a make a lookup in a data base. I store the result in a variable call $qid. I then have an include statement of another file where I need the data from $qid. Can anybody tell me how I get the data. Thanks, Morten -- PHP General Mailing List (http://www.php.net/) T

[PHP] More about sessions.

2002-02-14 Thread Morten Nielsen
Hi again, I have read about sessions in the PHP manual and as far as I understand session needs the user to allow cookies. Is my understanding correct so far? But if it is required to accept cookies why not just pass all the required parameters in the URL? Thanks, Morten -- PHP General Mailin

[PHP] Sessions

2002-02-14 Thread Morten Nielsen
Hi, I try to use sessions to keep track if a user is logged in. I keep getting the following error: Warning: Cannot send session cache limiter - headers already sent (output started at f:\inetpub\wwwroot\2\admin\authuser.php:30) in f:\inetpub\wwwroot\2\auth.php on line 28 I use the session_start

[PHP] Sessions?

2002-02-13 Thread Morten Nielsen
Hi, I have a site where users should log in. What is smartest/most secure way of handling this? Should I use sessions, HTTP authentication or just pass the parameters when I call a new page? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP] Php is serversided????

2002-02-13 Thread Morten Nielsen
Hi, I don't understand... Everybody says PHP is server based, so everything is calculated before the user sees it in his browser. But if that is the case how is it then possible to use if-statements. Wouldn't that mean that the if-statement has been executed before the user makes a selection? Ple

[PHP] Refreshing a page.

2002-02-12 Thread Morten Nielsen
Hi, I got a page, which uses frames. When a user logges in I would like to refresh a frame, but I don't know how to do that. Can anybody help me? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Links to other pages

2002-02-05 Thread Morten Nielsen
Hi, I have a link on my page that looks like this: $CFG->dirroot= "f:/Inetpub/wwwroot/mymarket2"; Login The link is displayed right on my page, but when I press it a dialog box is saying that I am downloading the php file and wether I want to open or save it. Can anybody tell me what is wrong?

[PHP] PHP and mySQL

2002-01-17 Thread Morten Nielsen
Hi, I try to use mySQL through PHP, but I can't get it to work. Both PHP and mySQL is installed on my computer (win2k). The PHP manual says I should run php.exe --with-mysql. But I can't figure out what that means. I am using a graphical development environment for PHP, where I have told where my

[PHP] Event based applications?

2002-01-12 Thread Morten Nielsen
Hi, I am about to make an homepage. It is going to be very event based. When the user presses different buttons different functions should be called. At the same time I am going to use a database to store some data. My question is: Should I use PHP or JavaScripts? I would like to have a server ba

[PHP] Development environment

2002-01-12 Thread Morten Nielsen
Hi, Can anybody recommend a good development environment? It should support PHP, HTML and JavaScripts. Another question...Is it normal procedure to mix the above 3 languages on a single page or is it possible to only use 1...i.e PHP? Regards, Morten -- PHP General Mailing List (http://www.ph

[PHP] Using a HTML button

2002-01-11 Thread Morten Nielsen
Hi, I am rather new to PHP so I hope somebody can help me. I have a normal button (HTML code). Then I have made a function function multiply($X) { return 2*$X; } The button has an OnClick, which calls my function. I then writes $X to the screen. The problem is I dont even have to pres