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
[PHP] Variable not passing to second page
I 've just setup the Apache 1.3.26 with PHP 4.2.1. When I use back the old php script files. They can display successfully, but whei I submit the data, they cannot pass to the second page even they can be shown in the URL with "get" method. here is one of my script jobapp.php jobs application form Are you finding a challenging career in the bicycle world? Still waiting for what? Please Enter Your Name Here(Required): Please enter your phone number: Please enter your E-mail address(Required): Please choos the Department: Account Repairing Human Resources Marketing Sercices Please choose your working place: ¢D[R3?j ??¢Xe -o-U?n¡LE ¢DxAW ?u¢Xe ¢Ds¡Le?W¡ÂZ jobapp_action.php Invalid Name"; } if (!check_email($email)) { $submit = 0; $email ="Invalid Email"; } echo("Following is your information:". NL.NL. "Name: $applicant".NL. "TEL: $phone".NL. "E-Mail: $email". NL. "Country: "); switch ($country) { case "ca": echo("Canada"); break; case "cn" : echo("China"); break; case "cr" : echo ("Crostirica"); break; case "tw" : echo ("Taiwan"); break; default : echo ("USA"); } echo (NL. "Working Department: "); switch ($position) { case "a": echo ("Accounting"); break; case "b": echo ("Reparing"); break; case "h": echo ("Human Resources"); break; case "m" : echo ("Marketing"); break; default : echo ("Services"); } echo (NL); $avail=isset($avail); echo("¢Ds¡Le?W¡ÂZ: ". ($avail ? "¢Di¢DH": "?¢G¡Âa")); ?> -- 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