[PHP] Re: How to post from a php script
Create a form only with hidden-fields (your values) and no visible fields or buttons. The "action=" is set to the next file, the method ist set to POST (of course). Don't use php-header to redirect but javasript. If you want to redirect immediately you can write "onLoad=document.forms[0].submit()" in the body tag. Else start a timer at onLoad and call submit() in the timer-function. Good luck Kai "Rick Horrix" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I want to POST variables from one php page to another without any user > interaction. > I can achieve this using header( "Location ...?var1=xx&var2=yy" ) passing > the vars like a GET, but I don't want the vars to be visible to the user in > the browser address field. Is it possible to do this. > > TIA > smartbloke > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Executing a file with rtf-extension
Hi, I want to execute a php-script, which file-extension ist .rtf. Though I entered .rtf in the mmc->iis-configuration as a fileextension for "php.exe %s %s" (and restarted the service) the server doesn't start php but sending the script uninterpreted back to client (in this case: ms-word). When I start php from the comandline like "php myfile.rtf" everything works fine and I get the wanted output (on the comandline). Simple question: where else to enter the fileextension? Thanks Kai -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Executing a file with rtf-extension
Yes, that is the intention! The browser SHOULD open WORD (or Wordpad or what else) and the script should generate the content on the server, independent from the client. The problem must lie within IIS- oder PHP-Configuration. But I don't know, where. "Adam Voigt" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > My guess would be that this is a browser issue, with the > browser associating .rtf with a word doc (or Rich Text to be > more accurate) and if this is the case, there's not much you > can do except not name your PHP files .rtf. Since, each person > who comes to your site will most likely have .rtf set as > a Rich Text Document and will try and interpret it. > > Adam Voigt > [EMAIL PROTECTED] > > On Mon, 2002-08-12 at 11:44, Kai Hinkelmann wrote: > > Hi, > > > > I want to execute a php-script, which file-extension ist .rtf. Though I > > entered .rtf in the mmc->iis-configuration as a fileextension for "php.exe > > %s %s" (and restarted the service) the server doesn't start php but sending > > the script uninterpreted back to client (in this case: ms-word). > > > > When I start php from the comandline like "php myfile.rtf" everything works > > fine and I get the wanted output (on the comandline). > > > > Simple question: where else to enter the fileextension? > > > > Thanks > > > > Kai > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Executing a file with rtf-extension
Thanks but since this one is a testserver there is only one webnode and the script runs (or runs not :-( ) in this node. Bye Kai "Phil Driscoll" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Monday 12 August 2002 3:52 pm, Adam Voigt wrote: > My guess would be that this is a browser issue, with the > browser associating .rtf with a word doc (or Rich Text to be > more accurate) and if this is the case, there's not much you > can do except not name your PHP files .rtf. Since, each person > who comes to your site will most likely have .rtf set as > a Rich Text Document and will try and interpret it. There may be an issue about what the browser chooses to do with the .rtf extension, however if the web server was correctly configured, the php source of the .rtf file would not be sent by the server, but would have at least been interpreted by php, which would then have sent out the correct mime type header to give the browser a chance of interpreting the data as html. Maybe the iis script mapping configuration is being overridden somewhere in the tree by a child node? Cheers -- Phil Driscoll -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Thanks - got it
Hi, Phil, Excuse me, you was right. I changed the mapping for the server but not for the directory. Now everything works fine. Thanks again. Bye Kai "Phil Driscoll" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Monday 12 August 2002 3:52 pm, Adam Voigt wrote: > My guess would be that this is a browser issue, with the > browser associating .rtf with a word doc (or Rich Text to be > more accurate) and if this is the case, there's not much you > can do except not name your PHP files .rtf. Since, each person > who comes to your site will most likely have .rtf set as > a Rich Text Document and will try and interpret it. There may be an issue about what the browser chooses to do with the .rtf extension, however if the web server was correctly configured, the php source of the .rtf file would not be sent by the server, but would have at least been interpreted by php, which would then have sent out the correct mime type header to give the browser a chance of interpreting the data as html. Maybe the iis script mapping configuration is being overridden somewhere in the tree by a child node? Cheers -- Phil Driscoll -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] sending email with linefeeds
Hi, we are sending plain-text-emails from php not using the mail-command but with port-operations. Everything works fine BUT outlook 2000 eats the linefeeds. We tried several things: copying the header from an original (functional) email from outlook, sending with \n or \r\n to seperate header-info and so on... nothing works. All email-clients show the mails correct - outlook 2000 doesn't. Since other mails are shown correct, there MUST be a way, but we don't know, which. Who can help? Thanx Kai -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Here is a email
Thanks for your answer. Here is a genereted email: Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 21481 invoked from network); 6 Sep 2002 15:47:03 - Received: from notused.i-dea.de (HELO mail.e-h.de) (62.26.122.219) by ns.i-dea.de with SMTP; 6 Sep 2002 15:47:03 - From:<[EMAIL PROTECTED]> Subject:Testmail Date:Fri, 6 Sep 2002 17:51:28 To:<> Reply-To:<[EMAIL PROTECTED]> MIME-Version:1.0 Content-Type:text/plain; charset="iso-8859-1" X-UIDL: _7F!!bMh!!~Ea"!9Bn"! first line second line third line the three lines are seperated with 0d0a, just as outlook would seperate them but the lines are not shown as a stack but as ONE line. Kai -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: sending email with linefeeds
I can't believe that I hit wrong buttons two times... so my answer for the third time... Thanks for your answer. Here is a genereted email: Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 21481 invoked from network); 6 Sep 2002 15:47:03 - Received: from notused.i-dea.de (HELO mail.e-h.de) (62.26.122.219) by ns.i-dea.de with SMTP; 6 Sep 2002 15:47:03 - From:<[EMAIL PROTECTED]> Subject:Testmail Date:Fri, 6 Sep 2002 17:51:28 To:<> Reply-To:<[EMAIL PROTECTED]> MIME-Version:1.0 Content-Type:text/plain; charset="iso-8859-1" X-UIDL: _7F!!bMh!!~Ea"!9Bn"! first line second line third line the three lines are seperated with 0d0a, just as outlook would seperate them but the lines are not shown as a stack but as ONE line. Kai "Erwin" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Kai Hinkelmann wrote: > > Hi, > > > > we are sending plain-text-emails from php not using the mail-command > > but with port-operations. Everything works fine BUT outlook 2000 eats > > the linefeeds. We tried several things: copying the header from an > > original (functional) email from outlook, sending with \n or \r\n to > > seperate header-info and so on... nothing works. > > > > All email-clients show the mails correct - outlook 2000 doesn't. > > Since other mails are shown correct, there MUST be a way, but we > > don't know, which. > > > > Who can help? > > Please paste a generated mail message (including header information), so we > can have a look at it... > > Grtz Erwin > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Here is a email
This one is in the wrong place... please ignore... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php