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 regul

Re: [PHP] Arrays through URL

2001-02-09 Thread Jørg V . Bryne
9, 2001 11:32 AM Subject: Re: [PHP] Arrays through URL On Friday 09 February 2001 10:31, Jørg V. Bryne wrote: > check out: serialize(); > > I'm trying to pass a multi dimensional array through a url link but > > I'm having a hard time doing this. Is it actually possible?

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 th

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] 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 y

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 Jørg - Original Message - From: "Jacky@lilst" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 24, 2001 10:45

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. : This puts double pipe-chars between the array variables. You can later (when u need to use the vars again) use: $select = explode( "||", $user_selections ); to put it into an array again. -J - Original Messag

Re: [PHP] RE: url hide

2001-01-23 Thread Jørg V . Bryne
If you include a forreign url using the fopen etc. functions you must parse and alter all urls. A nightmare... -Jørg - Original Message - From: "Tim Ward" <[EMAIL PROTECTED]> To: "'AJDIN BRANDIC'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 23, 2001 10:09 AM Subject:

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] what is wrong with this sniplet?

2001-01-16 Thread Jørg V . Bryne
print(" at the end of the input-tag print(""); - Original Message - From: "Jacky@lilst" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 11:28 PM Subject: [PHP] what is wrong with this sniplet? Hi people Looking for a piece of advice about what is wrong with t

Re: [PHP] javascript and php

2001-01-16 Thread Jørg V . Bryne
thing run queries or whatever... Wrote the above from memory, so the syntax might be a bit of, but the flow is the same. have a nice day! -Jørg V. Bryne - Original Message - From: "Patrice ROTH" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 200