Php post

i am using a button to call a php url and i want to pass the parameters by POST method , to hide them. How can i do this specifically?
Thanks,
Ray McCormack
University of San Diego

I came up with the idea of creating a html region as such
<html>
<head>
</head>
<body><FORM ACTION="http://home.sandiego.edu/~thor/test.php" METHOD="post">
<INPUT TYPE="HIDDEN" NAME="P3_PNAME" value="test1">name?
<INPUT TYPE="HIDDEN" NAME="P3_PFINAID_OFFERED" value="test2">finaid?
<INPUT TYPE="HIDDEN" NAME="P3_POTHER_OFFERED" value="test3">other?
<INPUT TYPE="SUBMIT">
</FORM>
</body>
</html>
and using this button to submit to my php page. However i get the error 'The requested URL /pls/htmldb/wwv_flow.accept was not found on this server.'
WHY>?
Thanks,
Ray McCormack

Similar Messages

  • Php post name & age to MySql database

    Back to the basics.
    I have a simple form to post in my database.
    Can anybody suggest how I make a variable to catch the list selection and text field?
    Your name: A value is required.
    Your age: 22
    23
    24
    25
    then below is the action.php file that posts to the page first, and to the db.
    It works except I don`t get the input values passed into the db.
    I get name & age (no numbers and only the default `name`)
    Hi .
    You are years old.
    Thank you for any help!

    I declared the variables in the php file, and it works now thank you.
    <?php $name=$_POST['name'];$age=$_POST['age'];?>
    <?php mysql_query("INSERT INTO example
    (name, age) VALUES('$name', '$age' ) ")
    or die(mysql_error()); 
    echo "Data Inserted!";?>
    I have 2 questions about this;
    1.) Is this the proper format or does the var declaration go inside the other php code?
    2.) how would I add the function to the above code to stop SQL injection?
    Here is what I found, just not sure where to put it:
    //NOTE: you must be connected to the database to use this function!
    // connect to MySQL
    $name_bad = "' OR 1'";
    $name_bad = mysql_real_escape_string($name_bad);
    $query_bad = "SELECT * FROM customers WHERE username = '$name_bad'";
    echo "Escaped Bad Injection: <br />" . $query_bad . "<br />";
    $name_evil = "'; DELETE FROM customers WHERE 1 or username = '";
    $name_evil = mysql_real_escape_string($name_evil);
    $query_evil = "SELECT * FROM customers WHERE username = '$name_evil'";
    echo "Escaped Evil Injection: <br />" . $query_evil;

  • Contact Form (php)  - how to prevent new window...

    My contact form works just fine, however, I currently have
    the target set to "_blank" which is not what I want.
    Rather than opening the .php file open in a new window, I
    just want to go to a new frame (labeled "success" or "error")
    within my flash file (which currently works fine)
    So, my question is how do I send the form information to my
    php file WITHOUT having to open a new window outside of my flash
    file since I'm sending the user to new frame instead.
    FYI: I've already tried removing "_blank" but it still opens
    the php file in a new browser window.
    My code below:
    on (release){
    var my_lv:LoadVars = new LoadVars();
    my_lv.fullName = fullName_txt.text;
    my_lv.email = email_txt.text;
    my_lv.emailMessage = emailMessage_txt.text;
    if(fullName_txt.text != "" && email_txt.text != ""
    && emailMessage_txt.text != "") {
    my_lv.send("contact.php","_blank","POST");
    gotoAndStop("success");
    else {
    gotoAndStop("error");
    Any help is greatly appreciated.
    Yvonne

    Thanks for your help, Zupko.
    I tried your suggestion but I'm still experiencing the same
    problem. A new window still opens. Perhaps I'm doing something
    wrong?
    My code with your suggestion below:
    on (release){
    var my_lv:LoadVars = new LoadVars();
    my_lv.fullName = fullName_txt.text;
    my_lv.email = email_txt.text;
    my_lv.emailMessage = emailMessage_txt.text;
    if(fullName_txt.text != "" && email_txt.text != ""
    && emailMessage_txt.text != "") {
    loadVariables("contact.php","POST");
    gotoAndStop("success");
    else {
    gotoAndStop("error");
    Your help is very much appreciated!
    Yvonne

  • How to get Checkbox Value from Flex in PHP.

    Hi,
    I need to know how to get a checkbox value from flex in PHP-POST/GET because I don't know what is the value property of a checkbox in flex.
    Please Help.

    Hi,
    It is very simple. Follow the steps below to achieve the solution,
    1. Write a check-box change event to capture the value of the check box. Store this value in a variable(say bolChkSelected:Boolean).
    2. In step 1 you got the value of the check box. Now your aim is to send the value to php. Declare a httpService in your flex application(i think you are aware of using it).Ok..im writing it
    <mx:HTTPService id="sampleService" resultFormat='e4x' url='http://yourdomain/file.php' result='handleResult()' fault='handleFault()'>
    </mx:HTTPService>
    3. Now the actual solution... u need to send the shcStatus in to php..
    Declare an object to hold the data
    var objparameters:Object={};
    objparameters['CheckBoxdata'] = bolChkSelected;
    --in the above line... 'CheckBoxdata' is used as a parameter to php..you shud have the same variable name while accessing in php file also..
    in php file..
    checkboxstatus = $_POST[''CheckBoxdata''];
    echo checkboxstatus
    thats it..

  • Issue: Flash radio buttons & Php form

    I have a flash form which all of the fields are sending
    correctly
    through the php code. The flash radio buttons I added with
    the
    groupname == topic, doesnt send with the rest of the
    information that is being sent to the email. My question is
    how do I get
    the flash radio button info to submit with the rest of the
    form.
    The code for the send button on my flash file:
    on (release) {
    // send variables in form movieclip (the textfields)
    // to email PHP page which will send the mail
    form.loadVariables("form.php", "POST");
    ===============================================
    ===============================================
    Form.php:
    <?php
    $to = "[email protected]";
    $subject = "Contact Page Information for Today";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $message .= "\n\n";
    $message .= "Subject: " . $_POST["topic"] . "\r\n";
    $message .= "Email: " . $_POST["email"] . "\r\n";
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "Address: " . $_POST["address"] . "\r\n";
    $message .= "City: " . $_POST["city"] . "\r\n";
    $message .= "State: " . $_POST["state"] . "\r\n";
    $message .= "Zip Code: " . $_POST["zip"] . "\r\n";
    $message .= "Phone: " . $_POST["phone"] . "\r\n\n";
    $message .= "Message: " . $_POST["message"] . "\r\n";
    mail($to, $subject, $message, $headers);
    ?>
    Text

    Do you mean like this:
    <?php
    var topic;
    var listenerObject:Object = new Object();
    listenerObject.click = function(eventObj:Object) {
    topic = eventObj.target.data;
    trace(topic)
    groupTopic1_rb.addEventListener("click", listenerObject);
    groupTopic2_rb.addEventListener("click", listenerObject);
    groupTopic3_rb.addEventListener("click", listenerObject);
    groupTopic4_rb.addEventListener("click", listenerObject);
    groupTopic5_rb.addEventListener("click", listenerObject);
    groupTopic6_rb.addEventListener("click", listenerObject);
    groupTopic7_rb.addEventListener("click", listenerObject);
    groupTopic8_rb.addEventListener("click", listenerObject);
    groupTopic9_rb.addEventListener("click", listenerObject);
    groupTopic10_rb.addEventListener("click", listenerObject);
    groupTopic11_rb.addEventListener("click", listenerObject);
    groupTopic12_rb.addEventListener("click", listenerObject);
    groupTopic13_rb.addEventListener("click", listenerObject);
    groupTopic14_rb.addEventListener("click", listenerObject);
    $to = "[email protected]";
    $subject = "Contact Page Information for Hope Today";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $message .= "\n\n";
    $message .= "Subject: " . $_POST["topic"] . "\r\n";
    $message .= "Email: " . $_POST["email"] . "\r\n";
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "Address: " . $_POST["address"] . "\r\n";
    $message .= "City: " . $_POST["city"] . "\r\n";
    $message .= "State: " . $_POST["state"] . "\r\n";
    $message .= "Zip Code: " . $_POST["zip"] . "\r\n";
    $message .= "Phone: " . $_POST["phone"] . "\r\n\n";
    $message .= "Message: " . $_POST["message"] . "\r\n";
    mail($to, $subject, $message, $headers);
    ?>

  • Using LoadVars in SSAS to send data to a php file

    I am using FMS 4.5 and have a simple application which I want to use to send two strings to a php file. But I get a compilation error whenever I try to assign any value to these objects:
    Here is main.asc:
    <code>
    var variables = new LoadVars();
    variables.username = "uname";
    variables.send(http://url.abc.com/test.php,POST)
    </code>
    I can't compile with the second line. FMS just says: Sending error message: Compilation error
    How do I send variables to a HTTP URL?

    However that should be fine..
    This is sample way to send data using LoadVars
    var my_lv = new LoadVars();
    my_lv.name= "myname";
    my_lv.send("http://server/test.php", "_blank", "POST");
    Try keeping url and and POST method within "quotes". Also, method [POST/GET] is third parameter, second is target where results must be loaded (if any)..

  • Sending an Email with PHP - having problems

    Hi, I'm working with actionscript 2.0 in flash cs3 and trying
    to get input text to POST to my email.php file which in turn will
    mail that info to my email account. I'm having no luck, i get no
    email at all, and can not figure out why. As far as i can tell,
    everything is set up properly. I don't think it's an issue with
    GoDaddy's hosting... but im not certain. Help would be greatly
    appreciated! here the php code i have:
    <?php
    $sendTo = "[email protected]";
    $subject = "site reply";
    $headers = "From: " . $_POST["firstName"] ." ".
    $_POST["lastname"] . "<" . $_POST["email"] .">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-path: " . $_POST["email"];
    $message = $_POST["message"];
    mail($sendTo, $subject, $message, $headers);
    ?>
    all the vars seem to be named correctly.
    and this is what the submit button does.
    on (release) {
    form.loadVariables("email.php", "POST");
    }

    Could you elaborate or point me to a sample? I'm very new to
    php and how it works. thanks for the help. if you have any idea of
    its a server issue please point me in the right direction to
    correct it.
    below is my new code... still not emailing but the info is
    echoing.
    <?php
    $sendto = '[email protected]';
    $subject = ' test ';
    ini_set("sendmail_from",
    $_POST["fromname"],$_POST["fromsub"],$_POST["fromemail"],$_POST["frommessage"]);
    $headers = "From: " . $_POST["fromname"] ." ".
    $_POST["fromsub"] . "<" . $_POST["fromemail"] .">\r\n";
    $headers .= "Reply-To: " . $_POST["fromemail"] . "\r\n";
    $headers .= "Return-path: " . $_POST["fromemail"];
    $message = $_POST["frommessage"];
    mail($sendto,$subject,$message,$headers);
    echo $sendto,$subject,$message,$headers
    ?>

  • Problem With Submitting Data to Php Mail Script.

    So i am working with this Flash template that my boss purchased. It has a contact form, you are supposed to be able to fill it out, and it sends an email to a specified email address.
    However, it does not work. At all!
    There are 4 Fields on the form
    name
    email
    phone
    message
    The Code for the Submit Button is
    -----Button Code-----
    onClipEvent(load){this.t.v =  _root.contacts_txt7;}
    on (rollOver) {this.gotoAndPlay("s1");}
    on (rollOut) {this.gotoAndPlay("s2");}
    on(release){
              _parent.loadVariables("inc/mail.php", "POST");
    ----Button Code-----
    The php script is
    ---------------Php Script------------------
    <?
    $name=$_POST['name'];
    $email=$_POST['email'];
    $phone=$_POST['phone'];
    $message=$_POST['message'];
    $ToEmail = "email@here";
    $ToSubject = "Message from your site";
    $EmailBody =   "Name: $name\n
                                            Email: $email\n
                                            Phone: $phone\n
                                            Message: $message\n";
    $Message = $EmailBody;
    $headers .= "Content-type: text; charset=iso-8859-1\r\n";
    $headers .= "From:".$name." / ".$email."\r\n";
    mail($ToEmail,$ToSubject,$Message, $headers);
    ?>
    ------------Php Script------------
    It seems like it should work. The mail function on the server works, as I am able to setup a basic php contact page, and it works, however, he wants this flash contact form. It's as if the flash is not sending anything to the php script. Is there something missing? I have stared at it for hours, and have resorted to banging my head on the wall in an effort to jar loose ideas, thus far, nothing. 

    that should be:
    $headers = "Content-type: text; charset=iso-8859-1\r\n";
    $headers .= "From:".$name." / ".$email."\r\n";
    and:
    on(release){
    trace(_parent.email+" "+_parent.name+" "+_parent.phone+" "+_parent.message);
              _parent.loadVariables("inc/mail.php", "POST");

  • New free Oracle XE database has a PHP manual

    I wanted to point out that the newly announced free Oracle XE Beta version of the
    Oracle database has a PHP manual. See
    http://www.oracle.com/technology/products/database/xe/index.html
    The direct link to the manual is:
    http://www.oracle.com/pls/xe102/to_toc?pathname=dev.102%2Fb25317%2Ftoc.htm&remark=portal+%28Getting+Started%29
    The manual is a step by step introduction to building a simple application (it constructs
    pretty much the same application the Java and .Net manuals for XE do), so don't
    expect any deep revelations about PHP
    Post any PHP on XE feedback here or on the XE forum:
    http://www.oracle.com/technology/products/database/xe/forum.html
    -- CJ

    FWIW, I just came across this post from Harry Fuecks about XE and PHP:
    http://www.sitepoint.com/blogs/2005/11/01/oracle-10g-xe-and-php/
    Chris

  • Php localhost vs 127.0.0.1 vs file:/// behave differently

    I set up php to do web development on my MBP 10.5.8 following this guide http://foundationphp.com/tutorials/php_leopard.php and things are working... sort of. The issue I'm having is that when I load pages in Safari using localhost, 127.0.0.1, and directly from the harddrive using file:/// i get different results when php posts the changes to an xml file.
    here are the results
    edit localhost post results reload local host displays old results, file and 127.0.0.1 display new
    edit file post results reload no change to file, local host or 127.0.0.1
    edit 127.0.0.1 post results reload 127.. and localhost display new data, file does not.
    Sometime I have to reload 127 and the new data is not there, I load localhost and the new data is not there, but when I reload 127 again the new data is there.
    I only have one copy of the htm file and one copy of the xml file. This has to do with how the server is set up or operates somehow. I don't understand how the localhost path can keep loading the old data when then new data is in the xml file.
    localhost and 127.0.0.1 both resolve to the apache entry page when I put them in with not additional path information.
    Can anyone explain why this is happening, and how to resolve it.

    Yes. It runs fine on my unsupported G4 450 MP which I used to beta-test the cat. See these for installation work-arounds:
    http://www.macosxhints.com/article.php?story=20071214143723301
    http://www.tidbits.com/webx?14@@.3cb6ddd5/5 and
    http://forums.macrumors.com/showthread.php?t=371302

  • Can you do a post to a URL in APEX

    I know that you can format a url to pass values in the URL string like this:
    https://mydomain/pls/apex/f?p=115:1::::P1_ID:23709462
    Or can you submit a post request instead of a get like the following PHP example?
    Url=https://mydomain/donor/tnt_account_balance_query.php
    Post=Username=$ACCOUNT$&Password=$PASSWORD$
    Thanks,
    Todd

    Actually, I apologize I should have given more details.
    I am trying to post to an apex URL.
    My total purpose is to pass login information and query criteria to a page from another web page.
    When the person pushes the button on their web page, it will send login data and query criteria to an apex page. In turn that page will initiate a csv download that the person can utilize on their local machine. I have the web page set up to initiate the data download. I can accomplish that, but I have two problems:
    1) I would like to send that information as a post instead of get in the URL to hide the login information to the public.
    2) The process is a before header process therefore, setting any page items will not happen. As a result, I cannot set a page item and then limit the query results for the data download.
    Therefore, I would like to post a request to my APEX URL to make that happen. Part of me wonders if it is possible or not.
    Thanks,
    Todd

  • PHP Form Radio button

    Hello,
    I would like to change an existing list to a radio option on
    my pho form.
    http://opie.monkeyshrine.com/contact/contactus.php
    From this
    <select name="reason" value="<?php
    if(isset($_POST['reason'])) echo
    htmlentities($_POST['reason']);?>" tabindex="4" size="1"
    id="reason">
    <option selected>Tell Us Why</option>
    <option value="Beijing to Moscow">Beijing to
    Moscow</option>
    <option value="Moscow to Beijing">Moscow to
    Beijing</option>
    <option value="Vladivostok to Moscow">Vladivostok to
    Moscow</option>
    <option value="Beijing back to Beijing">Beijing back
    to Beijing</option>
    <option value="Only Mongolia">Only
    Mongolia</option>
    <option value="Tranzip Direct Options">Tranzip Direct
    Options</option>
    <option value="Other Reason">Other
    Reason</option>
    </select>
    to
    <input type="radio" name="trip" value="<?php
    if(isset($_POST['BM'])) echo htmlentities($_POST['BM']);?>"
    /> Beijing to Moscow</label>
    <br />
    <label>
    <input type="radio" name="trip" value="<?php
    if(isset($_POST['VM'])) echo htmlentities($_POST['VM']);?>"
    /> Vladivostok to Moscow</label>
    <br />
    <label>
    <input type="radio" name="trip" value="<?php
    if(isset($_POST['MB'])) echo htmlentities($_POST['MB']);?>"
    /> Moscow to Beijing</label>
    <br />
    <label>
    <input type="radio" name="trip" value="<?php
    if(isset($_POST['BB'])) echo htmlentities($_POST['BB']);?>"
    /> Beijing back to Beijing</label>
    <br />
    <label>
    <input type="radio" name="trip" value="<?php
    if(isset($_POST['Mongolia'])) echo
    htmlentities($_POST['Mongolia']);?>" />Only
    Mongolia</label>
    <br />
    <label>
    <input type="radio" name="trip" value="<?php
    if(isset($_POST['Direct'])) echo
    htmlentities($_POST['Direct']);?>" />Tranzip Direct
    Options</label>
    <br />
    <label>
    <input type="radio" name="trip" value="<?php
    if(isset($_POST['unsure'])) echo
    htmlentities($_POST['unsure']);?>" />
    Unsure
    except, I have done the group radio wrong and it doesn't
    insert anything on the reply.
    Here is the php post code
    $Indhold .= "Trip Type: ".$_POST['trip']."\n";
    $Indhold .= "\r";
    $Indhold .= "Why: ".$_POST['reason']."\n";
    $Indhold .= "\r";
    Please help me correct the radio group.
    Thanks.
    ps. can you also confirm the local time is displaying your
    local time?

    On Fri, 24 Nov 2006 08:08:32 +0000 (UTC), "yesmaybe"
    <[email protected]> wrote:
    > Please help me correct the radio group.
    Doesn't this (test page) do what you want? Try it DW.
    <?php
    if ( isset($_POST['clicked']) && $_POST['clicked'] ==
    'true' ) {
    echo "Trip Type: ".$_POST['trip'];
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    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=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="">
    <input type="radio" name="trip" value="BM"
    /> Beijing to
    Moscow</label>
    <br />
    <label>
    <input type="radio" name="trip"
    value="VM" /> Vladivostok to
    Moscow</label>
    <br />
    <label>
    <input type="radio" name="trip"
    value="MB" /> Moscow to
    Beijing</label>
    <br />
    <label>
    <input type="radio" name="trip"
    value="BB" /> Beijing back to
    Beijing</label>
    <br />
    <label>
    <input type="radio" name="trip"
    value="Mongolia" />Only
    Mongolia</label>
    <br />
    <label>
    <input type="radio" name="trip"
    value="Direct" />Tranzip
    Direct Options</label>
    <br />
    <label>
    <input type="radio" name="trip"
    value="unsure" />
    Unsure </label>
    <input type="submit" name="Submit"
    value="Submit">
    <input name="clicked" type="hidden"
    id="clicked" value="true">
    </form>
    </body>
    </html>
    Steve
    steve at flyingtigerwebdesign dot com

  • Combobox PHP Forms

    Hi everyone, still trying to get this form working!!!
    Basically i want to send data from my combobox fields to my email
    via PHP.
    The code i have in the FLA file is as follow:
    // Add Item to List.
    this.comboBox_reformat.addItem({data:1, label:"list name1"});
    this.comboBox_reformat.addItem({data:2, label:"list name2"});
    this.comboBox_reformat.addItem({data:3, label:"list name3"});
    this.comboBox_reformat.addItem({data:4, label:"list name4"});
    this.comboBox_reformat.addItem({data:5, label:"list name5"});
    this.comboBox_reformat.addItem({data:6, label:"list name6"});
    this.comboBox_reformat.addItem({data:7, label:"list name7"});
    // Create Listener Object.
    var cbListener:Object = new Object();
    // Assign function to Listener Object.
    cbListener.change = function(event_obj:Object) {
    trace("Value changed to:
    "+event_obj.target.selectedItem.label);
    lv.combo = event_obj.target.selectedItem.label;
    // Add Listener.
    this.comboBox_reformat.addEventListener("change",cbListener);
    var lv:LoadVars = new LoadVars();
    lv.combo = comboBox_reformat.selectedItem.label;
    myButton.onRelease = function():Void{
    lv.sendAndLoad("email.php", lv, "POST");
    Then on my button i have this:
    on (release) {
    form.loadVariablesNum("email.php", "POST");
    And finally in my PHP file i have this:
    <?php
    $sendTo = "[email protected]";
    $subject = "title";
    $headers = "From: " . $_POST["name"] ." <" .
    $_POST["email"] .">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-path: " . $_POST["email"];
    $message = "Name: " . $_POST["name"] . "\r\n" .
    "Company: " . $_POST["company"] . "\r\n" .
    "Email: " . $_POST["email"] . "\r\n" .
    "Address 1: " . $_POST["address1"] . "\r\n" .
    "Address 2: " . $_POST["address2"] . "\r\n" .
    "Town: " . $_POST["town"] . "\r\n" .
    "Phone: " . $_POST["phone"] . "\r\n" .
    "Post Code: " . $_POST["postcode"] . "\r\n" .
    "Interested in: " . $_POST["comboBox_reformat"] . "\r\n" .
    "Message: " . $_POST["message"];
    mail($sendTo, $subject, $message, $headers);
    ?>
    Thanks in advance

    So what is the issue? Is it not sending the info to the php
    file?
    Try putting this:
    var lv:LoadVars = new LoadVars();
    lv.combo = comboBox_reformat.selectedItem.label;
    myButton.onRelease = function():Void{
    lv.sendAndLoad("email.php", lv, "POST");
    Like this:
    myButton.onRelease = function():Void{
    var lv:LoadVars = new LoadVars();
    lv.combo = comboBox_reformat.selectedItem.label;
    lv.sendAndLoad("email.php", lv, "POST");
    Dan Smith > adobe community expert
    http://www.dsmith.tv
    "The Wizard Woods" <[email protected]> wrote
    in message
    news:[email protected]...
    > Hi everyone, still trying to get this form working!!!
    Basically i want to
    > send
    > data from my combobox fields to my email via PHP.
    >
    > The code i have in the FLA file is as follow:
    >
    > // Add Item to List.
    > this.comboBox_reformat.addItem({data:1, label:"list
    name1"});
    > this.comboBox_reformat.addItem({data:2, label:"list
    name2"});
    > this.comboBox_reformat.addItem({data:3, label:"list
    name3"});
    > this.comboBox_reformat.addItem({data:4, label:"list
    name4"});
    > this.comboBox_reformat.addItem({data:5, label:"list
    name5"});
    > this.comboBox_reformat.addItem({data:6, label:"list
    name6"});
    > this.comboBox_reformat.addItem({data:7, label:"list
    name7"});
    >
    > // Create Listener Object.
    > var cbListener:Object = new Object();
    > // Assign function to Listener Object.
    > cbListener.change = function(event_obj:Object) {
    > trace("Value changed to:
    "+event_obj.target.selectedItem.label);
    > lv.combo = event_obj.target.selectedItem.label;
    > };
    >
    > // Add Listener.
    >
    this.comboBox_reformat.addEventListener("change",cbListener);
    >
    > var lv:LoadVars = new LoadVars();
    > lv.combo = comboBox_reformat.selectedItem.label;
    >
    > myButton.onRelease = function():Void{
    > lv.sendAndLoad("email.php", lv, "POST");
    > }
    >
    > Then on my button i have this:
    >
    > on (release) {
    > form.loadVariablesNum("email.php", "POST");
    > }
    >
    > And finally in my PHP file i have this:
    >
    > <?php
    >
    > $sendTo = "[email protected]";
    > $subject = "title";
    >
    > $headers = "From: " . $_POST["name"] ." <" .
    $_POST["email"] .">\r\n";
    > $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    > $headers .= "Return-path: " . $_POST["email"];
    >
    > $message = "Name: " . $_POST["name"] . "\r\n" .
    > "Company: " . $_POST["company"] . "\r\n" .
    > "Email: " . $_POST["email"] . "\r\n" .
    > "Address 1: " . $_POST["address1"] . "\r\n" .
    > "Address 2: " . $_POST["address2"] . "\r\n" .
    > "Town: " . $_POST["town"] . "\r\n" .
    > "Phone: " . $_POST["phone"] . "\r\n" .
    > "Post Code: " . $_POST["postcode"] . "\r\n" .
    > "Interested in: " . $_POST["comboBox_reformat"] . "\r\n"
    > "Message: " . $_POST["message"];
    >
    > mail($sendTo, $subject, $message, $headers);
    >
    > ?>
    >
    > Thanks in advance
    >

  • OMG! Please help me with some actionscript for a flash .php form

    Wright I've been trying for ages to get this to work. I have
    10 combo boxes and tow input text fields in a "_mc" named "form"
    one send button with the following code on it.
    on (release) {
    form.loadVariables("email.php", "POST");
    I then have this code on the ".php" file.
    <?php
    $sendTo = "[email protected]";
    $subject = "Custom Sven Clog Order Form";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $email .= $_POST["email"];
    $name .= $_POST["name"];
    $message .= $_POST["treadColor"];
    $message .= $_POST["baseColor"];
    $message .= $_POST["bendOrNon"];
    $message .= $_POST["heelSize"];
    $message .= $_POST["nubucColors"];
    $message .= $_POST["galaxyColors"];
    $message .= $_POST["suedeColors"];
    $message .= $_POST["patentColors"];
    $message .= $_POST["leatherColors"];
    $styles .= $_POST["styles"];
    mail($sendTo, $subject, $message, "nEmail = $email\nStyles =
    $styels\nName = $name";
    ?>
    I've looked at all the normal stuff that might be wrong, is
    the "email.php" file on the server? Yes!. Is the ".swf" file on the
    server? Yes! I just cant get the code wright! The form is made in
    "flash 8 PRO" And the ".swf" file is in a Dreamweaver site. Well
    the hole thing is in a Dreamweaver site.
    I fill out the form hit send and all I get back is blank
    email with the name, sent to and subject lines filed out.
    AAAAAAAARrrrrrrrrrr!
    Someone please for the of it all tell me wear the hell I have
    gone wrong? I thank you all for taking the time to read
    this!!!!

    Firstly again, your php script, you have now put a '.'
    infront of all of the variables.
    The '.' consentinas a string. It should read....
    <?php
    $sendTo = "[email protected]";
    $subject = "Custom Sven Clog Order Form";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $email = $_POST["email"];
    $name = $_POST["name"];
    $message = $_POST["treadColor"];
    $message .= $_POST["baseColor"];
    $message .= $_POST["bendOrNon"];
    $message .= $_POST["heelSize"];
    $message .= $_POST["nubucColors"];
    $message .= $_POST["galaxyColors"];
    $message .= $_POST["suedeColors"];
    $message .= $_POST["patentColors"];
    $message .= $_POST["leatherColors"];
    $styles = $_POST["styles"];
    Also you need to close the brackets in your mail()
    function....
    mail ($sendTo, $subject, $message,$headers);
    That is the first problem. Your big problem is that you
    aren't sending any of the variables from your swf, to the php file.
    You need to look up loadVars(). I don't think you can use
    loadVariables, as you want to send the variables to php, not
    recieve them. You can use loadVars to sendAndLoad variables to the
    php... be it 'email','name' etc and the php script will email
    them.

  • PHP deletes .swf line breaks

    Hi all -
    I have a designed a Flash based interface to send email via
    PHP.
    I capture the variables in Flash using:
    var my_lv:LoadVars=new LoadVars();
    my_lv.name=name_txt.text;
    my_lv.message=message_txt.text;
    my_lv.send("mail.php","POST");
    My PHP reads:
    <?php
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["from"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["from"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["from"];
    $to = $_POST['to'];
    $message=stripslashes($_POST['message']);
    //NOTE: I tried $message without stripslashes - same results
    $subject=stripslashes($_POST['subject']);
    mail($to, $subject, $message, $headers);
    ?>
    When the message is received all line breaks using
    RETURN/ENTER in Flash message .swf are deleted making the message
    one long line when viewed by the recipient. Is there something I
    need to write into my actionscript/php to allow the message to
    recognize these hard line breaks and display properly in the
    recipient's email client? I'm guessing (hoping!) it's an easy fix.
    BTW, the messages do display properly in 'some' clients and not
    others. I need some fix that will correct this across the board.
    Thanks in advance -

    Couple of things to note,
    You should have a ","not a ";" separating the message and headers fields.
    Secondly, "$name.=$phone.$message" is meaningless. If you are trying to concatenate the three fields together, you have to use "." and add in whatever spaces of carriage returns/linefeeds you want. So:
    $name."<br>".$phone."<br>".$message
    It's frequently good to add labels to the fields so the reader knows what sorts of information should be there.
    The text in any line should not exceed70 characters, according to the PHP rules. You will have to break up the message if it's longer than that.
    Unless you are doing a lot of error checking for bad input, you are exposing yourself to a lot of harm using this function, like opening you and your server up to all sorts of nasty attacks.
    Never trust any input from the user.

Maybe you are looking for

  • Ipod touch 2nd gen. glitching out like crazy, any suggestions?

    IPod won't connect to itunes even after uninstalling and reinstalling the latest version of it, freezes frequently, will turn itself off, tilt sensors won't work anymore, sometimes screen will turn white, and stay that way until it runs itself out of

  • Getting value under price tab in sales order

    hi all, when i am creating a sales order i am getting the values in the condition tab according to pricing procedure, but some of the values are not getting displayed under the price tab. what configuration i have to do in the pricing procedure to ge

  • Powershell and Outlook 2007, trying to delete messages in a folder older than date

    I was hoping to get a powershell script that would do the following 1) Connect to outlook 2007 2) Go to Mailbox folder (not an inbox subfolder) called 'Processes' 3) Delete all email from that folder older than 3 days old I did some searching, I have

  • IWeb hyperlinks not coming out right when published

    Hiya, Has anyone got any idea why hyperlinks (to other of my pages) on some of my web pages come out as a blue square with a question mark in the middle, rather than the name of the link? If you click on it, it takes you to the right page, but you ca

  • Problem refreshing the Tree Component icons

    Hello, I'm using the Tree, adding the nodes dinamically, following the example: http://www.netbeans.org/kb/55/vwp-databasetree.html This Tree shows the access permissions from the users, and show a red icon on the itens without permissions and a gree