[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;$i10;$i++) { if(empty(Text+$i)) { do something...

[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

[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] IMG functions

2002-05-03 Thread Morten Nielsen
Hi, I got an IMG object on my page. It looks like: IMG id=image1 src=picture.bmp onclick='select()' 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: IMG id=image1 src=picture.bmp

[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: ?php $INFO[value]=2; ? And that works fine. But when I have an IF statement like: if(x==1)

[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] 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: A ID=link1 href=#/A then in my function I would like something like: func1( ) { $link=link1; $link.href=www.x.com;

[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

[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

[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/)

[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

[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?

[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:

[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; a href=?=$CFG-dirroot?/login.phpLogin/a 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

[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

[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

[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

[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. INPUT TYPE=BUTTON name=HH value=Mul onClick=? $XX=multiply(5);? I then