Re: How to post from a php script

From: Date: Mon, 12 Aug 2002 15:39:15 +0000
Subject: Re: How to post from a php script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-112154@lists.php.net to get a copy of this message
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 (#112154) next »