Jump to content

"undefined"


capopro

Recommended Posts

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?  :confused:

 

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";

#

###############################################################################

?>

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.