OK, let’s say my form looks like this:
<form action=’go.php’>
Now, this file go.php needs to ave fsockopen function in it, which will submit the form data onto remote server, for ex.
www.mysite.com/log.php?first=value1&second=value2
And this is the content of log.php file:
[code=php]
<?
$first = $_POST[‘first’];
$second = $_POST[‘second’];
$file = fopen(“data.txt”, “a”);
fputs ($file, ”
First: $first
Second: $secondn”);
fclose ($file);
?>
Now, I have tryed using fsockopen() and POST form examples from PHP help, but I couldn’t manage to get it working…
Oh and also, go.php cannot end with fsockopen(), because after that function is over, I need to putt
header(Location: …);
and maybe some other things, so I cannot jump out from go.php with fsockopen()..
If someone could write how the content of go.php would look like, I would appreciate it..