ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am really stuck on this problem, so I hope someone can give me a hand:
I just installed Red Hat 9 for the third time. I installed PHP 4.3.5, MYSQL 4.0.18, and APACHE 2.0.49 via the following tutorial. //madpenguin.org/article751.html
I can create a php file that queries my MySQL database and return the results no problem. I can also create a simple php file that contains <?php phpinfo(); ?> and it returns all of my PHP Version 4.3.5 info. If seeing the phpinfo() results is needed, please let me know.
My problem is as soon as I create a php file with the below code, I get nothing. When I fill out the fields and hit submit, the fields clear and nothing else happens?
I have been looking all over in different forums for information on this problem. I am a newbie to Linux, so I am kind of doing a trial and error. The only changes I have made to MySQL, PHP, or APACHE files are the ones listed at //madpenguin.org/article751.html The only exception is I changed register_globals = ON.
Please let me know if i can provide any additional information to assist in the solution.
Thank you for any help you can provide, I am at a loss what is wrong??
First of all, thank you kev82 for taking the time to look over my issue.
I apologize, but the snippett of code I pasted for you to examime was not the correct one. It was going on 2am when I posted, I will try to take my time in the future.
Below is the code I needed examined:
<html>
<body>
<?php
if ($submit) {
// process form
while (list($name, $value) = each($HTTP_POST_VARS)) {
my php's not too great but the problem is obviously that "if($submit)" isnt working, at a guess i would say when you click the button your browser sets the submit variable but sets it to something that evaluates to false, try instead if(isset($submit))
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.