Passing variables from flash to php script - does not!

Hey everybody. I was wondering if someone could help me. I use as2 to pass a variable from flash to my php and nothing happened! Here's the action script code that I put on my button:

(release)

{

Amount.Text = 5;

Form1 = new LoadVars();

Form1.amount = amount.text;

form1.sendAndLoad ("http://mywebpage.com/test.php", rise, "POST" ');

}

The amount of '5' is now in a dynamic text field with the variable name and instance of amount (which, in the future, will be hidden). This works very well when the button is clicked. What I'm trying to do without success, is to get this value of '5' to my test.php and did echo and it happens simply not . It comes to my php script:

<? PHP

$form_inp = $_POST ["amount"];

If ($form_inp == "'")

{

Print "nothing entered < br >".

}

on the other

{

Print "you entered: $form_inp";

}

? >

I'm getting "Nothing entered" every time.

I've tried different ways for the amount.text such as:

(release)

{

Amount.Text = 5;

Form1 = new LoadVars();

Form1.amount = this. Amount.Text;

form1.sendAndLoad ("http://mywebpage.com/test.php", rise, "POST" ');

}

and

(release)

{

Amount.Text = 5;

Form1 = new LoadVars();

Form1.amount = this ._parent. Amount.Text;

form1.sendAndLoad ("http://mywebpage.com/test.php", rise, "POST" ');

}

etc...

I also tried to change the variable name in the function sendAndLoad amount to form1 as follows:

(release)

{

Amount.Text = 5;

Form1 = new LoadVars();

Form1.amount = amount.text;

form1.sendAndLoad ("http://mywebpage.com/test.php",form1, "POST");

}

and still nothing.

In my php file, I even tried the GET instead of the POST and it always turns out nothing.

<? PHP

$form_inp = $_GET['monto"];

If ($form_inp == ")

{

Print "nothing entered < br >".

}

on the other

{

Print "you entered: $form_inp";

}

? >

Additional info:  I put the .swf file and at the same level-.php file in the same folder on my server just to be safe, and the dynamic amount.text text field and button are at the same level in the .swf file.

Anyone can shed some light on my situation... pretty please? I'm out!

Thank you very much.

Ok. So, do not let this thread unanswered, after a looooooong of trial and error, I went to as3 and began to do some testing. It turned out that the register_globals was off on my site and that is why I did not receive the variable passed with the $_POST in my php. So what I finally proposed is the following:

In my fla/swf doc:

to import flash.net.URLVariables;

import flash.net.URLRequest;

import flash.net.sendToURL;

var urlVariables:URLVariables = new URLVariables;

urlVariables.amount = "5";

var urlRequest:URLRequest = new URLRequest ("http://mirador.mx/oaxaca/disco/receive_test.php");

urlRequest.data = urlVariables;

sendToURL (urlRequest);

In my php file:

$amount = $_GET ["amount"];

echo "' AMOUNT IS:". " $amount;

Now for all of you who have been following this thread, or which can be read in the future, I know that we we started with AS2 and finishing here with AS3 but I didn't know why it worked until I I'm so fed up I've changed in AS3 to see if I could understand. I, like many others I guess, felt a bit intimidated with AS3 and was unwilling to give it a try, but I highly recommend that you dive into it because once get you a grip on it is much more functional.

So I m going to mark this thread as a response and hope it saves someone else all the time and the frustration that he made me... Good programming!


Tags: Adobe Animate

Similar Questions

  • Pass Variables from Flash to PHP

    Good day nice webmates. I hace this situation:

    I created a couple of text fields in flash "check in" and "check out" to a small reservation system, where the user is supposed to enter data (two variables) and then those two dates should go to the next page of PHP (which is already done) and work with this date and other new variables... but I'm not who is the best way to "transfer" these variables of the flash in the php file...

    I would appreciate your answer, this is a very urgent question... Thanks in advance!

    Citations are missing inside of $_POST. It should be $_POST ["checkin"]

  • Send variables from flash to PHP

    Hello world
    I have a problem when sending variables from flash to PHP
    Here is the code:

    submit.onPress = function)
    {
    c = new LoadVars ();
    c.NME = "Myname"
    c.sendAndLoad ("getVars.php", reply, 'POST');
    }

    PHP code:

    <? PHP
    $name = $_POST ['nme'];
    Print 'your name is. " $name. «. < br / > ';
    ? >

    What I'm doing wrong here.
    I get an error message saying notice: Undefined index: name in \xxx\getVars.php on line 2

    Please help me. Thanks in advance

    2 things that I notice immediately

    1. you never initialize the variable 'Reply' to your sendAndLoad.
    2. you must pass a string encoded in URL variables which is ampersand delimited. Usually the returned string would look like echo ("" & result = 1 & msg = your % 20name % 20is %20 '. ") $name. ». 3rd % 3Cbr % &");

    Your mistake is that the information is not get passed correctly. I usually use $_REQUEST communication flash-php, although this should not make a difference. I've seen people use $_REQUEST for testing purposes and will then to $_POST when finished.

  • CF pass variables from Flash

    Hello:

    Basically I want Coldfusion to pass the date Flash server. But I ' #theDt # ' instead of the value of "theDt" Please see the code below:

    Thank you in advance.

    ************************************************
    theDate.cfm

    < cfsetting enableCFoutputOnly = "Yes" >
    < cfset theDt = dateFormat (now (), 'dd-mm-yyyy') >
    < cfoutput >
    & serverDate = #theDt #.
    < / cfoutput >
    *****************************************************************

    var my_lv:LoadVars = new LoadVars();
    my_lv. OnLoad = {function (success:Boolean)}
    {if (Success)}
    theDate.text = my_lv.serverDate;
    theDate.text = this ["serverDate"];
    theDate.text = this.serverDate;
    } else {}
    var localDate:Date = new Date();
    theDate.text = (localDate.getMonth()+1)+"/"+localDate.getDate()+"/"+localDate.getFullYear ();
    }
    }
    my_lv. Load("C:\\CFusionMX7\\wwwroot\\OC\\theDate.cfm");
    ***************************************************************

    my_lv. Load("C:\\CFusionMX7\\wwwroot\\OC\\theDate.cfm");

    You're not "enforcement" a page of the CF, just read the content.

    The road should be something like (if you are testing your machine):
    my_lv. Load (" http://127.0.0.1//OC//theDate.cfm"); or the corresponding URL (and the Web server must be configured to run CF pages)

    Concerning

  • Error message in the contact form - PHP script does not

    Hi, excuse my bad English.

    I have an error message when the filled contact forms:

    They are: the form of the web server PHP script is missing or PHP is configured correctly on your web hosting provider. Check the script PHP of the downloaded form correctly, then contact your webhost to see the configuration of PHP.

    The support of my server application now:

    -What version of PHP is updated?

    - And what additional adjustments are required and more?

    Unfortunately only am the user, not a programmer and do not understand a lot.

    Can help you please? Maybe someone speaks German?

    Greetings from the Germany

    Andreas

    Here's the sceens!

    Here are the options to upgrade my server!

    But I don't know PHP what settings do I need?

    And what version of PHP used Adobe Muse to this day? 5.5? 7.0? or?

    Thank you

  • Converted file from Flash to HTML5 Canvas does not publish

    Hello

    • I use a Mac.

    • I have an existing Flash file, operation which publishes fine.

    • Convert to HTML5 Canvas using the command-> convert to other Document Formats-> HTML5 Canvas

    • Do not make any changes to the settings of the HTML5 Canvas publication

    • Select "publish."

    ... The .html file displays only a blank white block, the size of the Flash file.

    I tried:

    • Create a new HTML5 Canvas file and paste the existing content in this

    • Copy the script action layers of the original in the Web a Flash file

    • Check the settings of publication for something unusual

    Any help is appreciated.

    Looks like the JSON file which poses problem. You can disable the spritesheet option in settings of publication, and then your multiple bitmap files can operate locally as well.

    Regarding Javascript errors, those that are produced inside the code CreateJS, you wouldn't want to be messing around with it! They are only security errors, or the consequence of something that does not not due to security restrictions. You will not get the errors when files are online, or if you can disable the sprite sheets, I suspect.

  • pass variables from flash to authorware

    Hello

    If I have a button in flash and want to send a string of varibales to authorware:
    -example code-
    Flash code.
    {We (Release)}
    fscommand ("variable", "var1, var2, var3, var4")
    }
    Authorware code.
    EvalAssign (EventLastMatched [#command] ^ ": = EventLastMatched [#args]")
    Trace (EventLastMatched [#args])
    ActionFuntion (EventLastMatched [#args])
    Quit()

    In the authorware file, I would like to highlight this string and breakit in authorware and apply it to the ActionFuntion.

    Help, please.

    Thanks daniel

    If you have a string "var1, var2, var3, var4" you want to get each
    element of?

    Repeat with i = 1 to LineCount (EventLastMatched [#args], ',')
    lines : = GetLine (EventLastMatched [#args], I, I, ',')
    end repeat

    Must establish each element of the sting in a separate list item in the
    linear list of lines. I really don't understand what you are tying to
    do, so I use a list here for demonstration purposes, but perhaps you
    you want to replace the second line with:

    ActionFunction (GetLine (EventLastMatched [#args], i, i, ','))

    Who will call ActionFunction each time that the loop works and send it to the
    next element in the chain. In your case, it will call...

    ActionFunction ("var1")
    ActionFunction ("var2")
    ActionFunction ("var3")
    ActionFunction ("var4")

    -What are you trying to achieve?

    Mark

    deerowbear wrote:
    > Sorry that I misunderstood. When I Trace (EventLastMatched [#args]) in authorware I have
    > get var1, var2, var3 var4. The function call an external dll, passing those
    > variables off the coast and an ActionFunction in a dll file.
    >
    > Thanks daniel
    >
    >
    >
    >

    --
    ------------------------------------------------------
    Multimedia synchronization command Authorware:

    www.authorwarextras.co.UK--> orders

    Synchronization of media with ease!

    EuroTAAC eLearning 2007
    www.eurotaac.com

    www.AuthorwareXtras.co.uk
    www.freelists.org/List/flashelearning

  • Carry-over from flash player .exe files, does not open on Windows 8

    So I transfer files to an old flash drive last night and find an old computer games that I put on in 2008 (crazy, right?), but the computer I had back then was a Windows Vista. So, in an effort to try to get these games back, I copied them on my current computer which is Windows 8. Whenever I try to open the game itself, the .exe file, it will have the little blue circle as if it loads and then everything stops and nothing will happen. I tried as an administrator, the same thing happens. I tried troubleshooting, and she added the "Windows compatibility mode: Windows Vista (Service Pack 2), but when I press"Program of Test,"nothing happens - it's all the same little blue circle loading, and then nothing happens." When it has detected additional questions, the additional question was 'Incompatible program'. Is that what I can do to open these game files? Or they will simply not work on my new computer?

    Hi Sasha,

    Thanks for posting your query on the Microsoft Community.

    This issue may have caused due to compatibility issues.

    I suggest refer you to the following article from Microsoft Help to install the program in compatibility mode.

    This article consists of the steps to change the properties of configuration file, and then try to install the program and check.

    http://Windows.Microsoft.com/en-us/Windows-8/older-programs-compatible-version-Windows

    THIRD PARTY LINK WARNING

    WARNING: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information is useful.

    Thank you.

  • Send variables from flash AS2 to php mySQL

    Hi I have a question to adobe. So I finally created a system to connect / register with php and mysql and flash as2. That works, and here's the link:lumosityentertainment.hostei.com/PhPLoginSystem.swf

    But I have a question. How to send variables from flash as2 to my mySQL database? And then how to load their MySQL to flash as2? Also when variables get edited or changed as if I had 6 gold and then now I have 7 but how do send flash that updated data in my database? I know you use php and other things but I have examples of easy php and codes as2? I'm a beginner in php, but I know a decent amount of AS2. I searched all over google and adobe for the answer forums, but none of them really helped. I am currently working on a flash game on my site and I'm doing so that players can save as their gold, armor, weapons etc and then load them by logging into their account.  Here is my game that I currently use cookies to save the data:

    lumosityentertainment.enjin.com/playfantasydreams

    var sendLV:LoadVars = new LoadVars();

    var receiveLV:LoadVars = new LoadVars();

    receiveLV.onData = function(src:String) {}

    trace (SRC);  or be it for debugging

    }

    sendLV.somedata = somedata;

    sendLV.someotherdata = someotherdata;

    sendLV.sendAndLoad ("yourphp.php", receiveLV, "POST");

    /////////////////////////////////

    ////

    PHP

    .

    .

    $somedata = $_POST ['somedata'];

    $someotherdata = $_POST ['someotherdata'];

    write to your sql

    {if (whatever)}

    echo "success";

    } else {}

    echo "failed."

    }

    /////////////////////////////////

    PS when you use the adobe forums, please check the useful/correct, if there is.

  • Why do I get a message from Script does not

    Whenever I turn on my computer and go on the internet (Firefox), I get a message from script does not always.  I always click the stop script.  For up to about half an hour, the computer is very slow and sometimes does not.  After about half an hour, the computer starts more smoothly.

    The complete message, I just had was: A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script ends.

    Script: chrome://divxhtml5/content/script.js:6

    I use norton 360 and Malwarebytes anti-malware to scan my computer for viruses and also auslogics disk defrag every week.  I also use Windows Vista, which he said can cause some problems.

    I spoke to a staff member of my internet provider who told me it was a simple problem to solve, but they could not advise me on how to do it.

    Thanks for any help.

    Hi johne278,

    Thanks for posting in the Microsoft Community.

    Please answer the question-

    This problem occur on Internet Explorer as well?

    Method-

    If the problem is specific to Firefox, so I'd like you to contact the Support of Mozilla Firefox and post a question the Mozilla Forums as well.

    We know if you need help. We will be happy to help you.

    Thank you.

  • Form of contact-checkbox PHP coding does not work

    I'm a newbie to the design of web pages, so I would be grateful if you could explain me what PHP coding I would need to "Checkbox" and where to place them in the PHP coding below. I can send the form to my email with all topics and filled in the forms with the Yes or no box.

    Only problem I have is that the part of the info in the box appear right at the top of the message electronic rather than the "Name", "Such", "Email" etc... Another half of the box appear where it suppose to be wih double position as shown below. I also want to remove the < br > e-mail message. You can also tell me how to change the color for the position so clear sound.

    I wrote the code box in BLUE for HTML and PHP coding below. Sorry for the long coding. Look forward to hearing from someone. Very much appreciated.

    Message delivered to the email address as received:

    Rear ground extension: Yes

    Two-storey rear extension: Yes
    Two-storey side extension: No
    Loft: Yes
    New Build: Yes

    Other: Yes

    Name: Test<br>
    Email: [email protected]<br>
    Contact No: 87576as<br>
    Address1: addy1<br>
    Address2: addy2<br>
    Town: town<br>
    County: county<br>
    Postcode: post<br>
    Property Type: Cottage<br>
    Property Area: None<br>
    Message:<br>
    test msg

    My HTML coding for the form:

    < div class = "contact form" >
    < form id = "form1" name = "form1" method = "post" action = "test2.php" >
    < fieldset >
    < legend > < strong privacy > < / strong > < / legend >
    < table width = "690" border = "0" >
    < b >
    < td width = "340" > < p >
    < label = 'name' class = "contactLable" > name: < / label >
    < input name = "name" type = "text" id = "name" tabindex = "10" size = "30" / >
    < /p > < table >
    < td width = "340" > < p >
    < label = "contact_number" class = "contactLable" > Contact No.: < / label >
    < input name = "contact_number" type = "text" id = "contact_number" tabindex = "20" size = "30" / >
    < /p > < table >
    < /tr >
    < /table >
    < table width = "690" border = "0" >
    < b >
    < td > < p >
    < span id = "sprytextfield1" >
    < label for class = "email" = "contactLable" > Email: < / label >
    < input name = "email" type = "text" id = "email" tabindex = "30" size = "30" / >
    < span class = "textfieldRequiredMsg" > a value is required. </span > < span class = "textfieldInvalidFormatMsg" > Invalid format. </span > < / span > < /p > < table >
    < /tr >
    < /table >
    < / fieldset >
    < fieldset >
    < legend > < strong > < facilities > project information < / legend >
    < p > < table width = "690" border = "0" >
    < b >
    < td width = "340" > < p >
    < label = "address1" class = "contactLable" > address 1: < / label >
    < input name = "address1" type = "text" id = "address1" tabindex = "40" size = "30" / >
    < /p > < table >
    < td width = "340" > < p >
    < label = "address2" class = "contactLable" > address 2: < / label >
    < input name = "address2" type = "text" id = "address2" tabindex = "50" size = "30" / >
    < /p > < table >
    < /tr >
    < b >
    < td > < p >
    < label for class = "City" = "contactLable" > City: < / label >
    < input name = "City" type = "text" id = "City" tabindex = "60" size = "30" / >
    < /p > < table >
    < td > < p >
    < label = 'County' class = "contactLable" > County: < / label >
    < input name = "County" type = "text" id = "County" tabindex = "70" size = "30" / >
    < /p > < table >
    < /tr >
    < b >
    < td > < p >
    < label for class = 'postal code' = "contactLable" > postal Code: < / label >
    < input name = "PostalCode" type = "text" id = "PostalCode" tabindex = "80" size = "10" / >
    < /p > < table >
    < td > < table >
    < /tr >
    < b >
    < td > < p >
    < label = "propertyType" class = "contactLable" > Type of property: < / label >
    < select name = "propertyType" id = "propertyType" tabindex = "90" >
    Select < option > please < / option >
    Detached < option > < / option >
    < option > combined < / option >
    < option > end of Terrace < / option >
    Mid-terrace < option > < / option >
    < option > dish < / option >
    Bungalow < option > < / option >
    Cottage < option > < / option >
    < option > other < / option >
    < / select >
    < /p > < table >
    < td > < p >
    < label = "propertyArea" class = "contactLable" > property: < / label >
    < select name = "propertyArea" id = "propertyArea" tabindex = "100" >
    Select < option > please < / option >
    < option > None < / option >
    Listed Building < option > < / option >
    Conservation Area < option > < / option >
    < / select >
    < /p > < table >
    < /tr >
    < /table >
    < /p >
    < / fieldset > < fieldset > < legend > < strong project Type > < / strong > < / legend >
    < table width = "690" >
    < b >
    < td width = "338" > < label >

    < input name = "rearExt" type = "checkbox" class = "contactCheckbox" id = "CheckboxGroup1_0" tabindex = "110" value = "rearExt" / >
    Back to the floor extension < / label > < table >
    < td width = "340" > < input name = "sideExt" type = "checkbox" class = "contactCheckbox" id = "CheckboxGroup1_1" tabindex = "120" value = "sideExt" / >
    Extension of land-side < table >
    < /tr >
    < b >
    < td > < input name = "twoStoreyRear" type = "checkbox" class = "contactCheckbox" id = "twoStoreyRear" tabindex = "130" value = "twoStoreyRear" / >
    Extension back double-decker < table >
    < td > < input name = "twoStoreySide" type = "checkbox" class = "contactCheckbox" id = "twoStoreySide" tabindex = "140" value = "twoStoreySide" / >
    Extension to two-storey side < table >
    < /tr >
    < b >
    < td > < input name = "loft" type = "checkbox" class = "contactCheckbox" id = "loft" tabindex = "150" value = "loft" / >
    Loft conversion < table >
    < td > < input name = "new construction" type = "checkbox" class = "contactCheckbox" id = "new construction" tabindex = "160" value = "newBuild" / >
    New construction < table >
    < /tr >
    < b >
    < td > < input name = type 'flat' = "checkbox" class = "contactCheckbox" id = "flat" tabindex = "170" value = "flat" / >
    Flat conversion < table >
    < td > < input name = "other" type = "checkbox" class = "contactCheckbox" id = "other" tabindex = "180" value = "other" / >
    Another conversion < table >
    < /tr >
    < /table >
    < / fieldset >
    < fieldset > < legend > < Message > < / strong > < / legend >
    < p >
    < label for the class = "message" = "contactLable" > your Message or comments: < / label >
    < name textarea = 'message' id = cols "message" = "45" lines = "5" tabindex = "190" > < / textarea >
    < /p >
    < / fieldset >
    < br / >
    < input type = "submit" name = "Submit" id = "Submit" value = "Submit" tabindex = "200" / >
    < / make >
    < / div >

    PHP code to send to my email:

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    " < html xmlns =" http://www.w3.org/1999/xhtml ">
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"
    < META HTTP-EQUIV = "refresh" content = "0; URL = thankyou.html">
    < title > < /title > E-mail form
    < / head >

    < body >
    <? PHP
    $name = addslashes($_POST['name']);
    $contact_number = addslashes($_POST['contact_number']);
    $email = addslashes($_POST['email']);

    $address1 = addslashes($_POST['address1']);
    $address2 = addslashes($_POST['address2']);
    $town = addslashes($_POST['town']);
    $county = addslashes($_POST['county']);
    $postcode = addslashes($_POST['postcode']);

    $propertyType = addslashes($_POST['propertyType']);
    $propertyArea = addslashes($_POST['propertyArea']);

    $rearExt =($_POST['rearExt'])? "" Back to the floor extension: Yes ': "" back to the floor extension: No. ";"
    $sideExt =($_POST['sideExt'])? "' Land extension side: Yes": "' land extension side: No."; "
    $twoStoreyRear =($_POST['twoStoreyRear'])? "" Two-storey rear extension: Yes ': "" extension back to two floors: No. ";"
    $twoStoreySide =($_POST['twoStoreySide'])? "" Two-storey side extension: Yes ': "" extension aside two floors: No. ";"
    $loft =($_POST['loft'])? "" Loft: Yes ":" ' Loft: No. ";"
    $newBuild =($_POST['newBuild'])? "" New generation: Yes ': "" new generation: No. ";"
    $flat =($_POST['flat'])? "' Dish: Yes": "' dish: No."; "
    $other =($_POST['other'])? "" Others: Yes ': "" others: No. ";"
    other $msg.="\n$rearExt\n$wsideExt\n$twoStoreyRear\n$twoStoreySide\n$loft\n$newBuild\n$wflat\n$;


    $message = addslashes($_POST['message']);

    You can specify which email you want your contact form to be emailed here

    $toemail = " " [email protected] "; "
    $subject = "of the Web site test."

    $headers = "MIME-Version: 1.0\n.
    ." From: \"".$name. » \ » < ". $email. "" > \n ".
    ." Content-type: text/html; charset = iso-8859-1\n ";

    $body = "name:". " $name. "" < br / > \n ".
    ." E-mail: '. '. $email. "" < br / > \n ".
    ." Contact No.: ".." $contact_number. "" < br / > \n ".

    ." Address1: ".." $address1. "" < br / > \n ".
    ." Address2: ".." $address2. "" < br / > \n ".
    ." City: ".." $town. "" < br / > \n ".
    ." County: '. '. $county. "" < br / > \n ".
    ." Postal code: ".." $postcode. "" < br / > \n ".

    ." Property type: ".." $propertyType. "" < br / > \n ".
    ." Property: ".." $propertyArea. "" < br / > \n ".

    . "Back to the floor extension:". " $rearExt. "" < br / > \n ".
    ." Land extension side: ".." $sideExt. "" < br / > \n ".
    ." Two-storey rear extension: ".." $twoStoreyRear. "" < br / > \n ".
    ." Two-storey side extension: ".." $twoStoreySide. "" < br / > \n ".
    ." Loft conversion: ".." $loft. "" < br / > \n ".
    ." New generation: ".." $newBuild. "" < br / > \n ".
    ." Dish: ".." $flat. "" < br / > \n ".
    ." Other: ".." $other. "" < br / > \n ".


    ." "Message: < br > \n".
    . $message;

    If (! ereg ("^ [a-zA-Z0-9_] + @[a-zA-Z0 - 9-] + \.")) [a-zA-Z0 - 9-------.] + $"(, $email))"
    {
    echo "is not a valid email address.  "Please return to the.
    . "previous page and try again. ';
    "exit";
    }

    mail ($toemail, $subject, $body, $msg, $headers);
    echo "thank you for your comments";
    ? >
    < / body >
    < / html >

    This topic has been moved to the Dreamweaver application development forum, which deals with PHP and other issues aside server.

    I don't know where you got your PHP script, but it's bad writing. The reason why you get no results from the boxes because the script does not add to the body of the e-mail message and submits them to the mail() function in the argument which must contain the headers. This also explains why
    is in the email, because the HTML header is in the wrong argument.

    Remove all variables of the addslashes() function assignments. For example:

    $name=addslashes($_POST['name']);
    

    must be:

    $name = $_POST['name'];
    

    The code to get the results of the check box should look like this ("isset" insert):

    $rearExt = isset($_POST['rearExt'])?"Rear ground extension: Yes":"Rear ground extension: No";
    

    Change the following line:

    $msg.="\n$rearExt\n$wsideExt\n$twoStoreyRear\n$twoStoreySide\n$loft\n $newBuild\n$wflat\n$other";
    

    to do this:

    $msg = "$rearExt
    \r\n$wsideExt
    \r\n$twoStoreyRear
    \r\n $twoStoreySide
    \r\n$loft
    \r\n$newBuild
    \r\n$wflat
    \r\n";

    Headers should look like this:

    $headers = "MIME-Version: 1.0\r\n
                From: $name <" . $email . ">\r\n
                Content-type: text/html; charset=iso-8859-1";
    

    Each line in the body of the message should be followed by a return character and line transport, not only a new line character. In addition, because you use double quotes, you need not to keep opening and closing them. Variables can be placed in quotes. The first lines should look like this:

    $body = "Name: $name
    \r\n Email: $email
    \r\n Contact No: $contact_number
    \r\n

    The final closing quotes come at the end of the $body statement, which should include the values of your boxes like this:

            Other: $other
    \r\n $msg Message:
    \r\n $message";

    The line that sends your email should look like this:

     mail($toemail, $subject, $body, $headers);
    

    There are other improvements that could be made to the script, but the ones I listed should solve your problems.

    If you are interested in learning how to properly use PHP, you might like to take a look at my book, PHP Solutions, 2nd edition. Among other things, it shows you how to create a much friendlier e-mail form which verifies the required fields and preserves user input, if errors are found.

  • script does not work in firefox, but in IE, chrome, and safari

    I have a landing page with a script of web form, www.wholewoman.com/newpages/landing/helpforcystocele.html. the script does not appear in firefox. In addition, any of our videos (served from kaltura (CDN) show up in firefox.) nor is the registration of scripts for our drupal forum. the good news is that there are a lot of firefox users worldwide. the bad news is that none of them can opt in my list, watch my videos or register for my forum. Help!

    With a .html page, it is impossible to include the HTTP headers in the page. It should be in a file external to the page setup (unless you have a very unusual configuration on your server).

    On an Apache Server, the headers are sometimes defined in a file .htaccess at the root of your site. If you view the site in an FTP program or extension, make sure that hidden files are displayed.

  • Tiara startup script does not work when running file associated with

    Hello

    I have a startup script that works correctly with tiara itself, however when I open a file associated with tiara (tdms files) the startup script does not work.  Is it possible to ensure that the script runs without worrying?  Thanks for the help!

    Bala

    Hi Bala,

    Depending on your use case, I suggest you call the next VI, which comes with LabVIEW, after your purchase VI is the creation of the data file.  Just pass the data file path in the upper part of entry and your path to the VBScript file in less than entry.

    "C:\Program Files (x 86) \National Instruments\LabVIEW 2013\vi.lib\ExportToExcel\DIAdem report Assistant Start CSC.vi '.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • WARNING the script does not have anyone can help on this?

    I get this warning whe script does not try to use firefox.

    I get sound on my computer laptop windows vists home premum.

    Hello

    I suggest that you try the Firefox Forums for assistance.

    http://forums.mozillazine.org/index.php?c=4

    See you soon.

  • Adobe Story Script does not allow me to integrate the script into Premiere Pro

    Integration with Premiere Pro Adobe story Script does not work I would like to integrate the script

    Goal: Incorporate a Story Script from Adobe in Premiere Pro. (mac)

    Method: I have a video with a text transcript.

    I inport the transcript in Adobe Story and save it in the file extension "Adobe" correct history (.astx)

    I save on the cloud to Adobe, and I also exported it to my office.

    I launch Premiere Pro and import the video that I transcribed.

    The I try one of the 3 ways to get the script of the video in PP.

    The first steps are the same as below:

    I go to Adobe Story and you connect from PP.

    I search for the file.

    I add a scene.

    Make sure that the scene is the same as it is in PP

    then...

    1.

    I drag and drop it on the movie file.

    Nothing appears in the Embed Adobe Story Script Meta Data field.

    2.

    I click on Analyze and the box integrate Adobe Story Script script remains greyed out (impossible to select)

    If I click on analyze then PP will analyze the script (does a decent job) but this isn't what I want.  I want to join the script verbatim in the video, that's why I've transcribed.

    3.

    Right click on the movie file in the PP and the context menu allows me to attach a script.

    I find my .astx file downloaded on my Mac and select it.

    Still nothing appears in the field to incorporate Adobe Story metadata.

    I worked with Anand of support suggested that I have post this question here.

    I don't know if there are only some Adobe models for which it works (IE script of TV, movies etc.)

    He suggested that this would probably work only for the formats .mov file, but then discovered that it should work, even for .mp4 files.

    In any case - if anyone has any ideas, ideas, or has experience with this it would be greatly appreciated.

    Jon

    17 views Tags: first proContent the tag with premiere pro, adobe story scriptContent script adobe story, the story adobe script in first embed tag proContent tag integrate adobe story script in first pro

    Translate

    I followed the below and so that the video above, it worked for me:

    https://forums.Adobe.com/thread/1235896?TSTART=0

Maybe you are looking for

  • Whenever I start Firefox it directed me to the unknown link-

    Whenever I started Firefox, it directed me to the link -http://istart.webssearches.com/?type=sc & ts = 1420034636 & from = kmp & uid = SAMSUNGXSV4084H_0348J1FR518681 - I don't know why I have already done some actions to remove it-> 1 Uninstall using

  • Freedoms El Capitan and Office11 or 16

    Compatibility Office 11 or 16 office with El Capitan installed on MacBook Pro (2011)

  • AutoFill on Satellite phone

    My laptop auto fills all the boxes that requires any entry with the entry several times of number 1. When I try to log on to my laptop, the password box automatically fills the password with 1 and keeps repeating. This also happens with Web pages, e-

  • How to remove the rear cover to the hard drive.

    I own a laptop, a HP Pavilion dv6, System ID 3583, product ID LY076UA. When you turn on the laptop hard disk cover has no screws, it seems to be stuck in the chassis. What to do, take a knife and try to lift up? All the diagrams that I find slightly

  • 1\4 inch input jacks

    I use Multisim and Ultiboard to build a guitar pedal. Y at - it a component of inch input jack 1\4 can I use for entry and exit, or any other method to represent these elements?