Re: [PHP] resubmitting $POST data to another script

2004-03-03 Thread Charlie Fiskeaux II
Chris Shiflett wrote: You might strongly consider using foreach() instead for reasons of performance (1000% or more faster): http://www.blueshoes.org/en/developer/php_bench/ You could simply: foreach ($_POST as $name => $value) { ... } Hope that helps. Sure does, thanks! -- Charlie Fiskeaux

Re: [PHP] resubmitting $POST data to another script

2004-03-03 Thread Chris Shiflett
--- Charlie Fiskeaux II <[EMAIL PROTECTED]> wrote: > I think the hidden fields idea is the best one; I finally found a > solution that uses each() and list() to travel the $_POST array, > and I think it will work nicely. You might strongly consider using foreach() instead for reasons of performan

Re: [PHP] resubmitting $POST data to another script

2004-03-03 Thread Charlie Fiskeaux II
Leif Gregory wrote: Hello Charlie, Tuesday, March 2, 2004, 1:54:43 PM, you wrote: CFI> I'm creating a form with 170 fields, and I'd like to create an CFI> intermediary page so the user can review their info before CFI> submitting it again to the emailing script. Just a thought. I'm guessing you ar

Re: [PHP] resubmitting $POST data to another script

2004-03-03 Thread Erwin Kerk
Chris Shiflett wrote: It loses all new data: Because of this: $_POST = unserialize(stripslashes($_POST['post'])); I think array_merge will fix this: $_POST = array_merge($_POST,unserialize(stripslashes($_POST['post']))); Erwin Kerk Web Developer -- PHP General Mailing List (http://www.php

RE: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Chris W. Parker
Chris Shiflett on Tuesday, March 02, 2004 3:56 PM said: > It loses all new data: [snip] > The method is fine, but it's no simpler than the other person's > suggestion when this specific scenario is considered. More logic is > necessary to prevent the loss of data.

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Leif Gregory
Hello Charlie, Tuesday, March 2, 2004, 1:54:43 PM, you wrote: CFI> I'm creating a form with 170 fields, and I'd like to create an CFI> intermediary page so the user can review their info before CFI> submitting it again to the emailing script. Just a thought. I'm guessing you are dumping this stuf

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Chris Shiflett
--- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > This method does not lose any post data as the whole $_POST array is > serialized. Then it is unserialized back to $_POST array at the second > page. It loses all new data: Because of this: $_POST = unserialize(stripslashes($_POST['post']));

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Marek Kilimajer
Chris Shiflett wrote: --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: Let's not make it complicated: confirmation.php: email.php: $_POST = unserialize(stripslashes($_POST['post'])); I think the other person's suggestion (hidden fields) was made so that the original poster doesn't lose all ot

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Chris Shiflett
--- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Let's not make it complicated: > > confirmation.php: > > > > email.php: > > $_POST = unserialize(stripslashes($_POST['post'])); I think the other person's suggestion (hidden fields) was made so that the original poster doesn't lose all other PO

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Marek Kilimajer
Let's not make it complicated: confirmation.php: email.php: $_POST = unserialize(stripslashes($_POST['post'])); Daniel Clark wrote: You could loop throught the $_POST[] data and create 170 hidden fields with about 3 lines. When you create the "view" page store all of the passed variables

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Daniel Clark
You could loop throught the $_POST[] data and create 170 hidden fields with about 3 lines. >> When you create the "view" page store all of the passed variables in >> hidden form fields. That way they can then be submitted on to the next >> script. >> > > I could do it that way, but I was hoping f

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Chris Shiflett
--- Charlie Fiskeaux II <[EMAIL PROTECTED]> wrote: > Jay Blanchard wrote: > > > When you create the "view" page store all of the passed variables in > > hidden form fields. That way they can then be submitted on to the next > > script. > > I could do it that way, but I was hoping for a way of just

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Daniel Clark
That would be a great function, but I haven't heard of anything like that. > I'm creating a form with 170 fields, and I'd like to create > an intermediary page so the user can review their info > before submitting it again to the emailing script. > > Since the form has so much data, I was hoping

RE: [PHP] resubmitting $POST data to another script

2004-03-02 Thread André Ventura Lemos
No.. o_O I'll look into that, thanks On Tue, 2004-03-02 at 21:09, Matt Matijevich wrote: > > I already tried that, but had problems with ' ' " ". > > > Did you try the htmlentities function? -- I/O, I/O, It's off to disk I go, A bit or byte to read or write, I/O, I/O, I/O... signature.asc

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Marek Kilimajer
serialize(), unserialize(), watch out for escaped quotes, you propably need to stripslashes() before unserialize(), then addslashes on each variable. Charlie Fiskeaux II wrote: I'm creating a form with 170 fields, and I'd like to create an intermediary page so the user can review their info bef

RE: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Matt Matijevich
I already tried that, but had problems with ' ' " ". Did you try the htmlentities function? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Charlie Fiskeaux II
Jay Blanchard wrote: When you create the "view" page store all of the passed variables in hidden form fields. That way they can then be submitted on to the next script. I could do it that way, but I was hoping for a way of just passing all the data at once; Since there's 170 fields, that's a lot

RE: [PHP] resubmitting $POST data to another script

2004-03-02 Thread André Ventura Lemos
I already tried that, but had problems with ' ' " ". On Tue, 2004-03-02 at 21:05, Jay Blanchard wrote: > [snip] > I'm creating a form with 170 fields, and I'd like to create > an intermediary page so the user can review their info > before submitting it again to the emailing script. > [/snip] >

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread André Ventura Lemos
I had a similar problem, but with much lesser fields, so I passed the $_POST to $_SESSION, but I guess there's a more practical way to do this, or so I hope. Having said this, I'm also interested in an answear :-) On Tue, 2004-03-02 at 20:54, Charlie Fiskeaux II wrote: > I'm creating a form with 1

RE: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Jay Blanchard
[snip] I'm creating a form with 170 fields, and I'd like to create an intermediary page so the user can review their info before submitting it again to the emailing script. [/snip] When you create the "view" page store all of the passed variables in hidden form fields. That way they can then be