Page 1 of 1

Post, Post Parameter and Forward

Posted: Thu Jun 17, 2010 2:44 pm
by peachey777
I'm having trouble getting Post, Post Parameter and Forward to work together.

Code: Select all

document.write('post="http://url.com/test.php" ');
document.write('postparameters="true" ');
document.write('forward="http://url.com/test.php" ');
And

Code: Select all

document.writeln('<PARAM NAME="post" VALUE="http://url.com/test.php">');
document.writeln('<PARAM NAME="postparameters" VALUE="true">');
document.writeln('<PARAM NAME="forward" VALUE="http://url.com/test.php">');
This forwards me to the url but the post doesn't work. My file test.php uses this code

Code: Select all

foreach ($_POST as $var => $value) {
echo "$var = $value<br>";
} 
I'm pretty sure my PHP code is fine. I changed $_POST to $_GETand tried it with forwardparameters and it worked just fine. Also I know url.com isn't right. This is for a client and they don't want there URL shown until the site is finished. Can anyone see what I'm doing wrong?

Thanks

Re: Post, Post Parameter and Forward

Posted: Sat Jun 19, 2010 10:49 am
by support
POST parameters should be there, it works for us:

Code: Select all

  while (list ($header, $value) = each ($_POST))
  {
    fwrite($lg," ".$header."=".$value."\r\n");
  }
Can you remove "forward" lines and try again?
Also, which PHP version are you using?