Re: [PHP] no-resubmit on reload/refresh

2001-03-06 Thread Jørg V . Bryne
Well, I've had the same problems with an "Send SMS" routine and it caused the message to get sent twice or more if the user refreshed. I fixed this by adding the following logic: If there are post-data, put this into a session variable (an array of key=val) and reload the page. if there are no

Re: [PHP] deleting cart items on session expire

2001-02-15 Thread Jørg V . Bryne
Well, why not store the item's in the session-var? When the session dies because of timeout or user-intervention, the items dissapear too. Or store a timestamp along with the items, and refresh the timestamps as needed. Then put in a cron-job to delete out-of-date items left in the DB at

Re: [PHP] Raspuns: [PHP] Cron + PHP

2001-02-09 Thread Jørg V . Bryne
or even better; compile PHP as CGI in addition to an Apache module, and put it somewhere in the path. You can then set cron to: 0 20 * * * php -q myphpfile.php results_to_this_file.txt This could be useful if you need to run a script that is not available on the web-server, for instance. -J

Re: [PHP] Arrays through URL

2001-02-09 Thread Jørg V . Bryne
check out: serialize(); - Original Message - From: "Jamie" [EMAIL PROTECTED] To: "PHP" [EMAIL PROTECTED] Sent: Friday, February 09, 2001 10:28 AM Subject: [PHP] Arrays through URL I'm trying to pass a multi dimensional array through a url link but I'm having a hard time doing this.

Re: [PHP] Arrays through URL

2001-02-09 Thread Jørg V . Bryne
i would agree that serialize isn't good for huge arrays, yes, but if you're considering databases, why not use sessions? -J - Original Message - From: "Christian Reiniger" [EMAIL PROTECTED] To: "PHP" [EMAIL PROTECTED] Sent: Friday, February 09, 2001 11:32 AM Subject: Re: [PHP] Arrays

Re: [PHP] Variable quantity chooser.

2001-02-08 Thread Jørg V . Bryne
The slider control is not a regular html-form-object. (on Windows you can see one in the recycle-bin properties). If you want to, or need to, i guess you can use an active-x control og make a javascript to do it. I wouldn't reccomend either... However if you need to set a not so spesific number

Re: [PHP] db connection error: need help badly

2001-01-24 Thread Jørg V . Bryne
I always use mysql_setpermission, which is a script for easy adding of users and permissions etc. step by step. It comes with the standard dist. of mysql. Mvh Jrg - Original Message - From: "Jacky@lilst" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 24, 2001 10:45 PM

Re: [PHP] multple select forms... going to hit my head against a wall ..

2001-01-23 Thread Jørg V . Bryne
If you don't put it in a session var, and need to transport it you can use f. x. : input type=hidden name='user_selections' value='?=implode( "||", $select )?' This puts double pipe-chars between the array variables. You can later (when u need to use the vars again) use: $select = explode( "||",

Re: [PHP] url hide

2001-01-22 Thread Jørg V . Bryne
I saw this done with a frameset recently. The domain blah.com had a frameset which opened the real page (at www.hotel.com/blahblah ) in a frame. -J - Original Message - From: "AJDIN BRANDIC" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 22, 2001 11:30 AM Subject: [PHP]

Re: [PHP] javascript and php

2001-01-16 Thread Jørg V . Bryne
In general: We made a script which did this, however a bit limited because of the client/server-problems mentioned. The script is part of a registration-form, and pick out a city based on the zip entered. We didn't want the list of zipcodes and cities in JS since it would be quite huge. Don't

Re: [PHP] what is wrong with this sniplet?

2001-01-16 Thread Jørg V . Bryne
print("input type='button' value='back' onclick='self.history.back()';"); lacks a at the end of the input-tag print("input type='button' value='back' onclick='self.history.back()';"); - Original Message - From: "Jacky@lilst" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday,