Possible to send POST data WITHOUT a submit button?

Is it possible to send POST data without a submit button, but
instead, using PHP redirect or PHP header?
I need to process a form's POST values before sending some
selected values to a third party web
site. So I'd like to be able to send processed POST values to
that site, without asking the user to
click on a submit button again.
how?...
seb ( [email protected])
http://webtrans1.com | high-end web
design
Downloads: Slide Show, Directory Browser, Mailing List

You can't send client-side data with server-side scripting, I
think. You
can do it with javascript, but then your form is dependent on
js being
enabled....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"(_seb_)" <[email protected]> wrote in message
news:eosqf2$p0n$[email protected]..
> Is it possible to send POST data without a submit
button, but instead,
> using PHP redirect or PHP header?
> I need to process a form's POST values before sending
some selected values
> to a third party web site. So I'd like to be able to
send processed POST
> values to that site, without asking the user to click on
a submit button
> again.
> how?...
>
>
> --
> seb ( [email protected])
>
http://webtrans1.com | high-end web
design
> Downloads: Slide Show, Directory Browser, Mailing List

Similar Messages

  • Sending post data to remote site

    I would normally use CURL and php to do this but I was wanting to see if i can use flex to send the post data, I am making an app which sends post data to another site, and was wanting to know the best way of doing this in flex..

    ok cool, I basically need to be able to prepopulate any form from any website and submit it, even if the site doesn't have an API.
    the sites I am submiting to all have API's but I thought it would be better this way because API's change alot.

  • Send/receive data without a terminating character

    I am trying to use the visa driver to send hex data over a serial port. I have tried to disable terminating characters but when I read from the port the trasnmission still terminates with a 0x0A character. How can I send/receive data without a terminating character???

    You need to call viSetAttribute with VI_ATTR_ASRL_END_IN set to VI_ASRL_END_NONE. In LabVIEW, use a write property node with the Serial End In mode set to None (0).
    Dan Mondrik
    Senior Software Engineer, NI-VISA
    National Instruments

  • How can I send post data through nsurlrequest?

    Hi.
    I'm working on an application which needs to make requests to a php gateway. I tried many examples I found on google, but none of them worked for me.
    First I was working with GET, and it worked just fine, but now, as I need to send more complex data, GET isn't a solution anymore. I have three params to send: module which is a string containing a php class name, method: the function in the class, and params for the function which is usually an indexed array.
    The following method makes the request to the server, but for some reason, doesn't send the POST data. If I var_dump($_REQUEST) or var_dump($_POST), it turns out, the array is empty. Can somebody tell me, what am I doing wrong? Is there some kind of a sandbox, which prevents data from being sent to the? I also tried to send some random strings, which aren't json encoded, no luck. The sdk version is 5.1, and I'm using the iPhone simulator from xcode.
    If it is possible I would like to solve this problem without any additional libraries (like asihttp).
    And here is the code:
    +(NSObject *)createRequest:(NSString *)module: (NSString *)method: (NSArray *)params
        NSString *url       = @"http://url/gateway.php";
        NSData *requestData = nil;
        NSDictionary *data  = [NSDictionary dictionaryWithObjectsAndKeys:
                module, @"module",
                method, @"method",
                params, @"params",
                nil];
        NSString *jsonMessage = [data JSONRepresentation];
        NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:url]];
        NSString *msgLength = [NSString stringWithFormat:@"%d", [jsonMessage length]];
        [request addValue: @"text/xml; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
        [request addValue: msgLength forHTTPHeaderField:@"Content-Length"];
        [request setHTTPMethod:@"POST"];
        [request setHTTPBody: [jsonMessage dataUsingEncoding:NSUTF8StringEncoding]];
        requestData     = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
        NSString *get   = [[NSString alloc] initWithData:requestData encoding:NSUTF8StringEncoding];
        NSLog(@">>>>>>%@<<<<<<",get);
    Thank you.

    raczzoli wrote:
    I'm working on an application which needs to make requests to a php gateway. I tried many examples I found on google, but none of them worked for me.
    Why not?
    Unfortunately, you are dealing with a number of different technologies that have been cobbled together over the years. You could write a PHP server that would respond correctly to this request, but not using basic methods like the $_POST variable. PHP was designed for HTML and true forms. What you are trying to do is make it work as a general purpose web service over the HTTP protocol. You can do that, but not with the form-centric convenience variables.
    The following is a basic program that will populate the $_POST variable.
    #import <Foundation/Foundation.h>
    int main(int argc, const char * argv[])
      @autoreleasepool
        // insert code here...
        NSLog(@"Hello, World!");
        NSString  * module = @"coolmodule";
        NSString * method = @"slickmethod";
        //NSArray * params = @[@"The", @"Quick", @"Brown", @"Fox"];
        NSString * params = @"TheQuickBrownFox";
        NSString * url = @"http://localhost/~jdaniel/test.php";
        NSDictionary * data  =
          [NSDictionary
            dictionaryWithObjectsAndKeys:
              module, @"module",
              method, @"method",
              params, @"params",
              nil];
        //NSString *jsonMessage = [data JSONRepresentation];
        //NSData * jsonMessage =
        //  [NSJSONSerialization
        //    dataWithJSONObject: data options: 0 error: nil];
        NSMutableArray * content = [NSMutableArray array];
        for(NSString * key in data)
          [content
            addObject: [NSString stringWithFormat: @"%@=%@", key, data[key]]];
        NSString * body = [content componentsJoinedByString: @"&"];
        NSData * bodyData = [body dataUsingEncoding: NSUTF8StringEncoding];
        NSMutableURLRequest * request =
          [[NSMutableURLRequest alloc] initWithURL: [NSURL URLWithString:url]];
        //NSString * msgLength =
        //  [NSString stringWithFormat: @"%ld", [jsonMessage length]];
        NSString * msgLength =
          [NSString stringWithFormat: @"%ld", [bodyData length]];
        [request
          addValue: @"application/x-www-form-urlencoded; charset=utf-8"
          forHTTPHeaderField: @"Content-Type"];
        [request addValue: msgLength forHTTPHeaderField: @"Content-Length"];
        [request setHTTPMethod: @"POST"];
        //[request setHTTPBody: jsonMessage];
        [request setHTTPBody: bodyData];
        NSData * requestData =
          [NSURLConnection
            sendSynchronousRequest: request returningResponse: nil error: nil];
        NSString * get =
          [[NSString alloc]
            initWithData: requestData encoding: NSUTF8StringEncoding];
        NSLog(@">%@<",get);
      return 0;
    I have written this type of low-level server in PHP using the Zend framework. I don't know how to do it in basic PHP and wouldn't bother to learn.
    Also, you should review how you are sending data. I changed your example to send the appropriate data and content-type for the $_POST variable. If you had a server that could support something else, you could use either JSON or XML, but your data and content-type would have to match.

  • Is it possible to load master data without making object as infoprovider

    Hi
    Is it possible to load master data or text data without making the infoobject as a data provider in BI7.0.
    If yes please tell me the process.
    Regards
    Tulasi

    Hi
    YEs you ca do..
    1) RIght click on master data in infosources tab and then say DTP -> give Datasource name -> transformations would genetared automatically.
    Also this has been discsussed in many forums..search on SDN or let me knw if you are still facing issues.
    thanks for points assigned

  • Can't send POST data from servlet

    Hi,
    I have a servlet that receives data via GET method, process the request and then it has to send feedback to an url, but the query string that
    I have to send must be in a POST method.
    I ilustrate this:
    http://host:port/myservlet?param1=value1
    myservlet proccess and then calls
    http://external_url (with param2=value2 via POST)
    I've tried to put an HttpURLConnection
    URL url = new URL("http://localhost:7001/prueba.jsp");
    java.net.HttpURLConnection con= (HttpURLConnection)url.openConnection();
    //POST data
    URL url = new URL("http://localhost:7001/prueba.jsp");
    HttpURLConnection c = (HttpURLConnection)(url.openConnection());
    c.setDoOutput(true);
    PrintWriter out = new PrintWriter(c.getOutputStream());
    out.println("param2=" + URLEncoder.encode("value2"));
    out.close();
    but I get this error.
    lun mar 10 13:53:46 GMT+01:00 2003:<W> <ListenThread> Connection rejected: 'Login timed out after 5000 msec. The socket
    came from [host=127.0.0.1,port=2184,localport=7001] See property weblogic.login.readTimeoutMillis to increase of decreas
    e timeout. See property weblogic.login.logAllReadTimeouts to turn off these log messages.'
    (it's a weblogic 5.1 problem, i've been researching a little bit)
    And I don't want to call a jsp that generates a post form, and then it's auto-submitted with javascript. (this will be the last remedy!!)
    How can i do this?
    All suggestions will be grateful.
    Thanks in advance.
    PD: sorry for my english :)

    I make an URLConnection and I intended to know if the post data was
    sent right. Then, in my machine, under weblogic 5.1, I developed a jsp with this code:
    <%
    URL url = new URL("http://machine2/examples/prueba.jsp");
    HttpURLConnection c = (HttpURLConnection)(url.openConnection());
    c.setDoOutput(true);
    PrintWriter outd = new PrintWriter(c.getOutputStream());
    outd.println("param1=" + URLEncoder.encode("value1"));
    outd.close();
    c.disconnect();
    %>
    and in machine2 (using tomcat 4.1), I simply put a line in prueba.jsp:
    System.out.println(request.getParameter("param1"));
    and I don't get "value1" in the tomcat log as expected (I think).
    I also tried with adding this properties:
    c.setRequestProperty("Content-Length", size...);
    c.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
    and it didn't work!
    what's wrong?

  • Send POST-Data does not work

    Hi all,
    I am new to Flex so I try some stuff to get myself into
    AS/Flex in a good way (I hope :)).
    I wrote a small class that encapsulates the HTTPService class
    using AS. Then I tried to send some data and I get a response from
    my server but the POST-Data I try to send does not come up.
    Everything else seems to wokr in my class...
    Code attached!!!
    Anyone knows why there is no POST-Data sent to my PHP? When I
    alert the contents of my _objPostData.objPostData I get the Data I
    entered in my edtLoginUsername/edtLoginPassword. So what goes
    Wrong???
    Thx
    polysign

    "polysign.lu" <[email protected]> wrote in
    message
    news:gc7dga$ise$[email protected]..
    > Hi all,
    >
    > I am new to Flex so I try some stuff to get myself into
    AS/Flex in a good
    > way
    > (I hope :)).
    > I wrote a small class that encapsulates the HTTPService
    class using AS.
    > Then I
    > tried to send some data and I get a response from my
    server but the
    > POST-Data I
    > try to send does not come up. Everything else seems to
    wokr in my class...
    >
    > Code attached!!!
    >
    > Anyone knows why there is no POST-Data sent to my PHP?
    When I alert the
    > contents of my _objPostData.objPostData I get the Data I
    entered in my
    > edtLoginUsername/edtLoginPassword. So what goes Wrong???
    Are you SURE you're sure that no post data is getting sent?
    To me it just
    looks like you're not actually WAITING for the result by
    attaching an event
    listener to the result event. Instead, you're trying to read
    the result
    event immediately.
    HTH;
    Amy

  • User required fields without a submit button

    Hi,
    I was recently using Adobe Designer 7 and when I would make the field type User Enter - Required, it would not allow the user to go on to the next field.
    I have just updated to Designer 8 and it does not allow the same function. When I assign the type to User Enter - Required and fill in the Empty Message box, nothing happens at run time. Is this because I don't have a submit button on the form?
    The user will fill in the form and save it under a new name and submit it through our internal email delivery system, so I can't have a submit by email button. Is there any way around this? I'm not very familiar with Java Scripting, but I will do anything, as I need these fields to be filled in.
    Any help will be greatly appreciated!!

    You'll have better luck posting this in the LiveCycle Designer forum. Output Designer is a totally different product.
    That said, I'm surprised that LC Designer 7 prevented the user from exiting a mandatory field. That's user abuse in my opinion. If there's no submit button, the mandatory checking can be done in a script with subFormName.execValidate() where "subFormName" is the subform that contains the objects that you want to validate. The function will return false if there are empty required fields.
    Hope this helps.

  • POST data without navigating to page

    Hi,
    I need to POST some data collected in a form to an ASP page
    hosted by another person.
    How do I do this without navigating to that ASP page, so I
    can remain within my own website ?
    Thanks for the help,
    M

    You could have some code like:
    Set objXML = Server.CreateObject("MSXML2.ServerXMLHTTP")
    objXML.open "POST", "mysite.com/foo.asp", False
    objXML.SetRequestHeader "Content-Type",
    "application/x-www-form-urlencoded"
    objXML.send(Request.Form)
    Resp = objXML.responsetext
    Set objXML = Nothing
    Jules
    http://www.charon.co.uk/charoncart
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004

  • Send POST data from custom POD to PHP server

    Hi all,
    I tried to send data from custom POD to PHP server with POST method. I used HTTPService component and URLLoader, but nothing happend. All attempts failed, HTTPService return "fault" and URLLoader return "0" that means I can't send data to the server.
    I'm googling around during few hours... please give me some advice, how I can send data from custom POD to PHP server.
    Thanks

    Figured it out, hope it will help someone
    A bit tricky but it works fine, now I can send and retrive data from PHP server.
    Add .htacces file in folder where deployed PHP request handler and modify it, see below:
    RewriteEngine on
    RewriteBase /foldername
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)\?*$ filename.php?_route_=$1 [L,QSA]
    Thanks

  • Is it possible to Delete LOB data without deleting the row it is part of?

    The goal is to purge "old" LOB data and "reclaim" the space for use by "new" LOB data.... sounds simple....
    I have a table with 15 columns of data, one of those columns is a LOB.
    The table is partitioned and defined with 'ENABLE STORAGE IN ROW'...
    TABLESPACE DATA
    PCTUSED 40
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    PCTINCREASE 0
    NOLOGGING
    PARTITION BY RANGE (PARTITION_KEY)
    PARTITION INBOUND1 VALUES LESS THAN (2)
    LOGGING
    NOCOMPRESS
    TABLESPACE LOB1
    LOB (XML_BLOB) STORE AS
    ( TABLESPACE LOB1
    ENABLE STORAGE IN ROW
    CHUNK 8192
    PCTVERSION 10
    NOCACHE
    STORAGE (
    INITIAL 50M
    NEXT 25M
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    FREELISTS 1
    FREELIST GROUPS 1
    BUFFER_POOL DEFAULT
    PCTUSED 40
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 1M
    NEXT 25M
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    FREELISTS 1
    FREELIST GROUPS 1
    BUFFER_POOL DEFAULT
    We're on
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    PL/SQL Release 9.2.0.4.0 - Production
    CORE     9.2.0.3.0     Production
    TNS for Solaris: Version 9.2.0.4.0 - Production
    NLSRTL Version 9.2.0.4.0 - Production
    Is there a method to achive this LOB purge without eliminating the rest of the data in the table?

    In oracle 9i you can drop column
    alter table tab1 drop column cobcol;

  • Is it possible to send group emails without having to select each email address individually?

    Does anyone know how to set up a group so that you can send an email to multiple emails addresses with one click? I often send to the same 5 people and feel there's got to be a way to avoid typing in all of their names/email addresses each time. I can do it on yahoo!, gmail, outlook, etc...

    Not natively.  There are apps in the app store you can search for that do that.

  • Sending 2 data, is it possible?

    Hi,
    Is it possible to send two data in the same txt file?
    Lets say, i have specific members from several dimensions and Im always sending 1 data register...
    Dims: Account, time, version, company, rate
    Price= $100
    1 Data: AccountA,2011.Jan,Bdg11,CompanyA,Usd,100
    Instead...  is it possible to send 2 data?
    Price=$100
    Quantity=80
    2 Data: AccountA,2011.Jan,Bdg11,CompanyA,Usd,100,80
    I know that by default the name of the column sending data is Measures, but is it possible to add a "second measure" or something  in order to perform the sending of data?
    Velázquez

    Hi,
    You can maintain the flat file something like:
    Price,2011.Jan,Bdg11,CompanyA,Usd,100
    Quantity,2011.Jan,Bdg11,CompanyA,No_Curr,80
    Where Price and Quantity are the members of the account dimension. And No_Curr is a member of your currency dimension, indicating that quantity is not stored with any rate.
    Alternately, you can try using MVAL statement in the transformation file. Please take a look at the below link from help.sap:
    Hope this helps.

  • Credit Limit VS Posted Date Check

    Dear Experts
    Our client have a requirement on customer credit limit and I would like to seek for some good solutions.
    Here I provide one sample scenario: In SAP Business One a customer with a credit limit of $100,000 and account balance of $110,000. After a posted date check of $20,000 is deposited, customer account balance will be reduced to $90,000 and a Sales Order/ AR Invoice with amount less than $10,000 can be added for that customer without credit limit alert.
    However, our client thinks that it is not make sense to reduce the customer account balance given that a posted date check is deposited as the posted date check may not be cashed if the customers do not have money in their account.
    Would it be possible to separate posted date check payment amount from deducting the customer account balance? or would it be other workarounds?
    Thank you very much
    Regards
    Elton

    Dear jbrotto
    Thanks for your reply.
    Could you explain in details on how to make use of the commitment limit?
    As far as I know, commitment limit also considers the account balance of customer
    Regards
    Elton

  • Offline scenario - post data from saved form to SQLServer

    This is the scenario am struggling to develop. User downloads the interactive form.  Goes offline. I mean no connection to the Web Application Server. But he will have access to a SQLServer database (it may be on his machine or in his intranet). He will fill the form and save it on his local hard disk. Now, I want his saved form data to be posted to the SQLServer.  I thought about a couple of ways to do this.
    1) Is it possible to change the control type of 'Submit' button to submit and then in the URL field, call some ASP page (this page is deployed on a local IIS) and then submit the form fields to that ASP page which takes care of database connection, posting etc. So user downloads form only once. But fills it with different data each time and clicks submit. First of all, will submit button work when the form is not opened in web browser? I mean when it is saved on a local hard disk opened in a standalone Adobe Reader?
    2) Is it possible to write some java program using any APIs and extract the data from the form saved on local hard disk? It may be possible because I have the .xdp file for the form. But I dont know if there are some APIs available to do the same.
    Any inputs whether these ideas are feasible? Any other new ideas are also welcome. Thanks in advance.

    Hi Narayana,
    if you want to export xml data from Reader to local disk you can use a command:
    xfa.host.exportData("",0);
    It works like from menu Export data from Forms.
    To your second post:
    Yes, you can save form in Adobe Live cycle designer as pdf and you can open it in Adobe Reader and test it. It will work.
    In tab Submit for your button set these properties:
    Submit Format: XML Data (XML)
    Submit to URL: url of your page
    Encoding: UTF8
    Here is a sample code in c# for asp.net. Insert method save to your asp.net page and call it from method Page_Load.
              using System;
              using System.IO;
              using System.Web;
              private void save()
                   const int coniBufferLen=1024;
                   string lsTmpFile;
                   try
                        lsTmpFile="c:\adobe\body.pdf.xml.txt";  // File on local disk where to save xml data sent by Reader. IIS needs rights to write here.
                        FileStream loFS=null;
                        try {loFS=File.Create(lsTmpFile);}
                        catch (Exception e1)
                             // TODO
                             return;
                        int liCelkem=Request.ContentLength;
                        int liNacteno=0;
                        byte[] laResponse=null;
                        int liLen=Math.Min(coniBufferLen,liCelkem-liNacteno);
                        while (liLen>0)
                             try
                                  laResponse=Request.BinaryRead(liLen);
                                  loFS.Write(laResponse,0,liLen);
                             catch (Exception e1)
                                  try {loFS.Close();}
                                  catch {}
                                  try {File.Delete(lsTmpFile);}
                                  catch {}
                                  // TODO
                                  return;
                             liNacteno+=liLen;
                             liLen=Math.Min(coniBufferLen,liCelkem-liNacteno);
                        loFS.Close();
                   catch (Exception e2)
                        // TODO
                        return;
    Michal

Maybe you are looking for

  • Function keys no longer working with a new keyboard...

    I got a new keyboard and my function keys no longer work with it.  I am used to have them used in the standard format, i.e. F10-F12 control the voume, etc.  I have the "Use all f1,f2, etc." button clicked.  I have also tried restarting my computer. 

  • XML BI Publisher Output in 2 sheets Excel

    Hi , I want XML BI Publisher output in 2 sheets Excel. first sheet contains Report details and next sheet contains Report output. Could we please help me in this?. I am using BI Publisher 11.1.1.0 and Oracle apps is R12.1. Thanks

  • MPEG no sound - downloaded streamclip to convert but still nothing

    I have movie files that are MPEG1 Muxed and whenever I import them into imovie HD they play without sound. I saw the following posts: Posts: 8 From: NOLA Registered: Dec 26, 2006 Importing MPEG... No sound? Posted: Jan 10, 2007 4:13 PM Reply Email Hi

  • How to sync photos currently on ipad with new pc/itunes library?

    Hi - old laptop crashed and just got new pc. how do i get photos on ipad onto new itunes library? thank you!

  • Missing subVi after build in llb

    I have a top level application that dinamycally calls some Vi contained in a llb library. Running the app from source works fine. If I build an application the dinamycally loaded VIs open with the broken arrow. If I click the arrow I see that some su