Re: [PHP] php is not working with submit button
It works, really Thanks a lot to you all!! I will try to modify all my script. "Philip Olson" <[EMAIL PROTECTED]> ???:[EMAIL PROTECTED] > This is an issue of the register_globals directive, the > default went from off to on as of PHP 4.2.0 Either > change your coding style or turn it back on. > > > print $_POST['foo']; > > $foo will exist if register_globals = on. Search archives, > google, the manual, etc. for this topic, it's been > discussed a lot lately :) > > Regards, > Philip Olson > > On Mon, 8 Jul 2002, Terry Cheung wrote: > > > Hi, > > > > I have just downloaded the latest source of apache, php, mod_ssl and > > mysql to build them all together. It can show the php page and can connect > > to the mysql database, the only problem is all the php pages seem likes do > > not response to the submit button, it just direct back to the same page and > > cannot get the data pass to the php script. I have tried the "get " and > > "post" method. It works with my older version of apache with php and also I > > can submit data in the cgi-bin using the new apache. May anyone please help > > me? Thanks in advance. > > > > Terry > > > > > > > > > > -- > > 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] php is not working with submit button
This is an issue of the register_globals directive, the default went from off to on as of PHP 4.2.0 Either change your coding style or turn it back on. print $_POST['foo']; $foo will exist if register_globals = on. Search archives, google, the manual, etc. for this topic, it's been discussed a lot lately :) Regards, Philip Olson On Mon, 8 Jul 2002, Terry Cheung wrote: > Hi, > > I have just downloaded the latest source of apache, php, mod_ssl and > mysql to build them all together. It can show the php page and can connect > to the mysql database, the only problem is all the php pages seem likes do > not response to the submit button, it just direct back to the same page and > cannot get the data pass to the php script. I have tried the "get " and > "post" method. It works with my older version of apache with php and also I > can submit data in the cgi-bin using the new apache. May anyone please help > me? Thanks in advance. > > Terry > > > > > -- > 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] php is not working with submit button
Hi Terry: On Mon, Jul 08, 2002 at 11:36:46PM +0800, Terry Cheung wrote: > > to the mysql database, the only problem is all the php pages seem likes do > not response to the submit button, it just direct back to the same page Then you're not writing your form correctly. Where, "script.name.php" is the name of the script you want the submitted data to be received by. Then, in this example, script.name.php needs to handle the data: --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php is not working with submit button
Hi, I have just downloaded the latest source of apache, php, mod_ssl and mysql to build them all together. It can show the php page and can connect to the mysql database, the only problem is all the php pages seem likes do not response to the submit button, it just direct back to the same page and cannot get the data pass to the php script. I have tried the "get " and "post" method. It works with my older version of apache with php and also I can submit data in the cgi-bin using the new apache. May anyone please help me? Thanks in advance. Terry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php