RE: Newbie Question: PHP/Appache/WINXP/MySQl

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

 



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@xxxxxxx [mailto:Bestman4unowwa@xxxxxxx] 
> Sent: Friday, August 27, 2004 12:37 PM
> To: php-windows@xxxxxxxxxxxxx
> Subject:  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



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux