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
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
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
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.
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
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
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
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( "||",
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]
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
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,
11 matches
Mail list logo