php-windows Digest 11 Jun 2004 07:17:08 -0000 Issue 2280

Topics (messages 23954 through 23957):

Re: Opening Search results in a New Window
        23954 by: Steve Douville
        23955 by: Sudeep Zamudra

test
        23956 by: Joakim Ling

send XML thru POST
        23957 by: Joakim Ling

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Have the form button call a javascript function that opens the new window
and sends the form data to that window to be queried. Then when data is
returned from the search, it will appear in the new window.

----- Original Message ----- 
From: "Raj Gopal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 10, 2004 3:10 PM
Subject: [PHP-WIN] Opening Search results in a New Window


> Hi All,
>    I have a Form with a Search button and when the user types the
> Search word and clicks on Search, I would like to open a New Window and
> present the search results.I have already developed a PHP function using
> Oracle oci8.dll and tested it. It takes a search criteria as Input,
> connects to the Oracle database, makes the query and presents a table of
> results. How do I call the function via a PHP script from the Search
> button with the user entered text?
> Appreciate Ur Help!!
>
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>

--- End Message ---
--- Begin Message ---
Hi Raj,
 
 I would suggest u to use javascript.....window.open() function. There u can specify 
the parameters of the new window to be open.
 
...SuDeEp...

Raj Gopal <[EMAIL PROTECTED]> wrote:
Hi All,
I have a Form with a Search button and when the user types the
Search word and clicks on Search, I would like to open a New Window and
present the search results.I have already developed a PHP function using
Oracle oci8.dll and tested it. It takes a search criteria as Input,
connects to the Oracle database, makes the query and presents a table of
results. How do I call the function via a PHP script from the Search
button with the user entered text? 
Appreciate Ur Help!!

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

                
---------------------------------
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger

--- End Message ---
--- Begin Message ---
test

--- End Message ---
--- Begin Message ---
Hi

Im tring to send XML thru POST to a server. I have a demo in asp that
works fine but how do I write this in php.

This is the ASP demo 
sXML = "<?xml version=""1.0"" encoding=""ISO-8859-1"" 
Set oHttpConn = CreateObject("MSXML2.ServerXMLHTTP")
Call oHttpConn.Open("POST", sURL, False)
Call oHttpConn.setRequestHeader("Content-Type", "Text/xml")
Call oHttpConn.send(sXML)
sXMLResponse = oHttpConn.responseText
Set oHttpConn = Nothing


I tried this from the php-manual but no result. Its like it cant find
the remote server.

$fp = fsockopen ($sUrl, 80, $errno, $errstr, 30);
$msg =  "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"";
if (!$fp) {
    print("$errstr ($errno)<br>\r\n");
} else {
 if ($fp) {
  fputs($fp, "POST /$sUrl HTTP/1.0\r\n");
  fputs($fp, "Content-Type: text/xml\r\n");
  fputs($fp, "Content-Length: ".strlen($msg)."\r\n");
  fputs($fp, "\r\n");
  fputs($fp, $msg);
  $content = 0;
  $reply = array();
  while (!feof($fp)) {
   echo fgets ($fp,128);
  }
  fclose($fp);
 }
}


Thanks for help..  // Jocke

--- End Message ---

Reply via email to