Re: How to post from a php script

From: Date: Mon, 12 Aug 2002 17:11:16 +0000
Subject: Re: How to post from a php script
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-112177@lists.php.net to get a copy of this message
Thanks for your reply, but I can see a couple of potential problems with this ;- 1) This relies on the user having javascript enabled in their browser settings. 2) The page has to be fully loaded in the client browser before the redirect takes place, this means it will perform more slowly than a server side redirect. Is this the only solution or are there other work-arounds ? Thanks Rick Kai Hinkelmann <khinkelmann@e-h.de> wrote in message news:20020812154409.87944.qmail@pb1.pair.com... > Create a form only with hidden-fields (your values) and no visible fields or > buttons. The "action=" is set to the next file, the method ist set to POST > (of course). Don't use php-header to redirect but javasript. If you want to > redirect immediately you can write "onLoad=document.forms[0].submit()" in > the body tag. Else start a timer at onLoad and call submit() in the > timer-function. > > Good luck > > Kai > > > "Rick Horrix" <rick@fourfront.ltd.uk> schrieb im Newsbeitrag > news:20020812145500.45338.qmail@pb1.pair.com... > > I want to POST variables from one php page to another without any user > > interaction. > > I can achieve this using header( "Location ...?var1=xx&var2=yy" ) passing > > the vars like a GET, but I don't want the vars to be visible to the user > in > > the browser address field. Is it possible to do this. > > > > TIA > > smartbloke > > > > > >

« previous php.general (#112177) next »