Jump to content

zzdobrusky

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

zzdobrusky's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. "" and "_blank" gives the same problem, it looks like it depends on php print function and how php script is called, this seems to work: in Flash: //this will be used to get variable back from php script recVars.txt = ""; //I don't know what this is for var result_lv:LoadVars = new LoadVars(); gatherForm.sendAndLoad("send_mail.php", result_lv, "POST"); in PHP: <?php //create short variable names $name=$_POST['visitor_name']; $email=$_POST['visitor_email']; $subject=$_POST['visitor_subject']; $message=$_POST['visitor_comments']; $name=trim($name); $email=trim($email); $subject=StripSlashes($subject); //lets make the message more explaining $message="Name: $name\nEmail: $email\nComments: " . StripSlashes($message); //email address where to mail the content of form to $toaddress=$_POST['email_to']; mail($toaddress,$subject,$message,"From: $name <$email>"); //clear the variables $name=''; $email=''; $subject=''; $message=''; //echo "I don't want this page open!!!!"; //now it si sending back variable recVars to flash, this will prevent opening the separate browser window print "recVars=OK"; ?>
  2. unfortunately I am calling php from flash site by gatherForm.send("send_mail.php", "_blank", "POST") and this is my simple php script that seems to work ok exept that it opens a separate browser window: <?php //create short variable names $name=$_POST['visitor_name']; $email=$_POST['visitor_email']; $subject=$_POST['visitor_subject']; $message=$_POST['visitor_comments']; $name=trim($name); $email=trim($email); $subject=StripSlashes($subject); //lets make the message more explaining $message="Name: $name\nEmail: $email\nComments: " . StripSlashes($message); //email address where to mail the content of form to $toaddress=$_POST['email_to']; mail($toaddress,$subject,$message,"From: $name <$email>"); //clear the variables $name=''; $email=''; $subject=''; $message=''; echo "I don't want this page open!!!!"; ?>
  3. I have a contact form and when I click submit it calls a php script and opens a separate browser window, in that window I can put an answer like "Thank you for your request" or something, the catch is that I already have a Thank you page in my flash site and I don't need to have that separate browser window open. It should be more clear when testing it on contact page at www.photographybymiro.com. I found this but I am still lost: "I think you're looking at an issue with the PHP script, and not Flash. You need to tell your PHP script to return a variable instead of printing HTML. " thanks, Zbynek
  4. Hi, my formulation may not be correct but there seems to be no answers online. I have a simple email contact form that is executed from flash website (photographybymiro.com) and I would like to not have any browser window open when the sendMail.php script is called through POST. Is there a way to execute php "silently"? Thanks for any help, Zbynek
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.