[PHP] Re: Remember scrolled position

2003-03-04 Thread Lars Espelid
t;[EMAIL PROTECTED]> skrev i melding news:[EMAIL PROTECTED] > Not sure If I understand what you mean. You load a file like > yourdocument.php#4 it will automatically jump to anchor named "4" in that > document. No further clicking involved. > > "Lars Espelid&

[PHP] Re: Remember scrolled position

2003-03-04 Thread Lars Espelid
it with php. > Then simply make sure that when the button is pressed that number is > appended to the url so it will look like yourdocument.php?yourdata=blah#5 > making the browser jump to the anchor named "5". > > "Lars Espelid" <[EMAIL PROTECTED]> wrote

[PHP] Remember scrolled position

2003-03-04 Thread Lars Espelid
I'm trying to implement the following functionality into the file test.php: When I scroll down the page and then hit a button, the page should remember the scrolled position, refresh the page and then scroll down to the remembered position. If I knew how many form-schemas there would be on the pag

Re: [PHP] Get variable from PHP before submit

2003-03-02 Thread Lars Espelid
Hope this will help your gamma-epsilon-psycho telepathy beamer :-) When someone hits a button in one of the form-schemas the following happens: 1) hentKoordinat() is executed. The form-schemas hidden field named yKoord gets the value: the amunt of pixels scrolled in y-direction. 2)the page is ref

Re: [PHP] Get variable from PHP before submit

2003-03-02 Thread Lars Espelid
I could use anchor's like shown underneath, but then the user will have to click the link "Last position" each time a button is submitted. I would like the page to scroll down automatically. Is that possible, to have the link executed without clicking help from the user? Ykoordinat: " . $yKoord

[PHP] Get variable from PHP before submit

2003-02-28 Thread Lars Espelid
I'm trying to implement the following functionality into the file test.php: When I scroll down the page and then hit a button, the page should remember the scrolled position, refresh the page and then scroll down to the remembered position. I've almost managed to make this work, but only almost.

[PHP] Re: Too many 'linespaces'

2003-01-28 Thread Lars Espelid
Thanks, problem solved! I moved the hidden-vars inside a td-tag and the problem was no more. Lars "Lars Espelid" <[EMAIL PROTECTED]> skrev i melding [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > I present some content of a mysql-table in an h

Re: [PHP] Too many 'linespaces'

2003-01-27 Thread Lars Espelid
You mean to comment out the while sentence? A do-while-loop won't work without the while-part would it? Comments are suplements to understand the code, not needed for the code to work. Thanks anyway "Tom Rogers" <[EMAIL PROTECTED]> skrev i melding [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > H

[PHP] Too many 'linespaces'

2003-01-27 Thread Lars Espelid
Hello, I present some content of a mysql-table in an html-table. When the query which collects the content contains few rows I get the amount of space I want between the output and the above content. But when I get for instance 60 rows, the printed result jumps down about 7 lines. I would like to

[PHP] Re: Create unike variables for each record

2003-01-16 Thread Lars Espelid
Is it possible to register an array as a session variable? If so I think it solves my problem. Thanks. Lars "Lars Espelid" <[EMAIL PROTECTED]> skrev i melding [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > I have a table in a MySQL-db. The primary

[PHP] Create unike variables for each record

2003-01-16 Thread Lars Espelid
Hello, I have a table in a MySQL-db. The primary-key-coloumn is a number which is not sorted. I don't know how many records there are. I have a while-loop in a php-page which prints a link for each record. Each link points to the same page (iow. page reloads). When someone click on one of these

[PHP] Print bgcolors in table

2002-12-15 Thread Lars Espelid
Hello, I have been looking for a newsgroup where I can post questions about css/html. I did not find any. Any suggestions? If you want a break from php, my problem is as follows: Have got a table in html with different background colors on the rows. When I print the page to my printer, the color

[PHP] Prevent storing data when reload

2002-12-03 Thread Lars Espelid
Hello, I have a php-page whith a form-schema which stores data to a mysql-database on submit. (The schema posts data to the same page (php-self).) When I reload the page the data gets stored once more. I'm sure this is a well known problem. Are there any smart tricks to prevent this from happenin

[PHP] Page break

2002-11-30 Thread Lars Espelid
Hello, Is there some way to insert page breaks in a php document so that it becomes more printer friendly. thanks lars -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP confirmation window

2002-11-30 Thread Lars Espelid
Hello, Working in php, the problem is how to create a window with some optional text in it and get true or false in return. A confirmation window. Example in javascript: function formSubmit() { window.event.returnValue = false; if (confirm("Er du sikker på at du vil slette boenheten?")) win

[PHP] Problem whith query in query

2002-11-17 Thread Lars Espelid
Hello, I need some help whith a mysql-query. Can anyone help? Is there a good newsgroup for mysql? Identifiseringid is the primary key of the table identifisering and is autoincrement. There is also a coloumn named dprosjekt in identifisering and some other coloumns. dprosjekt has the same value

[PHP] Re: session handling

2002-11-16 Thread Lars Espelid
Session-vars won't work on my pages either. Tried your suggested code, but get the following errors in my browser: Page 1: Warning: open(/tmp\sess_22b746f8ee84cf7aadb8da0b37ce9d2a, O_RDWR) failed: m (2) in c:\apache group\apache\htdocs\system\kode\test.php on line 2 Page 2: Warning: open(/tmp\se

Re: [PHP] How to show autocad (dwf, dwg) files in browser?

2002-11-15 Thread Lars Espelid
e Volo View Express, but your plug-in page points > to the WHIP viewer plug. Regardless, there are two versions of Volo View. > Did you download the DWF version only of Volo View? > > Dave > > -Original Message- > From: Lars Espelid [mailto:lars_espelid@;hotmail.com] > Sent:

[PHP] How to show autocad (dwf, dwg) files in browser?

2002-11-15 Thread Lars Espelid
HI, I have downloaded Volo View Express from www.autodesk.com (plugin to web-browser) and can see the sample autocad-file that is presented on their site. Code ment to display the file drawing1.dwg on my page (none working): 1) Displays no image. 2) A nice drawing. The only thing I can see is

[PHP] Can't escape characters in php??

2002-11-14 Thread Lars Espelid
Hello, I'm running Apache/1.3.26 and PHP 4.0.5 on WinXP pro. The following code is taken from the book mastering PHP 4.1 and is supposed to work: if (ereg([^0-9], "2002-11-14")) print "That's not a number!"; It won't work for me. I get a parse error expecting a ')'. I have also tried other

[PHP] Escaping characters won't work

2002-11-14 Thread Lars Espelid
Hello, I'm running Apache 1.3.26, PHP 4.0.5 and WinXPpro. My problem is as follows: Try to execute this code: if (ereg[^0-9], $num)) print "That's not a number!"; result: parsing error, expects ')' on the if-line. Have also tried other expressions where I escape characters. They won't work