capopro Posted November 11, 2010 Share Posted November 11, 2010 Somebody please help! I've build a website in Flash with use of some php scripting, needed for the mail forms. The problem is, when a visitor fills out the form and want to send, a text with "undefined" appears in stead of "success, your mail has been sent". But the strange thing is that it does not always happen. It happens randomly on different computers. So yesterday appears "undefined" when I tried to send, but today I tried it for several times, and every single time works perfect. So does anyone here might have a solution? The link to the website is; www.pose-studio.nl >>Dutch language! And here is one of the php script; <?php ############################################################################### # E-mail Form + Autoresponder by Laiverd.COM # Copyright Laiverd.COM - 2003 # Version 1.0 # Function: this file will use input from a flash form and send it to whomever # is defined in the variable destinationAdress. It also sends an autorespond # message ############################################################################### # Destination Email Adress :: FILL IN DESTINATION EMAIL ADRESS $destinationAdress="reserveringen@pose-studio.nl"; ############################################################################### # Date and time $nowDay=date("d.m.Y"); $nowTime=date("H:i:s"); ############################################################################### $naam = $_POST['naam']; $email = $_POST['email']; $opmerking = $_POST['opmerking']; ############################################################################### # Body content $FormContent="Message date = $nowDay at $nowTime ---------------------------------------------------------------------------- PARTYSHOOT Van: $naam E-mail: $email Opmerking: $opmerking ---------------------------------------------------------------------------- "; # mail($destinationAdress, "$subject [ from $naam ]", $FormContent, "From: $email"); # # Autoresponder ############################################################# # $filename = "respond.txt"; $fd = fopen( $filename, "r" ); $start = "Beste ".$fullName."\n\n"; $contents = fread( $fd, filesize( $filename ) ); $mailContent = $start.$contents; fclose( $fd ); mail( "$email", "VRAGEN, OPMERKINGEN, WENSEN EN IDEEEN", "$mailContent\n", "From:reserveringen@pose-studio.nl\n" ); # # Flash mailResult Variable ; sent to flash ###################################################### # $mailResult="<u>SUCCESS</u><br>Uw bericht is verzonden."; echo "mailResult=$mailResult"; # ############################################################################### ?> Quote Link to comment https://forums.phpfreaks.com/topic/218440-undefined/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.