Re: passing variables to php script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2012-01-10 at 21:43 +0100, Marco Behnke wrote:

> Am 10.01.12 21:28, schrieb Mike Mackintosh:
> >
> > On Jan 10, 2012, at 15:12, Marco Behnke <marco@xxxxxxxxxx> wrote:
> >
> >> Am 10.01.12 21:07, schrieb Donovan Brooke:
> >>> David Savage wrote:
> >>>> OK...I admit I'm new at this....I have this html file:
> >>>> <html>
> >>>> <head>
> >>>> <title>Generate pdf file of LD, Toll Free, and Directory Assistance
> >>>> calls</titl
> >>>> </head>
> >>>> <body>
> >>>> <form action="Q:\ASTERISK\callrecs.php" method="post">
> >> Stupid question ..... where have you copied your script? Is it lying on
> >> a webserver? Then I would guess that you are submitting the form on your
> >> webserver which hits the PHP script on your Desktop PC which in tunr
> >> invokes the PHP command line interpreter who has no idea what you mean
> >> by $_POST.
> >>
> >> Try changing the form action to simply "callrecs.php" and see if that works.
> > Q: would be referencing a filesystem path, rather a web address interpreted by a  PHP processor. Make sure your .php target is within a PHP supported web space.
> If a default application is set within windows for php, the script
> submitting to Q will be executed.
> 
> 


But wouldn't Windows attempt to execute the PHP script as if it were a
CLI script, not as if it were within a web server context? That would
make posting a form pretty pointless.
-- 
Thanks,
Ash
http://www.ashleysheridan.co.uk



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux