LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-16-2004, 12:07 PM   #1
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Rep: Reputation: 30
PHP Query


I've setup apache + php + mysql on my home server.

The situation is, I have a small PHP chat script, which prompts the user to enter there name. When the user submits the form, the script calls itself and then check the "$action" veriable of the form to decide what to do next. THe problem is, that the login form is being displayed all the time, regardless of whether something is entered or not.

The only thing I can assume is that something in apache or php is not setup to allow variables and data to be transfered this way, instead I have to use $_POST[action].

What do I need to do to allow this function to work?
 
Old 07-16-2004, 12:34 PM   #2
Ashkhan
Member
 
Registered: Oct 2003
Distribution: Debian, Ubuntu, RHEL, CentOS, MacOS
Posts: 39

Rep: Reputation: Disabled
You should use the $_POST[] and $_GET[] super-variables. You can change this behavior in your php.ini file, directive register_globals BUT all newer versions of PHP have this turned off by default because of security.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Query MS SQL from remote php simon@saq.co.uk Linux - General 2 10-17-2005 09:44 AM
Query works in MySQLCC but not in PHP? rylan76 Linux - Software 1 05-23-2005 01:30 PM
php: Why Can't I Query Mysql DB?? flamesrock Programming 7 11-16-2004 12:36 AM
PHP MySQL Query Question vi0lat0r Programming 1 07-15-2004 05:02 AM
PHP show query results Gerardoj Programming 1 05-11-2004 12:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration