Jump to content


Photo

Need some help


  • Please log in to reply
2 replies to this topic

#1 paultfh

paultfh
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 20 July 2006 - 10:48 PM

What I'm trying to do is after the file is created in the following script, I want to open another page and pass it a few variables. I don't know how to do that.



if($_SERVER['REQUEST_METHOD'] == 'POST') {

                if(isset($_REQUEST['getfile']) && count($_SESSION['binary']) > 0) {
$str = $fileclass->genfile($_SESSION['binary']);

$newfile = "/files/myfile.nnn";
$fh = fopen($newfile, 'w') or die("Can't open file");
fwrite($fh, $str);
fclose($fh);

exit;
        }
}



#2 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 20 July 2006 - 10:57 PM

what do you mean by pass it a few variables?
Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...

#3 paultfh

paultfh
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 20 July 2006 - 11:03 PM

For example, when you post something using forms, it passes the input of the forms onto the page being called.

When a user creates a file with the previous code, I want to go to a form page where the user can input some information about the file created. I need the location of the file to be passed to the next page.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users