I’ve installed php5 on ubuntu with apache5 and tried to code a $_POST script. After finding out that Echo wasn’t even working, which leads me to think my php5 isn’t installed correctly.
I typed in php -v in my terminal and it came out with
PHP 5.3.5-1ubuntu7.2 with Suhosin-Patch (cli) (built: May 2 2011 23:18:30)
Copyright (x) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Techonologies
I’ve installed php5 by using Synaptic Package Manager.
Any suggestions? I’m not sure what the next steps are.
my post script is on the top of the script:
<?php
echo “hi”;
if(isset($_POST[‘name’])){
echo ‘hi’ . $
}
so
when i put form action = “<?=$_SERVER[PHP_SELF’]?>”
the URL is linked to a “Not Found” error page.
Please help!
Thanks in advance.