How to submit a form to itself?

I have a form on the page. When I submit the form, I would submit to itself. Another word, I don't want to submit to another .cfm page. So, how can I do?

If you omit the action attribute, it should present itself.

Tags: ColdFusion

Similar Questions

  • How to submit the form interactive pdf in the browser (Mozilla, Chrome)

    I m having XFA based pdf form to be submitted by the user. I want to get it open, filled, and presented in the browser. In IE, it works. but Mozilla, Chrome is not supported. Get the message like "Please wait...". »

    Is it possible to submit the form on these browsers (Mozilla, Chrome)

    In advance thnk...

    You're default PDF viewer is not defined as Adobe Reader or Acrobat.  Change the viewer in the Chrome options, and it will not work properly.

    http://helpx.Adobe.com/LiveCycle/KB/XFA-forms-Firefox-chrome.html

  • How to submit the form to a page of the display?

    I posted a discussion like this, and I thought that I did when in reality they don't have work.
    I followed the steps on "how to make your first dynamic Web site", everything works perfectly until I have add a filter.

    Form page

    <? php require_once('Connections/ladyconn.php');? >
    <? PHP
    If (! function_exists ("GetSQLValueString")) {}
    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    If (via PHP_VERSION < 6) {}
    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;
    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}
    case 'text ':
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
    break;
    case "double":
    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';
    break;
    case "date":
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
    break;
    }
    Return $theValue;
    }
    }

    $editFormAction = $_SERVER ['PHP_SELF'];
    If (isset {}
    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);
    }

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "form1")) {}
    $insertSQL = sprintf ("INSERT INTO displaytable (name, position, activity) VALUES (%s, %s, %s)',
    GetSQLValueString ($_POST ['Text1'], "text").
    GetSQLValueString ($_POST ['select1 "],"text").
    GetSQLValueString ($_POST ["select2"], "text"));

    @mysql_select_db ($database_ladyconn, $ladyconn);
    $Result1 = mysql_query ($insertSQL, $ladyconn) or die (mysql_error ());

    $insertGoTo = 'display.php ';
    If (isset {}
    $insertGoTo. = (strpos ($insertGoTo, '?'))? « & » : « ? » ;
    $insertGoTo. = $_SERVER ['QUERY_STRING'];
    }
    header (sprintf ("location: %s", $insertGoTo));
    }
    ? >
    < ! 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 "/ >"
    < title > < /title > form
    < script src = "SpryAssets/SpryValidationTextField.js" type = "text/javascript" > < / script > "
    < script src = "SpryAssets/SpryValidationSelect.js" type = "text/javascript" > < / script > "
    < link href = "SpryAssets/SpryValidationTextField.css" rel = "stylesheet" type = "text/css" / > "
    < link href = "SpryAssets/SpryValidationSelect.css" rel = "stylesheet" type = "text/css" / > "
    < / head >

    < body >
    < form id = "form1" name = "form1" method = "POST" action = "<?" PHP echo $editFormAction;? > ">"
    Name < span id = "sprytextfield1" >
    < input type = "text" name = "text1" id = "text1" / >

    < span class = "textfieldRequiredMsg" > a value is required. </span > < / span >
    < P > < span id = "spryselect1" > element
    < select name = "select1" id = "select1" >
    < option value = "auto" > car < / option >
    < option value = 'bus' > bus < / option >
    < / select >
    < span class = "selectRequiredMsg" > please select an item. </span > < / span > < / p >
    activity < p > < span id = "spryselect2" >
    < select name = "select2" id = "select2" >
    < option value = "Buy" > buy < / option >
    < option value = "sell" > sale < / option >
    < / select >
    < span class = "selectRequiredMsg" > please select an item. </span > < / span > < / p >
    < p >
    < input type = "submit" name = "button" id = "button" value = "Send" / >
    < /p >
    < input type = "hidden" name = "MM_insert" value = "form1" / >
    < / make >
    < script type = "text/javascript" >
    <!--
    var sprytextfield1 = new Spry.Widget.ValidationTextField ("sprytextfield1");
    var spryselect1 = new Spry.Widget.ValidationSelect ("spryselect1");
    var spryselect2 = new Spry.Widget.ValidationSelect ("spryselect2");
    ->
    < /script >
    < / body >
    < / html >

    View the page


    <? php require_once('Connections/ladyconn.php');? >
    <? PHP
    If (! function_exists ("GetSQLValueString")) {}
    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    If (via PHP_VERSION < 6) {}
    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;
    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}
    case 'text ':
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
    break;
    case "double":
    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';
    break;
    case "date":
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
    break;
    }
    Return $theValue;
    }
    }

    $maxRows_Recordset1 = 10;
    $pageNum_Recordset1 = 0;
    If (isset($_GET['pageNum_Recordset1'])) {}
    $pageNum_Recordset1 = $_GET ['pageNum_Recordset1'];
    }
    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;

    $colname_Recordset1 = "-1";
    If (isset($_GET['item'])) {}
    $colname_Recordset1 = $_GET ["item"];
    }
    @mysql_select_db ($database_ladyconn, $ladyconn);
    $query_Recordset1 = sprintf ("SELECT * FROM displaytable WHERE the point = %s ORDER BY 'time' DESC", GetSQLValueString ($colname_Recordset1, "text") ");
    $query_limit_Recordset1 = sprintf ("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query ($query_limit_Recordset1, $ladyconn) or die (mysql_error ());
    $row_Recordset1 = mysql_fetch_assoc ($Recordset1);

    If (isset($_GET['totalRows_Recordset1'])) {}
    $totalRows_Recordset1 = $_GET ['totalRows_Recordset1'];
    } else {}
    $all_Recordset1 = mysql_query ($query_Recordset1);
    $totalRows_Recordset1 = mysql_num_rows ($all_Recordset1);
    }
    $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
    ? >

    < ! 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 "/ >"
    Messages from < title > < /title >
    < / head >

    < body >
    < /P > < p > positions
    < ol >
    <? PHP {? >}
    < li > <? PHP echo $row_Recordset1 ['name'];? > < br / >
    <? PHP echo $row_Recordset1 ["item"];? >, <? PHP echo $row_Recordset1 ['activity'];? > < /li >

    <? PHP} while ($row_Recordset1 = mysql_fetch_assoc ($Recordset1));? >
    < /ol >
    < / body >
    < / html >
    <? PHP
    mysql_free_result ($Recordset1);
    ? >

    Sheesh.  This takes us into a whole new direction.  You should have stated this at the beginning.

    To return to your original pages.

    In the page of the form, replace-

    $insertGoTo = 'display.php ';

    on this subject.

    $insertGoTo = "display.php?". "item =". $_POST ["select1"];

    and do nothing in the display page.  Simple enough?  Should work now.

  • How to submit the form by clicking on the hyperlinks

    Hello

    I have a < a href = "a" > < /a > and < a href = "b" > B < /a >.  I want to know which letter cliked the user on what I can run a database query.

    How can I do that. Any ideas?

    Thank you

    Joe Green

    This isn't really a ColdFusion question, rather a matter of Javascrip/HTML, unless you want to make a CF background Ajax request.

    In any case, I would trigger javascript events, complete a form with hidden field either 'a' or 'b', then send the form.

    In the style of:

    A

    B

    ...

    Hope this helps?

  • How to submit the form to valuchangeListener.

    Hello

    I want to set a text entry in the runtime value and send a form in a selectBooleanCheckbox valueChangeListener, then call a method on link [bindings.execute.execute].

    Can anyone suggest how it is possible? I checked there is no attribute actionListener for selectBooleanCheckbox not partialSubmit.

    You can try with in valueChangelistner run with your binding method

    ex:
    Add after code valueChangelistner
    operationBinding = getBindings () .getOperationBinding ("Execute");
    operationBinding.execute ();

  • How to submit a form by clicking a radio button?

    I use a php page to present the user with two options.  The person clicks on one of the options, then click on the submit button.  When you click send, the value of the radio button clicked is displayed on a page action.

    Instead, what I want to it is when the person clicks on the radio button group, its value is displayed on the corresponding action page unless the user to click the button submit.

    Here's the current code for the button shape two simple radio.  The user can click on the inside or outside.

    < do action = "outdoorfaucet.php" method = "post" name = "form1" id = "form1" > "

    < p >

    < input type is "radio" name = "selectedfaucet" id = "radio" value is 'outdoors' >

    < label for 'radio' = > Outdoor < / label >

    < /p >

    < p >

    < input type = "radio" name = "selectedfaucet" id = "' value 'internal' = >"

    < label for = "radio2" > domestic activity < / label >

    < /p >

    < p >

    < input type = "submit" name = "submit" id = "submit" value = "Submit" >

    < /p >

    < / make >

    And here is the statement of corresponding items on the action page at this time.

    <? PHP

    the values in the page select facets of the echo

    echo "you have selected. $_POST ['selectedfaucet']. ' < br ';

    ? >

    Can someone help me to modify this code so that the value of the option button is submitted, posted or otherwise sent to the action page?  I am new to this.  Thanks in advance.

    In my code change

    TO

    action = "outdoorfaucet.php" method = "post" name = "form1" id = "form1" > ""

    and move the script at the top of the page to outdoorfaucet.php

    <>

    {If (($_SERVER ["REQUEST_METHOD"] == "POST") & {isset($_POST))}

    the values in the page select facets of the echo

    echo "you have selected. $_POST ['selectedfaucet'];

    }

    ?>

  • How to create a form with a submit in CC button animate using Actionscript 3

    How to create a form with a submit in CC button animate using Actionscript 3. The file will first be a SWF but will also have the flexibility to export as HTML5

    I've searched high and low for an example of code for this entry.

    Can someone help me please?

    Thank you

    You can use the same graphic assets of basis for two projects, but the coding will be different for everyone.  You must work on the project of a code at a time.

  • How to fill out the customer type when you submit a form?

    How to fill out the customer type when you submit a form?

    You can't do right now in British Colombia by means of forms.

  • How can I integrate a form on my site and to set up a button "submit" for when people fill out and click Submit, the form will be sent to me in the form of attached pdf file?

    How can I integrate a form on my site and to set up a button "submit" for when people fill out and click Submit, the form will be sent to me in the form of attached pdf file?

    Thank you!

    Salvation;

    This isn't a workflow that is supported by solutions of Adobe forms at this time.

    Thank you

    Josh

  • How to define a type of customer when you submit a form

    Hello! How can I configure 'Client Type' a customer when they submit a form? In other words, I have a form on my site and if a user is complete and submit this form, I would like the user to give a specific customer Type.

    TIA

    You can't yet.

    Soon however.

    The output of these through liquid will be available in the version later today and hopefully the aspects of form in the new future.

  • How to allow users to include a photograph when you submit a form

    Use Adobe Livecycle Designer ARE Version 8.2.1.3144.1.471865

    There, anyone know how to add the functionality to allow users who fill out a form to include a photograph when you submit the form?

    Thanks in advance for any help.

    Kind regards

    Lola

    Hello

    If you drag an imageField on the page, when the user clicks on this when running, they will be asked to select an image file.

    There is an example in this form: http://assure.ly/j1KdNq.

    There are several examples of image on our site field, but I don't think any of them are put in place for the user to select an image. http://assure.ly/ozrNSO.

    Hope that helps,

    Niall

  • Submit a form created in the LCD

    AcrobatPro 9 extended

    LiveCyle Designer ARE 8.2

    OK... This will be long, but I want to put as much information for the pros in this.

    I want to submit a form to my computer that is 2 offices away from me...  See... this form goes class 10 times a day by maybe 3 different ppl. And now they are writng by hand. This form contains about 200 areas... Once completed, I want that they hit PRINT and print a copy and SEND and BOOM he sends the pdf to my other 2 computer desks. This computer is in itself... It was built to be a server... but does nothing but host atm software.

    1 TB worth of space and can take more if necessary.

    What ive done!  OK... I tried to create a form and have someone create a lil servlet and servlet submitedthru some php file sent to a DB <-didn't!  First of all, I can't create a DB... and a shape that has 200 questions or more... someone said, it's a lot of work and I can pay a few fingers for a database as large.

    Second, I asked can I just submit PDF like LCD asking you to. PROBLEM: the computer that we submit to is a computer, no one is there. So u send an email to it, is like the dbl work. 1nce a week id must go and dl all emails... and... NAH. Too much.

    Liveceylce also asked submit the PDF to a url like http:// . I like tat. That's what I want to... I can do this standalone host a url if I easily and submit to that. Tried it not help... I sent to http://testing.servebeer.com/mydocuments <-I know its fake., but I can't think.

    So I return to acrobat and look for thru... and what do I see... a feature that might work. I don't know how it works, but it works... When clikc submit you, the form is returned to the manufacturer or whatever. Works like a charm I think. Problem, when I tried to get my livecycle form in acrobat, this option didn't for me. Why?

    So now I'm back to square one. A document to be submitted by something other than e-mail.

    Reason for all this: well heres the thing... When the burses fill out, they print a copy in the file and we're done... Problem... What happens if someone Vienna steal files? NO RETURN TO THE TOP. What about a fire? No RETURN to the TOP.

    acrobat demo.png

    You will not be able to hide the path of Acrobat to save directly on the disc came out. You could submit to a server program and have this record in your name. This hide the path of the user and also make it easier because it is enough to set up a mapping on a single machine.

    Paul

  • Submit the form - not a page

    Hi all

    How can I submit the form below (external APEX) without submitting the page.

    The Action in this form has method POST RESTful. Its PL/SQL Source is:

    Insert into emp (empno, ename)

    values

    (DEMO_USERS_SEQ.nextval,: ENAME)

    for example using this API:

    http://S22.postimg.org/79wp8rbv5/capture.PNG

    ----------------------------------------------------------------

    So I have this static page. I need to submit the form to Oracle DB without the page gets submitted. Any idea about it?

    < html >

    < head >

    < / head >

    < body >

    < form action = " " https://Apex.Oracle.com/pls/Apex/somefeto/HR/EMP/ "method ="POST"> "

    Used: < input type = "text" name = "ENAME" >

    < input class = "button" type = "submit" value = "Submit" / >

    < / make >

    < / body >

    < / html >

    
    
    
    
    
    
    
    
    
        
    Employee: SUBMIT
  • Submit the form of web publishing app point does not work

    Hi guys, I have a web form application point that I put on an edit page. I dynamically add the itemID/OID of the web application element that I want edited in the src of the form. When I submit the form, I get a thank you page that thank me to add a new item (it's an editing tool) and when I check the web application part nothing has changed! What is going on? On the flipside, I went to the Web page change app point by clicking on the link generated by BC and when I submit that form, I get the same exact page thank you, but this time, the changes stick. How can I get my form to work? Thank you guys!



    $('#webAppForm').attr ('src','/ CustomContentProcess.aspx?) A = EditSave & amp; CCID = 21437 & amp; OID = "+ itemID +" & amp; OTYPE = 35');

    This is the code used to change the src and then I don't

    $('#webAppForm').submit () to submit.

    FEC

    There is no attribute "src" on a form.  I think you need to change the 'src' in 'action '. DOH!  Also, I am sure you know this, but make sure that the user is logged when you try to send this form, so don't forget this form is in a secure area.

  • submit a form

    Hi all

    I have a form that I am using to insert data. OK, so I have the page form.cfm with all the fields of the form, the action of going to action.cfm that processes the data. However, when I submit the form, that an error comes up saying "the given fieldname"SUBMITFORM"is not found in the table", if it is for a reason, think my "submit" button is a form field, how can I stop this and get the form to submit it please? the code I use to send is: < cfinput type = "submit" name = "SubmitForm" value = "Submit" >

    Thanks in adavnce

    Excellent, works a treat thanks

Maybe you are looking for