applauz Posted February 3, 2011 Share Posted February 3, 2011 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 More sharing options...
Maq Posted February 3, 2011 Share Posted February 3, 2011 If I am understanding your issue, you can just replace the newlines with nothing: message: "", Link to comment https://forums.phpfreaks.com/topic/226590-causing-issues/#findComment-1169498 Share on other sites More sharing options...
applauz Posted February 3, 2011 Author Share Posted February 3, 2011 I just tried your method... it didnt do anything at all. Its still showing the line breaks. Link to comment https://forums.phpfreaks.com/topic/226590-causing-issues/#findComment-1169500 Share on other sites More sharing options...
Maq Posted February 3, 2011 Share Posted February 3, 2011 I just tried your method... it didnt do anything at all. Its still showing the line breaks. If you are on a windows machine, you should use: message: "", Link to comment https://forums.phpfreaks.com/topic/226590-causing-issues/#findComment-1169506 Share on other sites More sharing options...
applauz Posted February 3, 2011 Author Share Posted February 3, 2011 Strange... the line breaks are still happening. Link to comment https://forums.phpfreaks.com/topic/226590-causing-issues/#findComment-1169510 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.