[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-windows
Subject:    RE: [PHP-WIN] Newbie Question: PHP/Appache/WINXP/MySQl
From:       "Gryffyn, Trevor" <TGryffyn () air-cargo-inc ! com>
Date:       2004-08-27 17:40:50
Message-ID: B97E3961173C4943BF7C722DFE31943D9160C9 () irmailee1024 ! root ! aircargo ! com
[Download RAW message or body]

When you click "submit" on a POST method form, it'll go to whatever file
is specified in the "action=" part of the FORM and send the POST data to
it for processing.  PHP scripts are executed when called, they're never
"already running" although you could probably have a case where you
could (and might want) to do that, but for 99.9% of the cases, it's
called, it executes, it outputs or does whatever it does, then it
closes.

Do you know if you're receiving the variable data (that it's a
"receiving" problem) versus a problem storing the value into the MySQL
table?

A common issue is with the "register globals" being turned ON on one
system you're testing on and turned OFF on another.  It should be "OFF"
(the default in all the latest PHP versions) in which case you need to
use $varname = $_GET["varname"] or $varname = $_POST["varname"]
depending on the METHOD of your form.


If you are POSTing it, try a:

Var_Dump($_POST);

And make sure you see your data in there.  If it's in there and not
getting inserted into MySQL, then that's another question.

Posting a bit of your PHP code can help us help you.

Good luck!

-TG

> -----Original Message-----
> From: Bestman4unowwa@aol.com [mailto:Bestman4unowwa@aol.com] 
> Sent: Friday, August 27, 2004 12:37 PM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Newbie Question: PHP/Appache/WINXP/MySQl
> 
> 
> Does the PHP script have to be already running to communicate 
> send a HTTP Post varibale to it (from a DHTML client 
> browser)?  Or can it initiate the HTTP Post fron the client 
> that activates the PHP script?
> 
> I know this must seems simple but I'm having troble receiving 
> these varible from my client. When I find out the value of 
> the vaiable I stick it into a MySQL table. Both client DHTML 
> and server PHP work well alone but I can't seem to et the 
> connection going using localhost.
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic