Reply to Re: POST variables with a form

Your name:

Reply:


Posted by Gav on 08/01/07 22:09

In article <1185995078.341273.207310@22g2000hsm.googlegroups.com>,
dkruger <davidkruger@techie.com> wrote:
> On Aug 1, 1:09 pm, I wrote:
> > I'm wanting to send POST data to a script, but without it being sent
> > via the action of a form being posted - in other words I want to
> > re-direct to a page but have the POST data filled in for the page to
> > deal with.
> >
> > Is there a way to do this without using Session control?
> > I don't really want to go and change a whole bunch of old scripts to
> > implement sessions, so I was hoping to be able to use something like
> > header() to fill in the $_POST array before redirecting.

> Instead of using post, you could send the data on the address bar
> using GET instead of POST. You use it basically just like $_POST,
> except that you use $_GET instead, all of the variables are passed in
> the url with get as well, which maybe would make this method unuseful.

Firstly, I should just point out that I got the subject line wrong, it
should have read _without_ a form - oops! Hopefully everyone understood
from the my posting what I was meaning.


Anyway, thanks for your suggestion David. I didn't want to use GET as I
don't want the data to be visible, and in any case, that still means
changing the way the receiving script(s) handles the data that is
passed to it, which I didn't want to have to alter. If was going to
alter the original scripts I would make them use session control.

--
Gav

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация