thescientist Posted November 5, 2012 Share Posted November 5, 2012 Can you show your updated code? You are saying submitting to the form and echo'ing that information directly on that page (tasks.php) doesn't show anything? Try adding var_dump($_POST); right after the opening <?php tag too. Link to comment Share on other sites More sharing options...
ProSpartan Posted November 5, 2012 Author Share Posted November 5, 2012 <html><body><?php$Task = $_POST['task'];$Importance = $_POST['importance'];$Date = $_POST['date'];$Time = $_POST['time'];echo $Task;?></body></html> Link to comment Share on other sites More sharing options...
ProSpartan Posted November 5, 2012 Author Share Posted November 5, 2012 Okay, there must be something wrong with my computers php. it does not want to view variables. I'll look into this. Link to comment Share on other sites More sharing options...
thescientist Posted November 5, 2012 Share Posted November 5, 2012 (edited) Okay, so i am now running a php compatable computer. It does not print simple messages like <?php echo "Hello World!"; ?>, nor is it accepting miltiple assignments via $Example = .... , atleast not in gedit, but in Emacs, it does. If it's really working, and you are loading these pages in your browser over the http:// protocol, over localhost, i.e. http://localhost/tasks.php then it should work to make sure PHP is actually running, open a PHP page that contains just this in your browser, over localhost<?phpphpinfo();?> it will be obvious if that worked or not. (it should spew out a bunch of info related to the PHP install) Edited November 5, 2012 by thescientist Link to comment Share on other sites More sharing options...
ProSpartan Posted November 5, 2012 Author Share Posted November 5, 2012 (edited) it seems as though php does not work on red hat 6.0. Does anyone know how to get it running? I had installed all of the packages from the disk. Edited November 5, 2012 by ProSpartan Link to comment Share on other sites More sharing options...
thescientist Posted November 5, 2012 Share Posted November 5, 2012 I guess we should go one step further back. Do you have Apache installed? Link to comment Share on other sites More sharing options...
ProSpartan Posted November 5, 2012 Author Share Posted November 5, 2012 There are files for apache, which should be installed. Link to comment Share on other sites More sharing options...
niche Posted November 5, 2012 Share Posted November 5, 2012 Why not just do the WAMP that was suggested earlier? Link to comment Share on other sites More sharing options...
ProSpartan Posted November 5, 2012 Author Share Posted November 5, 2012 Why not just do the WAMP that was suggested earlier?I will try and see about getting someone who can download things and get it on my RedHat. Link to comment Share on other sites More sharing options...
birbal Posted November 5, 2012 Share Posted November 5, 2012 WAMP is for windows you can download of its sibling LAMP which are for linux flavored systems. they include php apache mysql. before you install it you make sure to uninstall any previous installation of any of those. Link to comment Share on other sites More sharing options...
thescientist Posted November 6, 2012 Share Posted November 6, 2012 Why not just do the WAMP that was suggested earlier?He is running Linux.I'm installing a RedHat 6 to us for php support, also for a cert in RedHat Sys Admin. I'll let ya'll know when I test to see if it works. If seemed like the OP was comfortable with installing software himself. If not, then a LAMP stack would the best option, but do as Birbal suggested, and uniNstall any previous instances of A(pache),M(ySQL), P(HP). Link to comment Share on other sites More sharing options...
niche Posted November 6, 2012 Share Posted November 6, 2012 I meant LAMP. Please excuse me. Link to comment Share on other sites More sharing options...
ProSpartan Posted November 6, 2012 Author Share Posted November 6, 2012 okay, i used a windows box and installed EasyPHP, which seems to work. Although, the output from the php on the task input adds "on" right after. I think that is the radio button. Not sure how to fix that to display the id or name. Link to comment Share on other sites More sharing options...
thescientist Posted November 6, 2012 Share Posted November 6, 2012 Have you made any changes to the code? I'm not really sure what you mean. Link to comment Share on other sites More sharing options...
ProSpartan Posted November 6, 2012 Author Share Posted November 6, 2012 Okay, i just fixed it. I had to use, in the input type for radio, the value="name" for it to work. Link to comment Share on other sites More sharing options...
ProSpartan Posted November 7, 2012 Author Share Posted November 7, 2012 Okay, i've started a php file to create a database, but i get an error. MySQL Error: Error creating database: Access denied for user ''@'localhost' to database 'tasks' Do I need to have admin rights? Link to comment Share on other sites More sharing options...
thescientist Posted November 7, 2012 Share Posted November 7, 2012 you should make a new thread for this, but the first thing I would do, given the error message, is confirm that you have an account with the name user that has access to the database tasks. Link to comment Share on other sites More sharing options...
ProSpartan Posted November 8, 2012 Author Share Posted November 8, 2012 Okay, that fixed that problem. I'll start a new thread then, for database connections. But before i do, i guess i should search for existing ones on this forum. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now