What data to return when submitting form to a php script?

Been trying to figure this out for few days now. Been googling it up and found nothing.
I made a form with livecycle designer, put a http submit button to post data to my php script and when I open it up on acrobat reader and try to submit it, I get an error about content-type not being correct etc.
What kind of content-type should I be returning then? text/plain, text/html and application/pdf with 0 lenght content doesn't seem to cut it. Can I disable whole return-check as I really dont have anything to return? Or can I somehow send an "success/failure" pop-up or something?

Thank you George,
I added the line: header('x', TRUE, 204); to my PHP script per your suggestion and found that I get an error thrown "invalid server response" when using acrobat reader or acrobat pro 9. No new window is loaded and the pdf user's experience is not changed (except for the error message).
Without the added line, I get the error "no input file page data" thrown.  Since I'm not returning anything to the browser that is expected but not wanted.
In either case, the data fields are captured and saved by my PHP script. It seems that acrobat requires a response from the server otherwise it is not happy. I can't see a way that I can turn off error messages to avoid this.

Similar Messages

  • POST Data is missing when submitting form to server

    Hi Guys,
    I have situation here as below
    My web application using SSO ( using VSJ ) implement as a filter
    Using weblogic 10 as app server
    Scenario 1
    1. user log on from trusted domain
    2. user log on successfully and submit some form ( just to make illustration easier )
    3. all data ( GET and POST ) parameter is submitted succcessfully
    Scenario 2
    1. user log on from untrusted domain
    2. SSO throw 403 and my apps will redirect user to login page
    3. user key in some creddentials and log on successfully
    4. user trying to submit some form
    5. only GET parameter is submitted
    6. ALL POST parameter is never gets passed to the server.
    Any idea why on scenario 3 all my POST parameter is missing/empty ?
    Thanks

    development machine
    yes,
    server 1 is development machine (server not pc machine)
    i copied my files back to the server 1(development machine)
    and ran it in this server. it works great!
    i copied and pasted it again in the server 2 but istill the
    link is unavailable.
    help

  • Symbol error when submitting form

    experiencing a symbol error when submitting form.

    Hi Gen,
    Unfortunately, the error came from a client who was submitting a form via Mac OS.  He stated that when he attempted to submit he received a symbol error.
    On another note, I did experience issues with periods (.) within another form such as 2009.01 and 2011.25.  When I downloaded the files corresponding to the numbers, it wouldn’t allow me to save it with the period (used an underscore instead).
    Warmest regards,
    Delia
    Delia Boyd
    Program Manager, Standards Development
    Executive Office
    AOAC INTERNATIONAL
    481 N. Frederick Avenue, Suite 500
    Gaithersburg, MD 20877-2417
    301-924-7077 x126
    301-924-7089 - Fax
    [email protected]<mailto:[email protected]>
    www.aoac.org<http://www.aoac.org/>
    cid:[email protected]
    127th AOAC Annual Meeting & Exposition
    Palmer House Hilton
    Chicago, Illinois
    August 25-28, 2013
    For more information visit our website
    at: http://www.aoac.org/meetings1/127th_annual_mtg/main_2.htm
    þ Please consider the environment before printing this email.
    ...you will see it when you believe it!

  • What does 'Actuality' return when checked in the Text Element of WAD.

    Hi All,
    What does 'Actuality' return when checked in the Text Element of WAD?
    Thanks In Advance

    I take back my qs as the qs is not valid anymore

  • When submitting form, form elements like text box are not available in my action page. This occurs only for several times. if i resubmit the form, i can get the form elements in my action page. May be form get submitted twice in firefox 3.6.13

    I have a simple web page with two form elements say, two text box and submit button. when submitting my form, i didn't get the form data in my action page. This occurs only in Firefox 3.6.13 several times. Not always.
    May be form get submitted twice?
    Note: Remember, i am not facing this issue. However my friend is facing this issue.

    I have a simple web page with two form elements say, two text box and submit button. when submitting my form, i didn't get the form data in my action page. This occurs only in Firefox 3.6.13 several times. Not always.
    May be form get submitted twice?
    Note: Remember, i am not facing this issue. However my friend is facing this issue.

  • Encoding error message when submitting form to REST endpoint

    When submitting a stand-alone form to the REST endpoint of a process I receive the following message in Acrobat reader (translated from german):
    "An error occured when submitting the form. Content of type text/plain;charset=utf-8 could not be processed"
    Despite the error message the process gets started and works fine.
    In terms of usability I would like to get rid of this error message since it irritates the ordinary user.
    This happens only in Acrobat Reader (version is 10.1)  not in Pro
    My workbench version is 10.0.1

    The No Content approach should work. Can you show the exact code you're using to generate the response? Did you add "#FDF" to the end of the URL for the submit form action?
    If you haven't looked into it already, consider returning an FDF that causes a popup dialog to display as a way of providing feedback.

  • Wisdom of keeping PHP scripts embedded when submitting forms

    I was wondering if it would be more secure if the php scripts I'm using to insert user names and contact info into my database would be more secure if the code was moved to a new page called insrtRecord.php and the form action were changed from action="<?php echo $editFormAction; ?>" to action="/Scripts/insrtRecord.php"
    The page was constructed entirely with Dreamweavers built in behaviors so all the code is right there in the contact page for anyone to look at.
    I'd then password protect the Scripts directory that contained the insrtRecord.php file to keep it from prying eyes.
    Thanks for your advice.

    >He took a look at my site, checked the code, and I was sure that I saw some PHP tags pop up.
    Rick, if you did see a tag then it must have been due to a misconfigured script. Any valid php will be parsed on the server and not sent to the client.
    >My Connections folder with the database un and pw is in a protected directory
    >and there's never a call to put in a password when a page connects to the MySql database.
    >This leads me to believe that I can protect all my PHP scripts.
    But connection scripts are referenced using includes which is different than what you originally suggested. I'm not saying it won't work, I really don't know. But it's easy to test and if it works I don't see any harm in adding another layer of security.

  • Update current date in mysql using Update form DW CS4 PHP

    I have a field called datePosted that is set to curdate in the database.  What I want to do is when the checkbox on this form called approved is checked, and the form is submitted, I want that dateApproved field to update to the current date in the database.  When I have tried it, it says zero.  I have tried setting a variable and using now() but cant get it to change on update.
    Here is the form
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
        <table align="center">
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">JobName:</td>
            <td><input type="text" name="jobName" value="<?php echo htmlentities($row_rs_crave['jobName'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right" valign="top">Description:</td>
            <td><textarea name="description" cols="50" rows="5"><?php echo htmlentities($row_rs_crave['description'], ENT_COMPAT, 'UTF-8'); ?></textarea></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">State:</td>
            <td><select name="state">
              <option value="h" <?php if (!(strcmp("h", htmlentities($row_rs_crave['state'], ENT_COMPAT, 'UTF-8')))) {echo "SELECTED";} ?>>hh</option>
            </select></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">FleetID:</td>
            <td><input type="text" name="fleetID" value="<?php echo htmlentities($row_rs_crave['fleetID'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">Approved:</td>
            <td><input type="checkbox" name="approved" value=""  <?php if (!(strcmp(htmlentities($row_rs_crave['approved'], ENT_COMPAT, 'UTF-8'),""))) {echo "checked=\"checked\"";} ?> /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">DatePosted:</td>
            <td><input type="text" name="datePosted" value="<?php echo htmlentities($row_rs_crave['datePosted'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right"> </td>
            <td><input type="submit" value="Update record" /></td>
          </tr>
        </table>
        <input type="hidden" name="jobid" value="<?php echo $row_rs_crave['jobid']; ?>" />
        <input type="hidden" name="MM_update" value="form1" />
      </form>
    And they sql
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE crave SET jobName=%s, `description`=%s, `state`=%s, fleetID=%s, approved=%s, datePosted=%s WHERE jobid=%s",
                           GetSQLValueString($_POST['jobName'], "text"),
                           GetSQLValueString($_POST['description'], "text"),
                           GetSQLValueString($_POST['state'], "text"),
                           GetSQLValueString($_POST['fleetID'], "int"),
                           GetSQLValueString(isset($_POST['approved']) ? "true" : "", "defined","1","0"),
                           GetSQLValueString($_POST['datePosted'], "date"),
                           GetSQLValueString($_POST['jobid'], "int"));

    Change the SQL like this:
    // Check whether the approved checkbox has been selected
    $_POST['approved'] = isset($_POST['approved']) ? 1 : 0;
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
    $updateSQL = sprintf("UPDATE crave SET jobName=%s, `description`=%s,
    `state`=%s, fleetID=%s, approved=%s, datePosted=%s WHERE jobid=%s",
                           GetSQLValueString($_POST['jobName'], "text"),
                           GetSQLValueString($_POST['description'], "text"),
                           GetSQLValueString($_POST['state'], "text"),
                           GetSQLValueString($_POST['fleetID'], "int"),
                           GetSQLValueString(isset($_POST['approved']), "defined","NOW()","approved"),
                           GetSQLValueString($_POST['datePosted'], "date"),
                           GetSQLValueString($_POST['jobid'], "int"));
    What that does is check whether the approved checkbox has been selected. If it has, $_POST['approved'] is set to 1 (true); if not, it's set to 0 (false).
    In the GetSQLValueString() function, the value is set to NOW() if the checkbox has been selected. Otherwise, the existing value in the approved column is reassigned.

  • How do I enable Data Management if Passing an extra variable to PHP script?

    Im trying to use dynamic SQL tables on my PHP server so I need to pass the table name to the PHP script.  I don't understand why the Data Management system that sets up CRUD won't allow this extra parameter.  It says it can only have one input: item. I can get all records, but when I try to create, update, or delete I get an error.
    Or is there another way I can pass the tablename variable to the php file before I call any functions?
    Thanks!

    I use it but does not work for me.
    It does not integrates.
    You can tag on url value pairs onto your php function call such as:
    http://www.yourpath.php?tablename=tablenamesears
    You can then extract tablename, by using get in your php script:
    $tn = $_GET['tablename'];
    This $tn can be used anywhere in your php script as a dynamic value for table targeting.
    You can pass as many value pairs as you wish, every preceding pair must be in the form:
    http://www.yourpath.php?tablename=tablename&action=update&author=admin
    Hope it helps

  • Connecting my Email form to the PHP script to send to my email question

    How do I connect my form that a customer fill out to my php script?  I have my php script named contactformprocess.php. 

    anybody help?

  • Numeric or value error when submitting form

    I have a form based of a stored procedure. The form has about 20 fields on it. For some reason the form only allows data entry on only about 10 of them. If I put data in any of the other 10, I get: "An unexpected error occurred: ORA-06502: PL/SQL: numeric or value error (WWV-16016)"
    I have looked everywhere to see what's going on. I checked the procedure to make sure its parameters are good. It takes takes all VARCHAR2's, so thats OK. I checked the fields in the form editor for validation, and none are being validated, so thats OK. I made sure all the fields are updatable and they are. I even checked the table to make sure that the data can go into the fields, even though I know that the error returned there would be through the procedure, not Portal. I am stumped. What am I missing?
    Rich

    Follow Up: While troubleshooting this, I filled in all the fields with one character each and the form submitted. I added characters little by little to each field until I got the error. It seems like Portal has a problem when I pass X amount of characters from a form. I say "Portal" because I thought this might be an OS parameter, but I get the same error in both Win2000 and Solaris.
    Any ideas where this setting is? Or how to change it?
    Rich

  • Error when submitting form to PHP server

    Hi all,
    I'm trying to submit a PDF file (as a whole, not just the data) to a PHP server. It works as far as the file being delivered and saved, but in Acrobat I keep getting an error message at the end of the process, saying: "No Input File Page Data".
    I tried doing some research online and it seems to be related to the return value sent by the server to Acrobat, but I can't seem to get it to function properly.
    We've tried using header('HTTP/1.1 204 No Content'); as the response, but it doesn't seem to help, either.
    Any ideas would be much appreciated...

    The No Content approach should work. Can you show the exact code you're using to generate the response? Did you add "#FDF" to the end of the URL for the submit form action?
    If you haven't looked into it already, consider returning an FDF that causes a popup dialog to display as a way of providing feedback.

  • Maintain email functionality when submitting forms

    I have created several forms to be used internally at my company.  The forms provide information about a job and what is required to be worked on.  I have the forms set up to include a submit button and once pressed the form is attached to an email as a PDF. A new email is populated with the attachment and my return email address, my problem is that once this new email is populated the end-user is unable to access there other emails to pull attachments or information from.  Is there a way to allow the end-user to maintain complete functionality with thier inbox while composing the email with the attached form?

    That depends entirely on what email client application you're using. Once the Email submit button is pressed Acrobat hands over the pdf with any other content to the operating system which then turns around and finds your default email client and hands it over to it. So unfortunately to answer your question would require a knowledge of your email client and not so much Designer/Acrobat.
    Kyle

  • OracleJSP error: java.io.FileNotFoundException when submitting form

    I auto-generated a task form for a very simple test and receive this error when SUBMIT-ing the form.
    OracleJSP error: java.io.FileNotFoundException:
    Set the init-param debug_mode to "true" to see the complete exception message
    I am guessing it has something to do with the generated ADF task flow?
    Details of the test:
    BPM 11.1.1.4
    Process: none start > Initiator user task > none end
    Data: process data object based on BO based on a (simple) complex type xsd
    User is Weblogic, assigned to the single process role.
    That's it. The form accepts the data entry (I confirmed this previously by adding a file writer). It just generates the error in the form's pop-up window.

    Below is the file Empty1.jspx that you need -- (put it into public_html). No idea why it is needed, but removing it from the unbounded flow does not work. Hope this helps others.
    Anthony
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1"></af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • Error with reCAPTCHA when submitting form on Business Catalyst hosted site

    Hi
    Just had a client complain that the webform on their MUSE website isn't submitting correctly. When I tested this myself the image verification for reCAPTCHA is failing and throwing out an error on a new page.
    As it is a BC hosted website, the form no longer requires a verification key (it was previously hosted elsewhere until recently).
    I've since discovered this happening on another of my websites... Any ideas please?
    The error I see is:
    ERROR: An error occurred. Image verification failed. If you believe this is incorrect, please contact your system administrator or go back and re-submit the form

    There can be few reasons for this including captcha or recatcha included in the form , any html edit with form etc.
    Please provide the page url where form is inserted so that we can check on our end, additionally have you tried to re-insert the form and then check or update the site again from Muse to BC ?
    Thanks,
    Sanjit

Maybe you are looking for

  • ITunes is adding random music to the end of mp3s

    Hi there... any help would be greatly appreciated... recently I have noticed some very strange behaviour from iTunes.... on some tracks (randomly, some ripped from CD, some bought from Napster a while back, some 320kbps, some 256kbps), iTunes replace

  • Rebate fixed amount condition in the pricing procedure

    Hi SD Gurus, i'm using rebate fixed amount conditions (Lum sum). The situation from a business point o f view is the following: i pay the customer 1000$ once he made something. This kind of condition is not relevant for accruals since they have to be

  • Deleted iPhoto photos in photostream

    When I upload photos into iphoto it creates an event (I have hundreds as am using a time delay sports camera). I then delete the unwanted photos from the event in iphoto BUT photostream uploads ALL photos.  Even when I go into WEB Photostream on imac

  • Aperture/iPhoto support

    Any ideas on when Aperture/iPhoto will have raw support fo Sony A7II ?

  • Billing Document has different price to sales document

    Hi, we had an order which generated a billing document for £622 with a pricing date of the 8.02.2007. The customer returned the goods and a returns order was created for £622 with the same pricing date. The problem is that when the billing document w