I'm realy sorry for u, but the reason for no answers is ur concept.
may be some rules will help u and I recommend u to think to spend the time
to rewrite the whole code. Im shure u will solve the problem then:
first dont use the global arrays directly. pick the values u need and put
them in
On Fri, 2009-08-14 at 09:55 +0200, Ralph Deffke wrote:
user often leave
forms open for hours and then submit them
These users should be taken out and beaten over the head with their
keyboards!
Thanks,
Ash
http://www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
To
well thanks good they are far away then, but the problem is ur client, i
didnt find anybody giving me the permission to beat his customers
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1250236989.2344.10.ca...@localhost...
On Fri, 2009-08-14 at 09:55 +0200, Ralph Deffke wrote:
On Fri, 2009-08-14 at 10:05 +0200, Ralph Deffke wrote:
well thanks good they are far away then, but the problem is ur client, i
didnt find anybody giving me the permission to beat his customers
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
-Original Message-
From: Allen McCabe [mailto:allenmcc...@gmail.com]
Sent: 14 August 2009 06:58
My ai with using unset($var) in update_order.php is to set the
SESSION
variable for an item to ' ' (empty) so that it would not show up on
the
order summary (because my
-Original Message-
From: Ford, Mike [mailto:m.f...@leedsmet.ac.uk]
Sent: 14 August 2009 11:45
Now, here is the update_order.php code in entirety:
[code]
?php
session_start();
foreach ($_SESSION as $var = $val) {
if ($val == 0) {
unset($_SESSION[$var]);
} elseif
-Original Message-
From: Allen McCabe [mailto:allenmcc...@gmail.com]
Sent: 14 August 2009 06:58
Here is some more complete code:
[code = order_process.php]
?php
session_start();
// POST ALL $_POST VALUES, CREATE AS VARIABLES IN SESSION
foreach($_POST as $k=$v) {
Thank you all for your responses.
Mike.
I like the ii option better, mostly because I already have most of that in
place (ie. order posts to process, and process has editable fields and
hidden fields with the remaining complimentary values).
Martin suggested I use the following code for my
On Fri, Aug 14, 2009 at 12:25 PM, Allen McCabe allenmcc...@gmail.comwrote:
Thank you all for your responses.
Mike.
I like the ii option better, mostly because I already have most of that in
place (ie. order posts to process, and process has editable fields and
hidden fields with the
Thanks all for your patience! I will work on this today and write back with
any further questions I can't figure out on my own. And if anyone has any
advice I will be checking my email regularly.
If you've already tried this with no luck, please ignore -- but you
might speed up the whole
Thanks everyone for your help, I finally got it working.
For those that were curious, my writeResultRow() function was not naming the
input fields properly, so the SESSION variables could not be updated
properly. I had to add an array item for each show, an id, then call the id
to name the inputs
I am asking a similar question to one I asked yesterday (which received no
answers) with more information in the hopes someone will be kind enough to
guide me.
I have an order form populated with an array (as opposed to a database
table). The user can enter quantities, and the form posts all the
I have the following code for order_update.php:
[code]
session_start();
extract($_POST);
foreach ($_POST as $var = $val) {
if ($val 0) {
$_SESSION[$var] = $val;
} else {
unset($var);
}
header(Location: order_process.php);
}
[/code]
This is not working, however, and it
Ben,
First of all, I thank you for your time and help.
My ai with using unset($var) in update_order.php is to set the SESSION
variable for an item to ' ' (empty) so that it would not show up on the
order summary (because my writeResultRow() function will only write a row if
that variable is
14 matches
Mail list logo