Post, Post Parameter and Forward

Image previewer add-on.
Post Reply
peachey777
Posts: 1
Joined: Thu Jun 17, 2010 2:36 pm

Post, Post Parameter and Forward

Post 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

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Post, Post Parameter and Forward

Post 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?

Post Reply