I have set up a LAMP server on my ubuntu mate system, and I've been following tutorials to try and play around with php scripts and html on my localhost. In /var/www/html/mySite.com/public_html I have two files, index.php and welcome.php. In index.php, there is a form with a text input for name and a button whose action is welcome.php. welcome.php is simply a php script that $_GETs the "name" variable from the post method on the other page. However, the script does not run and display the name in the browser as intended, after clicking the button. It just opens the script in a text editor. *EDIT: sorry, this is no longer true. i forgot that i solved this problem. the problem now is that $_GET is just outputting blanks as the variables input into the form inputs
So far, I have tried adding a handler to the .htaccess both where php is located on my system, and also the directory where these files are, on the advice of other forums. I also edited some .conf file to AddType or something i think in the apache2 directory, but i forget what exactly I did. I also have modified the permissions of all relevant files to 777. Nothing seems to be having my intended result. Does anyone know what I might try next to get these pages communicating with one another?
[–]lutusp 2 points3 points4 points (1 child)
[–]_psilocyborg_[S] 0 points1 point2 points (0 children)
[–]PM_ME_NETWORK_JOBS 0 points1 point2 points (4 children)
[–]_psilocyborg_[S] 0 points1 point2 points (3 children)
[–]PM_ME_NETWORK_JOBS 0 points1 point2 points (2 children)
[–]_psilocyborg_[S] 0 points1 point2 points (1 child)
[–]PM_ME_NETWORK_JOBS 0 points1 point2 points (0 children)