|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Forms not working?
I am trying to get Windows 2000 SP3 / Apache 1.3.2.7 / PHP 4.3 / MySQL 3.23.54 to work.
I have Apache and PHP up and running so that the phpinfo works, but some things aren't working right. I am trying to learn PHP and MySQL by going through the SAMS book PHP amd MySQL Web Development. My problem is that in the first chapter they start out with a simple order form and a php page to process the order form. But when I try the code out on my server it doesn't work. At first I got a bunch of error about unknown variables. (all the ones from the orderform) Now the errors are gone (Don't know what I did) but it acts as if I didn't enter anything into the form before I submit it. I am wondering if there isn't something in the setup up that I need to turn on or what not. -Dave |
|
#2
|
|||
|
|||
|
RE: Forms not working?
The book might be showing examples with register globals set to "ON".
With it set to off your variables need to be retrieved from the $_POST[] superglobal. PHP 4.3 comes with this set to off for security reasons. Try retrieving your variables this way: $_POST['your_variable']; |
|
#3
|
|||
|
|||
|
RE: Forms not working?
Thanks! That got it working. One last question: How do I change the Register Globals setting? -Dave
|
|
#4
|
|||
|
|||
|
RE: Forms not working?
Yuo can do that in your php.ini file but I would suggest that since you are just starting out to do your coding using the superglobals since register globals is deprecated and is only still in there to support older scripts.
There are references to these variables at www.php.net. |
|
#5
|
|||
|
|||
|
RE: Forms not working?
The $_POST is not working for me either. I have a basic html form, using the POST method. there are a couple textboxes. The form is pointing to a php page and I am trying to print them out. I cannot retrieve any values using:
$temp = isset($_POST['email']); echo "<br>temp = $temp"; I am running the latest version of php and using IIS on Win2k. My registar_globals is equal to off in the php.ini file. PLEASE tell me what I am doing wrong. Thanks! |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Forms not working? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|