SunQuest
           PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old January 1st, 2003, 11:41 PM
DavidFaulkner DavidFaulkner is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Edmonds, WA
Posts: 2 DavidFaulkner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to DavidFaulkner
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

Reply With Quote
  #2  
Old January 2nd, 2003, 01:01 AM
bob0099 bob0099 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: manchester,n.h.,usa
Posts: 172 bob0099 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 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'];

Reply With Quote
  #3  
Old January 2nd, 2003, 08:50 PM
DavidFaulkner DavidFaulkner is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Edmonds, WA
Posts: 2 DavidFaulkner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to DavidFaulkner
RE: Forms not working?

Thanks! That got it working. One last question: How do I change the Register Globals setting? -Dave

Reply With Quote
  #4  
Old January 2nd, 2003, 09:14 PM
bob0099 bob0099 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: manchester,n.h.,usa
Posts: 172 bob0099 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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.

Reply With Quote
  #5  
Old February 26th, 2003, 09:23 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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!

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Forms not working?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway