Jump to content

Recommended Posts

Hi There,

 

I have an application that uses a Flash front end.  The user fills out a card.  The variables of that card are stored in an SQL Database and the recipient gets an email with a unique url to retrieve the card.

 

The problem I am faced with ... is that if the user hits their ENTER key while typing their message to create line breaks.. the line breaks are causing the SWFOBJECT Flash Embed to break.

 

The SWFOBJECT embed code looks like this

var flashvars = {

yname: "<?php print "$yname";?>",

yemail: "<?php print "$yemail";?>",

fname: "<?php print "$fname";?>",

femail: "<?php print "$femail";?>",

greeting: "<?php print "$greeting";?>",

message: "<?php print "$message";?>",

fullname:"<?php print "$fullname";?>"

};

 

 

 

The results look like this when data has been filled out

 

<script type="text/javascript">

var params = {

quality: "high",

//scale: "ExactFit",

wmode: "transparent",

menu: "false",

allowfullscreen: "true",

allowscriptaccess: "always",

bgcolor: "#014872"

};

var flashvars = {

yname: "Jonathon",

yemail: "name@email.com",

fname: "TEST",

femail: "jname@email.com",

greeting: "TESTING",

message: "Test

Test

Test",

fullname:""

};

 

 

You can see the line breaks where:

 

Test

Test

Test

 

Was typed.

 

 

Any ideas how to fix this ?

Link to comment
https://forums.phpfreaks.com/topic/226590-causing-issues/
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.