AS2 contact form and php - works fine but only sends half of the text in the comments field ???
hi all - i have an AS2 contact form using php to send the info to my email address - it all works fine except this ..... rather than having an empty comments box in the flash movie i had added a whole bunch of feedback questions that the user can comment yes/no to in the comments box (my feedback questions were added into the input text box in cs3 so are there when the user opens the contact page .. i have set the maximum characters to 10000 so no worries that its that that is stopping it all coming through in the email ..... basically when i go to my form online and send it i get it through as an email but with only three quarters of the feedback text in it ...... i have tried a zillion ways a round this, tried other contact forms and php and always end up with the same problem ... any ideas any one ?
this is the AS....
stop();
a =0;
function validate () {
if (from.length>=7) {
if (from.indexOf("@")>0) {
if ((from.indexOf("@")+2)<from.lastIndexOf(".")) {
if (from.lastIndexOf(".")<(from.length-2)) {
a = 1;
// email is fine
function formcheck () {
validate ();
trace(a);
if (fname = "" or telno eq "" or comments eq "" or from eq "") {
stop();
error = "You have left blank fields, please fill in all fields, thank you";
} else {
emailcheck ();
function emailcheck (){
if (a != 1){
stop();
error = "Email address not valid";
} else {
loadVariablesNum("mail.php3", 0, "POST");
gotoAndStop(2);
..........this is the php
<?php
$adminaddress = "[email protected]";
$sitename = "Flash Site Form Mailer";
mail("$adminaddress","Info Request",
"A customer at $sitename has made the following enquiry\n
First Name: $name
Company Name: $company
Telephone: $telno
Email: $from\n
The visitor commented:
$comments
Logged Info :
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");
?>
any help much appreciated
i think you should not use $HTTP_USER_AGENT.
and use loadvars instead of loadvariablesnum:
stop();
a =0;
function validate () {
if (from.length>=7) {
if (from.indexOf("@")>0) {
if ((from.indexOf("@")+2)<from.lastIndexOf(".")) {
if (from.lastIndexOf(".")<(from.length-2)) {
a = 1;
// email is fine
function formcheck () {
validate ();
trace(a);
if (fname = "" or telno eq "" or comments eq "" or from eq "") {
stop();
error = "You have left blank fields, please fill in all fields, thank you";
} else {
emailcheck ();
var sendLV:LoadVars=new LoadVars();
function emailcheck (){
if (a != 1){
stop();
error = "Email address not valid";
} else {
sendLV.name=fname;
sendLV.telno=telno;
sendLV.company=company; //assuming company is a variable in your flash
sendLV.comments=comments;
sendLV.send("mail.php3", "POST");
gotoAndStop(2);
//..........this is the php
<?php
$adminaddress = "[email protected]";
$sitename = "Flash Site Form Mailer";
$from=?;//you need to define this variable
$name=$_POST['name'];
$telno=$_POST['telno'];
$company=$_POST['company'];
$comments=$_POST['comments'];
$body=
"A customer at $sitename has made the following enquiry\n
First Name: $name
Company Name: $company
Telephone: $telno
Email: $from\n
The visitor commented:
$comments";
mail($adminaddress,"Info Request",$body);
?>
Similar Messages
-
I have an old iPhone 3Gs with software version 4.3.5, I am trying to use it again, and it works fine, but I have not been able to update the software. Every time I try, I get the following message:
"there was a problem downloading the software for the iPhone, the network connection could not be established". This happens even though I have a working internet connection.
Besides that, all the other functions work properly, even synchronize apps and library.
Will I be able to update the software?look around the forum tons of people repport that they can't update
makes you suspect that apples update servers can't meet the depand of too many users
trying to update at once -
I just downloaded 5.2 and both my Apple TV shows and movies won't come up. Hulu and Netflix works fine, but when I go to select a purchased move or show through the apple menu, spiral comes up for about 10 seconds and then brings me back to the main page
StagLemoore wrote:
Thank you everyone for your suggestions and help. Ended up logging out of my apple ID account. Of note, when I did I did a quick test and checked out both the movies and tv show options, and it all worked perfectly. I then logged back in, and now all my purchased and rentals are available which makes sense. I guess with the update there was some weird bit of trons that required one to log out then back in. Probably doing a rest in between may not hurt for some. Thanks again for all the assistance. Cheers.
It looks like there is a Apple doc for this problem here -> Apple TV: Unable to access Movies, TV Shows, or other iTunes features after updating -
hd show i have downloaded them in the past and they work fine but now i cant buy any new ones it grayed out and wont let me click on them
If you Go to the app store on your phone, then go to updates you should have a purchased icon at the top.
Click on that and it will show the apps you have downloaded before as they are stored on the icloud.
Then you should be able to click on the app and redownload it, not sure if it will charge but its worth a try. -
I updated my airport firmware and my Imac works fine, but my two Ipads won't connect to the internet now. How can I fix this?
Did you check your wifi settings and do a reboot?
-
I have bought a docking station and my iphone works fine but my ipod mini seems to fit on the connection but only works intermittently. Is it a different connection or is there a problem with the ipod?
I think that is happening is that the microphone is on during this recording. If you play the music through the iPhone speakers, it will record this sound, albeit at very poor quality. If you say anything (or laugh uproariously as I did while watching the app in action, then that, too, get recorded.
I am still looking for the solution we all want, which is to save the audio in reasonable quality.
Anyone out there with some ideas?
Cheers,
Rob -
My 'contact' form is not working. When I send a test contact it returns to my adobe email account this:
"Contact Form" has a new form submission.What exactly is not working ? As you have mentioned form submission notification is received in your email account so form process is working I believe but you want the notifications to go to another email account I think.
Have you added the email address in "Email to" field in form options ? If yes and then also you are not receiving the form , then please provide me the site url and post a screenshot or form with option box open.
Thanks,
Sanjit -
Hi, I have a problem with my Epson Stylus NX420. I had it connected to my computer, and it worked fine. But I preformed a remodel and before the printer was connected to a windows desktop, and now it is not. I don't know if this could the be the cause of the problem. But I tried to print something and it showed me the printer as offline, but it wasn't. Thus to try to fix this, as I have done before I deleted the printer and tried to add it again. But as I went to add it, the printer was not there. I have searched the internet for an answer and I have found nothing. I do not understand why this has happened, nor how to fix it. Please help me.
Because you had the printer connected to Windows, the print queue on your Mac was for this connection. With you moving the printer away from the Windows computer, the print queue on the Mac will no longer work and will show offline. So for the new connection of the printer you have to create a new print queue.
Now the question is; how is the printer connected to the Mac. If it is connected by USB to the Mac then it should appear in the Default Add Printer view. If it is connected to the Mac via some other method, then could you reply with how it is connected.
If it is connected to the Mac by USB then the most likely cause for the printer not appearing in the Default Add Printer view is thenUSB printer cable. So try disconnecting it and reconnecting it or even try another USB printer cable. -
Hello, I have the usual issue to use AcroExch.PDDoc/AcroExch.App/AcroExch.AVDoc objects in Visual Basic (MS EXCEL). On my company's machine I have Acrobat X and everything works fine. I am looking for the cheapest solution to get the stuff running on another machine... is there any way to do that with the Acrobat SDK, or do I need to purchase a full version of Acrobat XI ($$) ?
The Acrobat SDK is nothing by itself. It is just information on how to automate Acrobat - just as the Office SDK doesn't include Office, but is for people who already have purchased Office but want to automate it.
These automation things are MARKETING TOOLS FOR ACROBAT. Consider this and the technical limitations make a lot more sense.
So, yes, you need to buy Acrobat. Standard is cheaper than Pro. -
I licensed PS Tuesday and used it fine but today it is not reactive - What is the problem
I recenly decided PS3 was no longer working for me so installed the trial for new PS and it worked great so I licensed it Tuesday and it worked well but cant get it to work today. it opens but is not reactive.
Spent hours on hold but cant get any help.Why bother posting a reply like this - maybe english is not the posters natural language?
There are many more polite ways of hinting that more information would help in resolving the issue. "Little Universe of Odd Terminology" that's just rude!
Fred: Would you provide some more detail as to the problem you are having. Can you describe what is not working for you? -
Umm, not many details really. Recaptcha still works with other websites. Library.nu doesn't list any popups or images as blocked. The site works fine with chrome and opera
If images are missing then check that you aren't blocking images from some domains.
*Check the permissions for the domain in the current tab in "Tools > Page Info > Permissions"
*Check that images are enabled: Tools > Options > Content: [X] Load images automatically
*Check the exceptions in "Tools > Options > Content: Load Images > Exceptions"
*Check the "Tools > Page Info > Media" tab for blocked images (scroll through all the images with the cursor Down key).
If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.
Make sure that you do not block third-party images permissions.default.images
*http://kb.mozillazine.org/Images_or_animations_do_not_load
There are also extensions (Tools > Add-ons > Extensions) and security software (firewall, anti-virus) that can block images.
*https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
I have never had this problem before and it is happening on multiple computers. Firefox freezes for several minutes then unfreezes and works fine for awhile, then freezes again. Happening on two computers but not on other two only since 3.6 update. Please, help, as my brand new computer is doing this. It is not my ISP and does not happen on IE. Thanks!
Firefox Hangs
https://support.mozilla.com/en-US/kb/Firefox%20hangs
Check and tell if its working. -
Email @me and gmail work fine, but not from iPhoto
e-mail works fine, checked all connections, PWs etc., but not when sending photos from iPhoto; error message is :The email server didn't recognize your username/password combination. I've checked both in email accounts and reset both.
What are you settings in the iPhoto Preferences > General?
If you have set "Email photos using iPhoto", change this to "Email photos using Mail". This works more reliably. -
Pretty much the title - Wi-Fi seems to be fine, I'm using my laptop at the moment and internet's working fine. Safari works on my iPod touch also, but not Facebook or Youtube. These are at their latest versions, and the iPod is at its latest version too...anyone had the same problem / know what to do?
Are Restrictions turned on? Go to Settings > General > Restrictions. If it says "On", enter your Restrictions password and see if Facebook and YouTube are turned off.
-
I using IBM Flex hardware and firefox is the recommended browser. I cannot access one of the IO modules in the chassis I get the error sec_error_bad_der and problem loading page. Other IO modules are fine and it works in IE and Chrome I have uninstalled and reinstalled the browser. Please can you assist.
I had to look that one up: [http://pic.dhe.ibm.com/infocenter/flexsys/information/index.jsp?topic=%2Fcom.ibm.acc.8721.doc%2Fio_modules.html]
That error normally refers to an ssl cert error. Does the cert for that particular node use ssl3? [http://pic.dhe.ibm.com/infocenter/flexsys/information/index.jsp?topic=%2Fcom.ibm.acc.8731.doc%2Ftroubleshooting_mobile_system_management_app.html] or is it different from the others?
Manage the stored cert from the Pafe Info (right click) Security > View Certificate.
Maybe you are looking for
-
I just recently reinstalled everything on my computer and restored it from my hard drive but now, although the tumbnails are viewable and I can cut and paste the photos into other applications and view it in preview, I can't view it large, fullscreen
-
Why do we need Work Table in ODI???
Hello All, Please help me on this.. Why do we need Work table in ODI??? Why ODI is creating c$_0table_name (work table)? Thanks Ravikiran
-
Auth user in ORIG_MAIL_ACCESS or ORIG_SEND_ACCESS?
The FROM_ACCESS table provides the authenticated user address, but I want to construct a mapping (for metermaid throttling) that applies to the RCPT TO stage of the SMTP transaction. Is there a way to expose the authenticated user address to the ORIG
-
Pdf music files coming out fuzzy from pagemaker conversion
Hello, We are using the new conversion to INdesign since our printer will not support pagemaker printing now with Indesign now on our computers. When I try to convert a document with PDf Music files in it from pagemaker into Indesign they come out f
-
[SOLVED] '#' in url
This PKGBUILD has a '#' character in its URL field. By quoting the value or \-escaping the character, I can get the local package field to include the correct URL, but if I submit this to AUR, either the URL displayed on the package page is truncate