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
 [EMAIL PROTECTED]


"Nick Davies" <[EMAIL PROTECTED]> wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to