Hi all, this is my first post here, I'm having a Flash/PHP issue with the _session array. I'm fairly new to PHP, so be gentle 🙂
If you go here and click on UPLOAD in the top right, first you will be prompted for an email, then for an upload.
When you click the MOVE ON button in the first prompt, it calls this php code:
<?php
session_start();
$_SESSION['emailAddr'] = $_POST['emailAddr'];
?>
Then after the file is uploaded, this PHP script is called (I've omitted the upload code):
<?php
session_start();
$subject = "blah";
$message = "Customer Email: ".$_SESSION['emailAddr'];
$to = "my email";
mail( $to, $subject, $message ) or print "Could not send mail";
?>
The problem I'm having is that the second script is not seeing the _session variable, so somehow in between the two scripts, the session is getting destroyed. Does anyone know why? Any help is greatly appreciated!
m