Jump to content

<ENTER KEY> Causing issues


applauz

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: "[email protected]",

fname: "TEST",

femail: "[email protected]",

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

Archived

This topic is now archived and is closed to further replies.

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