Re: [PHP] Using Header() to pass information...

2006-04-25 Thread Richard Lynch
On Sat, April 22, 2006 10:15 am, Todd Cary wrote: if ($send) header(location: mypage.php?message= . $message); the data ($message) is passed in the URL. Is there a way to pass the data as though it was a POST method i.e. not in the URL? Without copying and pasting a lot of bits and

Re: [PHP] Using Header() to pass information...

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 2:12 am, Richard Lynch wrote: I left out some steps... 1. Writes a bunch of data to hard drive in $_SESSION Or to your db, which ends up on your hard drive anyway, most likely. Okay, this bit could get real complicated and picuyane, but let's just agree that it uses up

Re: [PHP] Using Header() to pass information...

2006-04-25 Thread Stut
Richard Lynch wrote: If you are doing your sanitization/filtering/validation correctly, you shouldn't even be READING $_POST after the first 3 lines of your PHP code anyway. (Okay, maybe first 10 lines.) The same goes for $_GET data also. The longer you use header(Location: ...) the more

Re: [PHP] Using Header() to pass information...

2006-04-25 Thread Robert Cummings
On Tue, 2006-04-25 at 13:47, Stut wrote: Richard Lynch wrote: If you are doing your sanitization/filtering/validation correctly, you shouldn't even be READING $_POST after the first 3 lines of your PHP code anyway. (Okay, maybe first 10 lines.) The same goes for $_GET data also. The

Re: [PHP] Using Header() to pass information...

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 12:47 pm, Stut wrote: As long as we're throwing foreign money into the ring, I'd just like to say that I make a point of redirecting to another page after a post request, otherwise you get unsightly errors in the browser when the user tries to use the back/forward

Re: [PHP] Using Header() to pass information...

2006-04-25 Thread Stut
Richard Lynch wrote: On Tue, April 25, 2006 12:47 pm, Stut wrote: As long as we're throwing foreign money into the ring, I'd just like to say that I make a point of redirecting to another page after a post request, otherwise you get unsightly errors in the browser when the user tries to use the

Re: [PHP] Using Header() to pass information...

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 4:47 pm, Stut wrote: 3b) User clicks on a normal link, goes to another page then hits back... user sees an evil-looking and unexpected question asking whether to resubmit the form values. Most users I know will hit OK because they don't understand it. This is bad, form

[PHP] Using Header() to pass information...

2006-04-22 Thread Todd Cary
If I use if ($send) header(location: mypage.php?message= . $message); the data ($message) is passed in the URL. Is there a way to pass the data as though it was a POST method i.e. not in the URL? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Using Header() to pass information...

2006-04-22 Thread Jim Lucas
Todd Cary wrote: If I use if ($send) header(location: mypage.php?message= . $message); the data ($message) is passed in the URL. Is there a way to pass the data as though it was a POST method i.e. not in the URL? Todd you should look into using sessions to store the data maybe? As

Re: [PHP] Using Header() to pass information...

2006-04-22 Thread Jochem Maas
Todd Cary wrote: If I use if ($send) header(location: mypage.php?message= . $message); the data ($message) is passed in the URL. Is there a way to pass the data as though it was a POST method i.e. not in the URL? probably, but I don't know how off the top of my head. look into using

Re: [PHP] Using Header() to pass information...

2006-04-22 Thread Stephen Lake
Where's Chris when we need him? I would be interested in also hearing his thoughts here too. Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Todd Cary wrote: If I use if ($send) header(location: mypage.php?message= . $message); the data ($message) is passed in

Re: [PHP] Using Header() to pass information...

2006-04-22 Thread M. Sokolewicz
Jochem Maas wrote: Todd Cary wrote: If I use if ($send) header(location: mypage.php?message= . $message); the data ($message) is passed in the URL. Is there a way to pass the data as though it was a POST method i.e. not in the URL? probably, but I don't know how off the top of my

Re: [PHP] Using Header() to pass information...

2006-04-22 Thread Todd Cary
M. Sokolewicz wrote: Jochem Maas wrote: Todd Cary wrote: If I use if ($send) header(location: mypage.php?message= . $message); the data ($message) is passed in the URL. Is there a way to pass the data as though it was a POST method i.e. not in the URL? probably, but I don't know