Re: POST conversion.

From: Date: Thu, 15 Mar 2001 15:33:51 +0000
Subject: Re: POST conversion.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-44073@lists.php.net to get a copy of this message
alot of times when people ask this question they are sking the quesion because they are coding this logically incorrect, Im sure this isnt that case for you though. <?php function make_args() { global $HTTP_POST_VARS; if (isset($HTTP_POST_VARS)) { foreach($HTTP_POST_VARS as $pos=> $val) $args[] = "$pos=$val"; if (isset($args)) return urlencode('?'. implode('&', $args)); } } echo " <form method='post' action='$PHP_SELF'> <input type='text' name='form_text' value='". @$form_text ."'> <input type='submit' name='done' value='Submit'> </form> <a href='index.php". make_args() ."'>index</a> "; ?> -- Chris Lee lee@mediawaveonline.com "Nick Davies" <nick@sensei.co.uk> wrote in message news:Pine.LNX.4.21.0103151531550.8681-100000@server.sensei.co.uk... Hi (again). Is there a simple was to take post data from a form and create a query string out of it? Thanks. Nick. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#44073) next »